Documentation ¶
Index ¶
- Constants
- type CommonPatch
- func (s *CommonPatch) AddFinalizer(item string) *CommonPatch
- func (s *CommonPatch) Data(_ client.Object) ([]byte, error)
- func (s *CommonPatch) DeleteAnnotation(key string) *CommonPatch
- func (s *CommonPatch) DeleteLabel(key string) *CommonPatch
- func (s *CommonPatch) InsertAnnotation(key, value string) *CommonPatch
- func (s *CommonPatch) InsertLabel(key, value string) *CommonPatch
- func (s *CommonPatch) OverrideFinalizer(items []string) *CommonPatch
- func (s *CommonPatch) RemoveFinalizer(item string) *CommonPatch
- func (s *CommonPatch) String() string
- func (s *CommonPatch) Type() types.PatchType
- func (s *CommonPatch) UpdatePodCondition(condition v1.PodCondition) *CommonPatch
- type DeploymentPatch
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) 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
Click to show internal directories.
Click to hide internal directories.