patch

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: Apache-2.0 Imports: 8 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 ClonesetPatch added in v0.6.0

type ClonesetPatch struct {
	CommonPatch
}

func NewClonesetPatch added in v0.6.0

func NewClonesetPatch() *ClonesetPatch

func (*ClonesetPatch) UpdateMaxSurge added in v0.6.0

func (s *ClonesetPatch) UpdateMaxSurge(maxSurge *intstr.IntOrString) *ClonesetPatch

func (*ClonesetPatch) UpdateMaxUnavailable added in v0.6.0

func (s *ClonesetPatch) UpdateMaxUnavailable(maxUnavailable *intstr.IntOrString) *ClonesetPatch

func (*ClonesetPatch) UpdateMinReadySeconds added in v0.6.0

func (s *ClonesetPatch) UpdateMinReadySeconds(seconds int32) *ClonesetPatch

func (*ClonesetPatch) UpdatePartiton added in v0.6.0

func (s *ClonesetPatch) UpdatePartiton(partition *intstr.IntOrString) *ClonesetPatch

func (*ClonesetPatch) UpdatePaused added in v0.6.0

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

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) UpdateMaxSurge added in v0.6.0

func (s *DeploymentPatch) UpdateMaxSurge(maxSurge *intstr.IntOrString) *DeploymentPatch

func (*DeploymentPatch) UpdateMaxUnavailable added in v0.6.0

func (s *DeploymentPatch) UpdateMaxUnavailable(maxUnavailable *intstr.IntOrString) *DeploymentPatch

func (*DeploymentPatch) UpdateMinReadySeconds added in v0.6.0

func (s *DeploymentPatch) UpdateMinReadySeconds(seconds int32) *DeploymentPatch

func (*DeploymentPatch) UpdatePaused

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

func (*DeploymentPatch) UpdateProgressDeadlineSeconds added in v0.6.0

func (s *DeploymentPatch) UpdateProgressDeadlineSeconds(seconds *int32) *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