objects

package
v0.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL