Documentation ¶ Index ¶ func Merge(old, new client.Object) (client.Object, bool, string, error) type Interface func NewWithClient(log *logrus.Entry, client client.Client) Interface type Reader type Writer Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Merge ¶ func Merge(old, new client.Object) (client.Object, bool, string, error) merge takes the existing (old) and desired (new) objects. It compares them to see if an update is necessary, fixes up the new object if needed, and returns the difference for debugging purposes. Types ¶ type Interface ¶ type Interface interface { Reader Writer } func NewWithClient ¶ func NewWithClient(log *logrus.Entry, client client.Client) Interface type Reader ¶ type Reader interface { client.Reader GetOne(ctx context.Context, key types.NamespacedName, obj kruntime.Object) error } type Writer ¶ type Writer interface { client.Writer // Ensure applies self-contained objects to a Kubernetes API, merging // client-side if required. Ensure(ctx context.Context, objs ...kruntime.Object) error EnsureDeleted(ctx context.Context, gvk schema.GroupVersionKind, key types.NamespacedName) error } Source Files ¶ View all Source files clienthelper.go createorder.go workloadhelper.go Click to show internal directories. Click to hide internal directories.