deployment

package
v0.9.2 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: 5 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) 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) 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

Jump to

Keyboard shortcuts

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