v1

package
v0.0.0-...-39902a6 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the test v1 API group +kubebuilder:object:generate=true +groupName=test.zoetrope.github.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "test.zoetrope.github.io", Version: "v1"}

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Sample

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

	Spec   SampleSpec   `json:"spec,omitempty"`
	Status SampleStatus `json:"status,omitempty"`
}

Sample is the Schema for the samples API

func (*Sample) DeepCopy

func (in *Sample) DeepCopy() *Sample

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

func (*Sample) DeepCopyInto

func (in *Sample) DeepCopyInto(out *Sample)

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

func (*Sample) DeepCopyObject

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

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

func (*Sample) Default

func (r *Sample) Default()

Default implements webhook.Defaulter so a webhook will be registered for the type

func (*Sample) SetupWebhookWithManager

func (r *Sample) SetupWebhookWithManager(mgr ctrl.Manager) error

func (*Sample) ValidateCreate

func (r *Sample) ValidateCreate() error

ValidateCreate implements webhook.Validator so a webhook will be registered for the type

func (*Sample) ValidateDelete

func (r *Sample) ValidateDelete() error

ValidateDelete implements webhook.Validator so a webhook will be registered for the type

func (*Sample) ValidateUpdate

func (r *Sample) ValidateUpdate(old runtime.Object) error

ValidateUpdate implements webhook.Validator so a webhook will be registered for the type

type SampleList

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

SampleList contains a list of Sample

func (*SampleList) DeepCopy

func (in *SampleList) DeepCopy() *SampleList

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

func (*SampleList) DeepCopyInto

func (in *SampleList) DeepCopyInto(out *SampleList)

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

func (*SampleList) DeepCopyObject

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

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

type SampleSpec

type SampleSpec struct {
	// +kubebuilder:validation:Required
	Image string `json:"image"`

	// +optional
	Replicas *int32 `json:"replicas,omitempty"`
}

SampleSpec defines the desired state of Sample

func (*SampleSpec) DeepCopy

func (in *SampleSpec) DeepCopy() *SampleSpec

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

func (*SampleSpec) DeepCopyInto

func (in *SampleSpec) DeepCopyInto(out *SampleSpec)

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

type SampleStatus

type SampleStatus struct {
}

SampleStatus defines the observed state of Sample

func (*SampleStatus) DeepCopy

func (in *SampleStatus) DeepCopy() *SampleStatus

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

func (*SampleStatus) DeepCopyInto

func (in *SampleStatus) DeepCopyInto(out *SampleStatus)

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