Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNilObject = errors.New("can't reference a nil object") ErrNoSelfLink = errors.New("selfLink was empty, can't make reference") )
Errors that could be returned by Apply.
View Source
var ( // ErrNoPreviousConfig is returned when no previous configuration is found in the annotations ErrNoPreviousConfig = errors.New("last applied configuration not found") )
Functions ¶
func GetGVK ¶
func GetGVK(obj runtime.Object) (schema.GroupVersionKind, error)
GetGVK returns group version kind of a runtime object
func GetOriginalConfig ¶
GetOriginalConfig returns previous config of the object
Types ¶
type Applier ¶
type Applier interface { Apply(ctx context.Context, obj ctrlclient.Object, opts ...Option) error ApplyStatus(ctx context.Context, obj ctrlclient.Object, statusObj interface{}) error ctrlclient.Client }
Applier is the interface for applying patch to runtime objects
func NewDynamicApplier ¶
NewDynamicApplier returns a new applier whose client is dynamically refreshed when new CRDs are installed
type Option ¶
type Option func(*Options)
Option is the functional apply options
func WithForceUseUpdate ¶
func WithForceUseUpdate() Option
WithForceUseUpdate sets if update should be used instead of patch for apply operation, irrespective of whether the object is of paralus domain or not
func WithUseUpdate ¶
WithUseUpdate sets if update should be used instead of patch for apply operation
Click to show internal directories.
Click to hide internal directories.