v1alpha1

package
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the fun v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=sigs.k8s.io/controller-tools/pkg/crd/generator/testData/pkg/apis/fun +k8s:defaulter-gen=TypeMeta +groupName=fun.myk8s.io

Package v1alpha1 contains API Schema definitions for the fun v1alpha1 API group +k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=sigs.k8s.io/controller-tools/pkg/crd/generator/testData/pkg/apis/fun +k8s:defaulter-gen=TypeMeta +groupName=fun.myk8s.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: "fun.myk8s.io", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)

Functions

This section is empty.

Types

type Toy

type Toy struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   ToySpec   `json:"spec,omitempty"`
	Status ToyStatus `json:"status,omitempty"`
}

Toy is the Schema for the toys API +k8s:openapi-gen=true +kubebuilder:subresource:status +kubebuilder:subresource:scale:specpath=.spec.replicas,statuspath=.status.replicas,selectorpath= +kubebuilder:printcolumn:name="toy",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description="descr1",format="date",priority=3 +kubebuilder:printcolumn:name="abc",type="integer",JSONPath="status",description="descr2",format="int32",priority=1 +kubebuilder:printcolumn:name="service",type="string",JSONPath=".status.conditions.ready",description="descr3",format="byte",priority=2 +kubebuilder:resource:path=services,shortName=to;ty +kubebuilder:singular=toy

func (*Toy) DeepCopy

func (in *Toy) DeepCopy() *Toy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Toy.

func (*Toy) DeepCopyInto

func (in *Toy) DeepCopyInto(out *Toy)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Toy) DeepCopyObject

func (in *Toy) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ToyList

type ToyList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Toy `json:"items"`
}

ToyList contains a list of Toy

func (*ToyList) DeepCopy

func (in *ToyList) DeepCopy() *ToyList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ToyList.

func (*ToyList) DeepCopyInto

func (in *ToyList) DeepCopyInto(out *ToyList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ToyList) DeepCopyObject

func (in *ToyList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ToyS3LogConfig

type ToyS3LogConfig struct {
	// +kubebuilder:validation:MinLength=1
	Bucket string `json:"bucket,omitempty"`
}

ToyS3LogConfig defines logs configs using S3 backend

type ToySpec

type ToySpec struct {

	// +kubebuilder:validation:Maximum=100
	// +kubebuilder:validation:Minimum=1
	// +kubebuilder:validation:ExclusiveMinimum=true
	Power float32 `json:"power,omitempty"`

	Bricks int32 `json:"bricks,omitempty"`

	// +kubebuilder:validation:MaxLength=15
	// +kubebuilder:validation:MinLength=1
	Name string `json:"name,omitempty"`

	// This is a comment on an array field.
	// +kubebuilder:validation:MaxItems=500
	// +kubebuilder:validation:MinItems=1
	// +kubebuilder:validation:UniqueItems=false
	Knights []string `json:"knights,omitempty"`

	// This is a comment on a boolean field.
	Winner bool `json:"winner,omitempty"`

	// +kubebuilder:validation:Enum=Lion,Wolf,Dragon
	Alias string `json:"alias,omitempty"`

	// +kubebuilder:validation:Enum=1,2,3
	Rank int `json:"rank"`

	Comment []byte `json:"comment,omitempty"`

	// This is a simple string without validation.
	Description string `json:"description"`

	// This is a comment on an object field.
	Template v1.PodTemplateSpec `json:"template"`

	Claim v1.PersistentVolumeClaim `json:"claim,omitempty"`

	//This is a dummy comment.
	// Just checking if the multi-line comments are working or not.
	Replicas *int32 `json:"replicas"`

	// This is a newly added field.
	// Using this for testing purpose.
	Rook *intstr.IntOrString `json:"rook"`

	// Used this for testing fieldNames with number.
	S3Log ToyS3LogConfig `json:"s3Log"`

	// This is a comment on a map field.
	Location map[string]string `json:"location"`

	// This is an IPv4 address.
	// +kubebuilder:validation:Format=ipv4
	Address string `json:"address"`

	// This is a list of IPv4 addresses.
	// +kubebuilder:validation:Format=ipv4
	Addresses []string `json:"addresses"`
}

ToySpec defines the desired state of Toy

func (*ToySpec) DeepCopy

func (in *ToySpec) DeepCopy() *ToySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ToySpec.

func (*ToySpec) DeepCopyInto

func (in *ToySpec) DeepCopyInto(out *ToySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ToyStatus

type ToyStatus struct {

	// It tracks the number of replicas.
	Replicas int32 `json:"replicas"`
}

ToyStatus defines the observed state of Toy

func (*ToyStatus) DeepCopy

func (in *ToyStatus) DeepCopy() *ToyStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ToyStatus.

func (*ToyStatus) DeepCopyInto

func (in *ToyStatus) DeepCopyInto(out *ToyStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL