Documentation ¶
Index ¶
- Constants
- type Patch
- func (p *Patch) AddFinalizer(item string) *Patch
- func (p *Patch) Data(obj client.Object) ([]byte, error)
- func (p *Patch) DeleteAnnotation(key string) *Patch
- func (p *Patch) DeleteLabel(key string) *Patch
- func (p *Patch) InsertAnnotation(key, value string) *Patch
- func (p *Patch) InsertLabel(key, value string) *Patch
- func (p *Patch) OverrideFinalizer(items []string) *Patch
- func (p *Patch) RemoveFinalizer(item string) *Patch
- func (p *Patch) String() string
- func (p *Patch) Type() types.PatchType
Constants ¶
View Source
const ( NullHolder = "NULL_HOLDER" NullHolderStr = "\"NULL_HOLDER\"" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Patch ¶
type Patch struct {
// contains filtered or unexported fields
}
func NewMergePatch ¶
func NewMergePatch() *Patch
NewMergePatch returns a merge-patch type patch entity, which applies to CRDs like tfjobs, pytorchjobs...
func NewStrategicPatch ¶
func NewStrategicPatch() *Patch
NewStrategicPatch returns a strategic-merge-patch type patch entity, which applies to build-in resource like pods, services...
func (*Patch) AddFinalizer ¶
func (*Patch) DeleteAnnotation ¶
func (*Patch) DeleteLabel ¶
func (*Patch) InsertAnnotation ¶
func (*Patch) InsertLabel ¶
func (*Patch) OverrideFinalizer ¶
func (*Patch) RemoveFinalizer ¶
Click to show internal directories.
Click to hide internal directories.