Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option interface {
Apply(p *Patcher)
}
func NoStatusSubResource ¶
func NoStatusSubResource() Option
func TranslatePatches ¶
func TranslatePatches(translate []config.TranslatePatch) Option
type Patcher ¶
type Patcher struct { NoStatusSubResource bool // contains filtered or unexported fields }
Patcher is a utility for ensuring the proper patching of objects.
func NewPatcher ¶
NewPatcher returns an initialized Patcher.
func (*Patcher) Patch ¶
func (h *Patcher) Patch(ctx *synccontext.SyncContext, obj client.Object) error
Patch will attempt to patch the given object, including its status.
type SyncerPatcher ¶
type SyncerPatcher struct {
// contains filtered or unexported fields
}
func NewSyncerPatcher ¶
func NewSyncerPatcher(ctx *synccontext.SyncContext, pObj, vObj client.Object, options ...Option) (*SyncerPatcher, error)
func (*SyncerPatcher) Patch ¶
func (h *SyncerPatcher) Patch(ctx *synccontext.SyncContext, pObj, vObj client.Object) error
Patch will attempt to patch the given object, including its status.
Click to show internal directories.
Click to hide internal directories.