Documentation
¶
Overview ¶
+k8s:openapi-gen=true +k8s:deepcopy-gen=package,register +k8s:conversion-gen=github.com/heptio/tgik/episodes/040/live/pkg/apis/birds +k8s:defaulter-gen=TypeMeta +groupName=birds.fabulous.af
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var ( // Define CRDs for resources PuffinCRD = v1beta1.CustomResourceDefinition{ ObjectMeta: metav1.ObjectMeta{ Name: "puffins.birds.fabulous.af", }, Spec: v1beta1.CustomResourceDefinitionSpec{ Group: "birds.fabulous.af", Version: "v1beta1", Names: v1beta1.CustomResourceDefinitionNames{ Kind: "Puffin", Plural: "puffins", }, Scope: "Namespaced", Validation: &v1beta1.CustomResourceValidation{ OpenAPIV3Schema: &v1beta1.JSONSchemaProps{ Type: "object", Properties: map[string]v1beta1.JSONSchemaProps{ "apiVersion": v1beta1.JSONSchemaProps{ Type: "string", }, "kind": v1beta1.JSONSchemaProps{ Type: "string", }, "metadata": v1beta1.JSONSchemaProps{ Type: "object", }, "spec": v1beta1.JSONSchemaProps{ Type: "object", Properties: map[string]v1beta1.JSONSchemaProps{ "color": v1beta1.JSONSchemaProps{ Type: "string", }, }, }, "status": v1beta1.JSONSchemaProps{ Type: "object", Properties: map[string]v1beta1.JSONSchemaProps{ "message": v1beta1.JSONSchemaProps{ Type: "string", }, }, }, }, }, }, }, } )
var SchemeGroupVersion = schema.GroupVersion{Group: "birds.fabulous.af", Version: "v1beta1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Puffin ¶
type Puffin struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PuffinSpec `json:"spec,omitempty"` Status PuffinStatus `json:"status,omitempty"` }
Puffin +k8s:openapi-gen=true +kubebuilder:resource:path=puffins
func (*Puffin) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Puffin.
func (*Puffin) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Puffin) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PuffinList ¶
type PuffinList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Puffin `json:"items"` }
func (*PuffinList) DeepCopy ¶
func (in *PuffinList) DeepCopy() *PuffinList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PuffinList.
func (*PuffinList) DeepCopyInto ¶
func (in *PuffinList) DeepCopyInto(out *PuffinList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PuffinList) DeepCopyObject ¶
func (in *PuffinList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PuffinSpec ¶
type PuffinSpec struct { // This is the color of the puffin. Set this to any color string you like! Color string `json:"color,omitempty"` }
PuffinSpec defines the desired state of Puffin
func (*PuffinSpec) DeepCopy ¶
func (in *PuffinSpec) DeepCopy() *PuffinSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PuffinSpec.
func (*PuffinSpec) DeepCopyInto ¶
func (in *PuffinSpec) DeepCopyInto(out *PuffinSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PuffinStatus ¶
type PuffinStatus struct { // INSERT ADDITIONAL STATUS FIELD - define observed state of cluster // Important: Run "kubebuilder generate" to regenerate code after modifying this file Message string `json:"message,omitempty"` }
PuffinStatus defines the observed state of Puffin
func (*PuffinStatus) DeepCopy ¶
func (in *PuffinStatus) DeepCopy() *PuffinStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PuffinStatus.
func (*PuffinStatus) DeepCopyInto ¶
func (in *PuffinStatus) DeepCopyInto(out *PuffinStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.