Documentation
¶
Index ¶
- Constants
- type ClonesetPatch
- func (s *ClonesetPatch) UpdateMaxSurge(maxSurge *intstr.IntOrString) *ClonesetPatch
- func (s *ClonesetPatch) UpdateMaxUnavailable(maxUnavailable *intstr.IntOrString) *ClonesetPatch
- func (s *ClonesetPatch) UpdateMinReadySeconds(seconds int32) *ClonesetPatch
- func (s *ClonesetPatch) UpdatePartiton(partition *intstr.IntOrString) *ClonesetPatch
- func (s *ClonesetPatch) UpdatePaused(paused bool) *ClonesetPatch
- 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
- func (s *DeploymentPatch) UpdateMaxSurge(maxSurge *intstr.IntOrString) *DeploymentPatch
- func (s *DeploymentPatch) UpdateMaxUnavailable(maxUnavailable *intstr.IntOrString) *DeploymentPatch
- func (s *DeploymentPatch) UpdateMinReadySeconds(seconds int32) *DeploymentPatch
- func (s *DeploymentPatch) UpdatePaused(paused bool) *DeploymentPatch
- func (s *DeploymentPatch) UpdateProgressDeadlineSeconds(seconds *int32) *DeploymentPatch
- func (s *DeploymentPatch) UpdateStrategy(strategy apps.DeploymentStrategy) *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 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) 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
Click to show internal directories.
Click to hide internal directories.