controllers

package
v0.0.0-...-b9b4522 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateIfNotExists

CreateIfNotExists creates the given object in the Kubernetes cluster.

func PatchIfExists

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

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) Reconcile

func (c *ClusterController) Reconcile(ctx context.Context, req reconcile.Request) (_ reconcile.Result, reterr error)

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) Reconcile

func (c *TenantController) Reconcile(ctx context.Context, req reconcile.Request) (_ reconcile.Result, reterr error)

func (*TenantController) SetupWithManager

func (c *TenantController) SetupWithManager(mgr ctrl.Manager, options controller.Options) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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