patch

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	NULL_HOLDER     = "NULL_HOLDER"
	NULL_HOLDER_STR = "\"NULL_HOLDER\""
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonPatch

type CommonPatch struct {
	PatchType types.PatchType        `json:"patchType"`
	PatchData map[string]interface{} `json:"data"`
}

func NewMergePatch

func NewMergePatch() *CommonPatch

func NewStrategicPatch

func NewStrategicPatch() *CommonPatch

func (*CommonPatch) AddFinalizer

func (s *CommonPatch) AddFinalizer(item string) *CommonPatch

func (*CommonPatch) Data

func (s *CommonPatch) Data(_ client.Object) ([]byte, error)

Data implements Patch.

func (*CommonPatch) DeleteAnnotation

func (s *CommonPatch) DeleteAnnotation(key string) *CommonPatch

func (*CommonPatch) DeleteLabel

func (s *CommonPatch) DeleteLabel(key string) *CommonPatch

func (*CommonPatch) InsertAnnotation

func (s *CommonPatch) InsertAnnotation(key, value string) *CommonPatch

func (*CommonPatch) InsertLabel

func (s *CommonPatch) InsertLabel(key, value string) *CommonPatch

func (*CommonPatch) OverrideFinalizer

func (s *CommonPatch) OverrideFinalizer(items []string) *CommonPatch

func (*CommonPatch) RemoveFinalizer

func (s *CommonPatch) RemoveFinalizer(item string) *CommonPatch

func (*CommonPatch) String

func (s *CommonPatch) String() string

func (*CommonPatch) Type

func (s *CommonPatch) Type() types.PatchType

Type implements Patch.

func (*CommonPatch) UpdatePodCondition

func (s *CommonPatch) UpdatePodCondition(condition v1.PodCondition) *CommonPatch

type DeploymentPatch

type DeploymentPatch struct {
	CommonPatch
}

func NewDeploymentPatch

func NewDeploymentPatch() *DeploymentPatch

func (*DeploymentPatch) UpdatePaused

func (s *DeploymentPatch) UpdatePaused(paused bool) *DeploymentPatch

func (*DeploymentPatch) UpdateStrategy

func (s *DeploymentPatch) UpdateStrategy(strategy apps.DeploymentStrategy) *DeploymentPatch

Jump to

Keyboard shortcuts

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