deployment

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeploymentWrapper

type DeploymentWrapper struct {
	appsv1.Deployment
}

DeploymentWrapper wraps a Deployment.

func MakeDeployment

func MakeDeployment(name, ns string) *DeploymentWrapper

MakeDeployment creates a wrapper for a Deployment with a single container.

func (*DeploymentWrapper) Image added in v0.10.0

func (d *DeploymentWrapper) Image(image string, args []string) *DeploymentWrapper

Image sets an image to the default container.

func (*DeploymentWrapper) Label

func (d *DeploymentWrapper) Label(k, v string) *DeploymentWrapper

Label sets the label of the Deployment

func (*DeploymentWrapper) Name

Name updated the name of the Deployment

func (*DeploymentWrapper) Obj

Obj returns the inner Deployment.

func (*DeploymentWrapper) PodTemplateAnnotation added in v0.10.0

func (d *DeploymentWrapper) PodTemplateAnnotation(k, v string) *DeploymentWrapper

PodTemplateAnnotation sets the annotation of the pod template

func (*DeploymentWrapper) PodTemplateSpecLabel

func (d *DeploymentWrapper) PodTemplateSpecLabel(k, v string) *DeploymentWrapper

PodTemplateSpecLabel sets the label of the pod template spec of the Deployment

func (*DeploymentWrapper) PodTemplateSpecQueue

func (d *DeploymentWrapper) PodTemplateSpecQueue(q string) *DeploymentWrapper

PodTemplateSpecQueue updates the queue name of the pod template spec of the Deployment

func (*DeploymentWrapper) Queue

Queue updates the queue name of the Deployment

func (*DeploymentWrapper) ReadyReplicas added in v0.10.0

func (d *DeploymentWrapper) ReadyReplicas(readyReplicas int32) *DeploymentWrapper

ReadyReplicas updated the readyReplicas of the Deployment

func (*DeploymentWrapper) Replicas added in v0.10.0

func (d *DeploymentWrapper) Replicas(replicas int32) *DeploymentWrapper

Replicas updated the replicas of the Deployment

func (*DeploymentWrapper) Request added in v0.10.0

Request adds a resource request to the default container.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL