v1beta1

package
v0.0.0-...-de00234 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

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

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
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",
								},
							},
						},
					},
				},
			},
		},
	}
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "birds.fabulous.af", Version: "v1beta1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

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

func (in *Puffin) DeepCopy() *Puffin

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

func (*Puffin) DeepCopyInto

func (in *Puffin) DeepCopyInto(out *Puffin)

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

func (*Puffin) DeepCopyObject

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

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.

Jump to

Keyboard shortcuts

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