controller-runtime: sigs.k8s.io/controller-runtime/examples/crd/pkg Index | Files

package pkg

import "sigs.k8s.io/controller-runtime/examples/crd/pkg"

+kubebuilder:object:generate=true +groupName=chaosapps.metamagical.io

Index

Package Files

groupversion_info.go resource.go zz_generated.deepcopy.go

Variables

var (

    // SchemeGroupVersion is group version used to register these objects
    SchemeGroupVersion = schema.GroupVersion{Group: "chaosapps.metamagical.io", Version: "v1"}

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

    // AddToScheme is required by pkg/client/...
    AddToScheme = SchemeBuilder.AddToScheme
)

type ChaosPod Uses

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

    Spec   ChaosPodSpec   `json:"spec,omitempty"`
    Status ChaosPodStatus `json:"status,omitempty"`
}

ChaosPod is the Schema for the randomjobs API +kubebuilder:printcolumn:name="next stop",type="string",JSONPath=".spec.nextStop",format="date" +kubebuilder:printcolumn:name="last run",type="string",JSONPath=".status.lastRun",format="date"

func (*ChaosPod) DeepCopy Uses

func (c *ChaosPod) DeepCopy() *ChaosPod

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

func (*ChaosPod) DeepCopyInto Uses

func (c *ChaosPod) DeepCopyInto(out *ChaosPod)

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

func (*ChaosPod) DeepCopyObject Uses

func (c *ChaosPod) DeepCopyObject() runtime.Object

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

func (*ChaosPod) Default Uses

func (c *ChaosPod) Default()

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

func (*ChaosPod) ValidateCreate Uses

func (c *ChaosPod) ValidateCreate() error

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

func (*ChaosPod) ValidateDelete Uses

func (c *ChaosPod) ValidateDelete() error

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

func (*ChaosPod) ValidateUpdate Uses

func (c *ChaosPod) ValidateUpdate(old runtime.Object) error

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

type ChaosPodList Uses

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

ChaosPodList contains a list of ChaosPod

func (*ChaosPodList) DeepCopy Uses

func (in *ChaosPodList) DeepCopy() *ChaosPodList

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

func (*ChaosPodList) DeepCopyInto Uses

func (in *ChaosPodList) DeepCopyInto(out *ChaosPodList)

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

func (*ChaosPodList) DeepCopyObject Uses

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

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

type ChaosPodSpec Uses

type ChaosPodSpec struct {
    Template corev1.PodTemplateSpec `json:"template"`
    // +optional
    NextStop metav1.Time `json:"nextStop,omitempty"`
}

ChaosPodSpec defines the desired state of ChaosPod

func (*ChaosPodSpec) DeepCopy Uses

func (in *ChaosPodSpec) DeepCopy() *ChaosPodSpec

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

func (*ChaosPodSpec) DeepCopyInto Uses

func (in *ChaosPodSpec) DeepCopyInto(out *ChaosPodSpec)

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

type ChaosPodStatus Uses

type ChaosPodStatus struct {
    LastRun metav1.Time `json:"lastRun,omitempty"`
}

ChaosPodStatus defines the observed state of ChaosPod. It should always be reconstructable from the state of the cluster and/or outside world.

func (*ChaosPodStatus) DeepCopy Uses

func (in *ChaosPodStatus) DeepCopy() *ChaosPodStatus

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

func (*ChaosPodStatus) DeepCopyInto Uses

func (in *ChaosPodStatus) DeepCopyInto(out *ChaosPodStatus)

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

Package pkg imports 9 packages (graph) and is imported by 1 packages. Updated 2019-07-23. Refresh now. Tools for package owners.