Documentation ¶
Index ¶
- func CreateIfNotExists(ctx context.Context, c client.Client, obj client.Object, ...) (controllerutil.OperationResult, error)
- func PatchIfExists(ctx context.Context, c client.Client, obj client.Object, ...) (controllerutil.OperationResult, error)
- func UpdateIfExists(ctx context.Context, c client.Client, obj client.Object, ...) (controllerutil.OperationResult, error)
- type ClusterController
- type TenantController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateIfNotExists ¶
func CreateIfNotExists(ctx context.Context, c client.Client, obj client.Object, f controllerutil.MutateFn) (controllerutil.OperationResult, error)
CreateIfNotExists creates the given object in the Kubernetes cluster.
func PatchIfExists ¶
func PatchIfExists(ctx context.Context, c client.Client, obj client.Object, f controllerutil.MutateFn) (controllerutil.OperationResult, error)
PatchIfExists patches the given object in the Kubernetes cluster if exists. The object's desired state must be reconciled with the before state inside the passed in callback MutateFn.
func UpdateIfExists ¶
func UpdateIfExists(ctx context.Context, c client.Client, obj client.Object, f controllerutil.MutateFn) (controllerutil.OperationResult, error)
UpdateIfExists updates the given object in the Kubernetes cluster if exists. The object's desired state must be reconciled with the existing state inside the passed in callback MutateFn.
Types ¶
type ClusterController ¶
type ClusterController struct { }
func (*ClusterController) SetupWithManager ¶
func (c *ClusterController) SetupWithManager(mgr ctrl.Manager, options controller.Options) error
SetupWithManager sets up the controller with the Manager.
type TenantController ¶
type TenantController struct { EtcdSecret map[string][]byte EtcdServers string Client client.Client }
func (*TenantController) SetupWithManager ¶
func (c *TenantController) SetupWithManager(mgr ctrl.Manager, options controller.Options) error
SetupWithManager sets up the controller with the Manager.
Click to show internal directories.
Click to hide internal directories.