v1alpha1

package
v0.0.0-...-24ac345 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the operator v1alpha1 API group +kubebuilder:object:generate=true +groupName=operator.craftdemo.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "operator.craftdemo.com", Version: "v1alpha1"}

	// 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 DeletionMode

type DeletionMode string

DeletionMode is the specified deletion mode for the pod-cleanup-operator +kubebuilder:validation:Enum=Normal;Force;Skip

const (
	// DeletionModeNormal attempts normal deletion of bad or completed pod
	DeletionModeNormal DeletionMode = "Normal"
	// DeletionModeForce attempts forceful deletion of bad or completed pod
	DeletionModeForce DeletionMode = "Force"
	// DeletionModeSkip skips deletion of bad or completed pod
	DeletionModeSkip DeletionMode = "Skip"
)

type PodCleanupConfig

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

	Spec   PodCleanupConfigSpec   `json:"spec,omitempty"`
	Status PodCleanupConfigStatus `json:"status,omitempty"`
}

PodCleanupConfig is the Schema for the podcleanupconfigs API

func (*PodCleanupConfig) DeepCopy

func (in *PodCleanupConfig) DeepCopy() *PodCleanupConfig

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

func (*PodCleanupConfig) DeepCopyInto

func (in *PodCleanupConfig) DeepCopyInto(out *PodCleanupConfig)

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

func (*PodCleanupConfig) DeepCopyObject

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

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

type PodCleanupConfigList

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

PodCleanupConfigList contains a list of PodCleanupConfig

func (*PodCleanupConfigList) DeepCopy

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

func (*PodCleanupConfigList) DeepCopyInto

func (in *PodCleanupConfigList) DeepCopyInto(out *PodCleanupConfigList)

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

func (*PodCleanupConfigList) DeepCopyObject

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

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

type PodCleanupConfigSpec

type PodCleanupConfigSpec struct {

	// DeletionMode is the specified deletion mode for the pod-cleanup-operator
	// +kubebuilder:validation:Required
	DeletionMode DeletionMode `json:"deletionMode"`

	// DeletionDelayInMinutes is the time interval specified in minutes
	// If the pod is in the any of the bad or completed state for more minutes
	// than specified by DeletionDelay field, it is deleted
	// +kubebuilder:validation:Type=integer
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Minimum:=0
	DeletionDelayInMinutes int32 `json:"deletionDelayInMinutes"`
}

PodCleanupConfigSpec defines the desired state of PodCleanupConfig

func (*PodCleanupConfigSpec) DeepCopy

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

func (*PodCleanupConfigSpec) DeepCopyInto

func (in *PodCleanupConfigSpec) DeepCopyInto(out *PodCleanupConfigSpec)

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

type PodCleanupConfigStatus

type PodCleanupConfigStatus struct {
}

PodCleanupConfigStatus defines the observed state of PodCleanupConfig

func (*PodCleanupConfigStatus) DeepCopy

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

func (*PodCleanupConfigStatus) DeepCopyInto

func (in *PodCleanupConfigStatus) DeepCopyInto(out *PodCleanupConfigStatus)

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