Documentation ¶
Index ¶
- Constants
- func GetMetaObject(obj interface{}) (object metav1.Object, err error)
- func IsOwner(owned metav1.Object, owner metav1.OwnerReference) bool
- func NonBlockingOwner(owner Object) metav1.OwnerReference
- func SetController(owned metav1.Object, owner Object)
- type Client
- type Enqueuer
- type Object
- type OperandContext
- type SetControllerFunc
Constants ¶
View Source
const (
Operator = "operator.clusteroverride.openshift.io"
)
Variables ¶
This section is empty.
Functions ¶
func GetMetaObject ¶
func NonBlockingOwner ¶
func NonBlockingOwner(owner Object) metav1.OwnerReference
NonBlockingOwner returns an owner reference to be added.
func SetController ¶
Types ¶
type Client ¶
type Client struct { Operator versioned.Interface Kubernetes kubernetes.Interface APIRegistration apiregistrationclientset.Interface APIExtension apiextensionsclientset.Interface Dynamic dynamicclient.Ensurer }
type Enqueuer ¶
type Enqueuer interface {
Enqueue(owned interface{}) error
}
Enqueuer is an interface that wraps the Enqueue method.
Enqueue looks up the owner from the given object (owned) and then enqueues the owner for reconciliation.
type OperandContext ¶
type OperandContext interface { // Name is the name of the RunOnceDurationOverride admission webhook server. // This name will be used to create kube resources. // // More info: http://kubernetes.io/docs/user-guide/identifiers#names. WebhookName() string // Namespace is the namespace where the RunOnceDurationOverride admission // webhook server is installed. WebhookNamespace() string // OperandImage points to the operand (RunOnceDurationOverride admission webhook) image. OperandImage() string // OperandVersion is the version of the operand (RunOnceDurationOverride admission webhook). OperandVersion() string // ResourceName is the name of the CustomResource that will manage this operand. ResourceName() string }
func NewOperandContext ¶
func NewOperandContext(name, namespace, resource, image, version string) OperandContext
Click to show internal directories.
Click to hide internal directories.