Documentation ¶
Overview ¶
Objects package contains core kubernetes resources definitions that can be included in an application CRD. The definitions are stripped down version with only specs that should be user-defined.
Every objects definied in this package implements a mutate interface which can create or update its associated kubernetes resource.
All those objects also implements the Object inteface from which we can create an object syncer - see https://github.com/presslabs/controller-util/syncer
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewObjectSyncer ¶
func NewObjectSyncer(i Object, owner interfaces.Object, r interfaces.Reconcile) syncer.Interface
NewObjectSyncer returns a syncer interface from https://github.com/presslabs/controller-util/syncer which can reconcile an object, create events and logs.
Types ¶
type Object ¶
type Object interface { meta.Instance Mutate(obj interfaces.Object) error GetObject() interfaces.Object GetObjectKind() string GetObjectGroup() string }
Object interface must be supported by all types that want to sync an object. The object interface provides a mutate function and a runtime.Object that can be used in controller-runtime CreateOrUpdate