v1

package
v0.0.0-...-d753916 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 contains API Schema definitions for the apps v1 API group +kubebuilder:object:generate=true +groupName=apps.demo.cnoe.io

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "apps.demo.cnoe.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 MyDeployment

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

	Spec   MyDeploymentSpec   `json:"spec,omitempty"`
	Status MyDeploymentStatus `json:"status,omitempty"`
}

MyDeployment is the Schema for the mydeployments API

func (*MyDeployment) DeepCopy

func (in *MyDeployment) DeepCopy() *MyDeployment

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

func (*MyDeployment) DeepCopyInto

func (in *MyDeployment) DeepCopyInto(out *MyDeployment)

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

func (*MyDeployment) DeepCopyObject

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

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

type MyDeploymentList

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

MyDeploymentList contains a list of MyDeployment

func (*MyDeploymentList) DeepCopy

func (in *MyDeploymentList) DeepCopy() *MyDeploymentList

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

func (*MyDeploymentList) DeepCopyInto

func (in *MyDeploymentList) DeepCopyInto(out *MyDeploymentList)

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

func (*MyDeploymentList) DeepCopyObject

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

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

type MyDeploymentSpec

type MyDeploymentSpec struct {
	// Number of desired pods. This is a pointer to distinguish between explicit
	// zero and not specified. Defaults to 1.
	// +optional
	Replicas *int32 `json:"replicas,omitempty" protobuf:"varint,1,opt,name=replicas"`

	// Image to be used for container
	Image string `json:"image"`
}

MyDeploymentSpec defines the desired state of MyDeployment

func (*MyDeploymentSpec) DeepCopy

func (in *MyDeploymentSpec) DeepCopy() *MyDeploymentSpec

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

func (*MyDeploymentSpec) DeepCopyInto

func (in *MyDeploymentSpec) DeepCopyInto(out *MyDeploymentSpec)

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

type MyDeploymentStatus

type MyDeploymentStatus struct {
	// The generation observed by the deployment controller.
	// +optional
	ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,1,opt,name=observedGeneration"`

	// Total number of non-terminated pods targeted by this deployment (their labels match the selector).
	// +optional
	Replicas int32 `json:"replicas,omitempty" protobuf:"varint,2,opt,name=replicas"`

	// readyReplicas is the number of pods targeted by this Deployment with a Ready Condition.
	// +optional
	ReadyReplicas int32 `json:"readyReplicas,omitempty" protobuf:"varint,7,opt,name=readyReplicas"`

	// Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
	// +optional
	AvailableReplicas int32 `json:"availableReplicas,omitempty" protobuf:"varint,4,opt,name=availableReplicas"`

	// Total number of unavailable pods targeted by this deployment. This is the total number of
	// pods that are still required for the deployment to have 100% available capacity. They may
	// either be pods that are running but not yet available or pods that still have not been created.
	// +optional
	UnavailableReplicas int32 `json:"unavailableReplicas,omitempty" protobuf:"varint,5,opt,name=unavailableReplicas"`
}

MyDeploymentStatus defines the observed state of MyDeployment

func (*MyDeploymentStatus) DeepCopy

func (in *MyDeploymentStatus) DeepCopy() *MyDeploymentStatus

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

func (*MyDeploymentStatus) DeepCopyInto

func (in *MyDeploymentStatus) DeepCopyInto(out *MyDeploymentStatus)

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