Documentation ¶
Index ¶
- func MutateDeployment(i Mutate, obj *appsv1.Deployment) error
- type Deployment
- func (in *Deployment) DeepCopy() *Deployment
- func (in *Deployment) DeepCopyInto(out *Deployment)
- func (o *Deployment) GetObject() interfaces.Object
- func (o *Deployment) GetObjectGroup() string
- func (o *Deployment) GetObjectKind() string
- func (obj *Deployment) Init()
- func (o *Deployment) Mutate(obj interfaces.Object) error
- type DeploymentSpec
- type Mutate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MutateDeployment ¶
func MutateDeployment(i Mutate, obj *appsv1.Deployment) error
Types ¶
type Deployment ¶
type Deployment struct { // Standard object metadata. // +optional *meta.ObjectMeta `json:"meta,omitempty"` // Specification of the desired behavior of the Deployment. // +optional *DeploymentSpec `json:",inline"` }
Deployment is the specification of the desired behavior of the Deployment. It is a stripped down version of https://godoc.org/k8s.io/api/apps/v1#Deployment with only user definied specs
+kubebuilder:object:generate=true
func (*Deployment) DeepCopy ¶
func (in *Deployment) DeepCopy() *Deployment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Deployment.
func (*Deployment) DeepCopyInto ¶
func (in *Deployment) DeepCopyInto(out *Deployment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Deployment) GetObject ¶
func (o *Deployment) GetObject() interfaces.Object
func (*Deployment) GetObjectGroup ¶
func (o *Deployment) GetObjectGroup() string
func (*Deployment) GetObjectKind ¶
func (o *Deployment) GetObjectKind() string
func (*Deployment) Init ¶
func (obj *Deployment) Init()
func (*Deployment) Mutate ¶
func (o *Deployment) Mutate(obj interfaces.Object) error
type DeploymentSpec ¶
type DeploymentSpec 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"` // The deployment strategy to use to replace existing pods with new ones. // +optional // +patchStrategy=retainKeys Strategy appsv1.DeploymentStrategy `json:"strategy,omitempty"` // Pod describes the pod that will be created. *pod.Pod `json:",inline"` }
DeploymentSpec is the specification of the desired behavior of the DeploymentSpec. It is a stripped down version of https://godoc.org/k8s.io/api/apps/v1#DeploymentSpec with only user definied specs
+kubebuilder:object:generate=true
func (*DeploymentSpec) DeepCopy ¶
func (in *DeploymentSpec) DeepCopy() *DeploymentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentSpec.
func (*DeploymentSpec) DeepCopyInto ¶
func (in *DeploymentSpec) DeepCopyInto(out *DeploymentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DeploymentSpec) GetDeploymentStrategy ¶
func (spec *DeploymentSpec) GetDeploymentStrategy() appsv1.DeploymentStrategy
func (*DeploymentSpec) GetReplicas ¶
func (spec *DeploymentSpec) GetReplicas() *int32