apps

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2020 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployment

type Deployment struct {
	*appsv1.Deployment
}

func NewDeployment

func NewDeployment() *Deployment

NewDeployment returns an empty instance of deployment

func (*Deployment) Build

func (d *Deployment) Build() *appsv1.Deployment

Build returns a deployment instance

func (*Deployment) WithAnnotations

func (d *Deployment) WithAnnotations(annotations map[string]string) *Deployment

WithAnnotations merges existing annotations if any with the ones that are provided here

func (*Deployment) WithAnnotationsNew

func (d *Deployment) WithAnnotationsNew(annotations map[string]string) *Deployment

WithAnnotationsNew resets existing annotaions if any with ones that are provided here

func (*Deployment) WithLabels

func (d *Deployment) WithLabels(labels map[string]string) *Deployment

WithLabels merges existing labels if any with the ones that are provided here

func (*Deployment) WithLabelsNew

func (d *Deployment) WithLabelsNew(labels map[string]string) *Deployment

WithLabelsNew resets existing labels if any with ones that are provided here

func (*Deployment) WithName

func (d *Deployment) WithName(name string) *Deployment

WithName sets the Name field of deployment with provided value.

func (*Deployment) WithNamespace

func (d *Deployment) WithNamespace(namespace string) *Deployment

WithNamespace sets the Namespace field of deployment with provided value.

func (*Deployment) WithNodeSelector

func (d *Deployment) WithNodeSelector(selector map[string]string) *Deployment

WithNodeSelector Sets the node selector with the provided argument.

func (*Deployment) WithNodeSelectorNew

func (d *Deployment) WithNodeSelectorNew(selector map[string]string) *Deployment

WithNodeSelector Sets the node selector with the provided argument.

func (*Deployment) WithOwnerReferenceNew

func (d *Deployment) WithOwnerReferenceNew(ownerRefernce []metav1.OwnerReference) *Deployment

WithOwnerReferenceNew sets ownerreference if any with ones that are provided here

func (*Deployment) WithPodTemplateSpec

func (d *Deployment) WithPodTemplateSpec(pts *corebuilder.PodTemplateSpec) *Deployment

WithPodTemplateSpecBuilder sets the template field of the deployment

func (*Deployment) WithReplicas

func (d *Deployment) WithReplicas(replicas *int32) *Deployment

WithReplicas sets the replica field of deployment. Caller should not pass nil value.

func (*Deployment) WithSelectorMatchLabels

func (d *Deployment) WithSelectorMatchLabels(matchlabels map[string]string) *Deployment

WithSelectorMatchLabels merges existing matchlabels if any with the ones that are provided here

func (*Deployment) WithSelectorMatchLabelsNew

func (d *Deployment) WithSelectorMatchLabelsNew(matchlabels map[string]string) *Deployment

WithSelectorMatchLabelsNew resets existing matchlabels if any with ones that are provided here

func (*Deployment) WithStrategyType

func (d *Deployment) WithStrategyType(strategytype appsv1.DeploymentStrategyType) *Deployment

WithStrategyType sets the strategy field of the deployment

Jump to

Keyboard shortcuts

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