patcher

package
v1.8.0-preview2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Patcher

type Patcher struct {
	// contains filtered or unexported fields
}

Patcher defines multiple variables that need to be patched.

func NewPatcher

func NewPatcher() *Patcher

NewPatcher returns a patcher.

func (*Patcher) ForDeployment

func (p *Patcher) ForDeployment(deployment *appsv1.Deployment)

ForDeployment patches the deployment manifest.

func (*Patcher) ForStatefulSet

func (p *Patcher) ForStatefulSet(sts *appsv1.StatefulSet)

ForStatefulSet patches the statefulset manifest.

func (*Patcher) WithAnnotations

func (p *Patcher) WithAnnotations(annotations labels.Set) *Patcher

WithAnnotations sets annotations to the patcher.

func (*Patcher) WithExtraArgs added in v1.7.0

func (p *Patcher) WithExtraArgs(extraArgs map[string]string) *Patcher

WithExtraArgs sets extraArgs to the patcher.

func (*Patcher) WithFeatureGates added in v1.7.0

func (p *Patcher) WithFeatureGates(featureGates map[string]bool) *Patcher

WithFeatureGates sets featureGates to the patcher.

func (*Patcher) WithLabels

func (p *Patcher) WithLabels(labels labels.Set) *Patcher

WithLabels sets labels to the patcher.

func (*Patcher) WithResources added in v1.8.0

func (p *Patcher) WithResources(resources corev1.ResourceRequirements) *Patcher

WithResources sets resources to the patcher.

func (*Patcher) WithVolumeData

func (p *Patcher) WithVolumeData(volume *operatorv1alpha1.VolumeData) *Patcher

WithVolumeData sets VolumeData to the patcher.

Jump to

Keyboard shortcuts

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