tenantnamespace

package
v0.0.0-...-1e3144e Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// TenantAdminNamespaceAnnotation is the key for tenantAdminNamespace annotation
	TenantAdminNamespaceAnnotation = "x-k8s.io/tenantAdminNamespace"

	TenantNamespaceFinalizer = "tenantnamespace.finalizer.x-k8s.io"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new TenantNamespace Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

func AddManager

func AddManager(mgr manager.Manager, r reconcile.Reconciler) error

AddManager adds a new Controller to mgr with r as the reconcile.Reconciler

func GenerateCfgStr

func GenerateCfgStr(clusterName string, ip string, ca, token []byte, username string) (string, error)

func NewReconciler

func NewReconciler(mgr manager.Manager) reconcile.Reconciler

NewReconciler returns a new reconcile.Reconciler

func SetupTestReconcile

func SetupTestReconcile(inner reconcile.Reconciler) (reconcile.Reconciler, chan reconcile.Request)

SetupTestReconcile returns a reconcile.Reconcile implementation that delegates to inner and writes the request to requests after Reconcile is finished.

Types

type ReconcileTenantNamespace

type ReconcileTenantNamespace struct {
	client.Client
	// contains filtered or unexported fields
}

ReconcileTenantNamespace reconciles a TenantNamespace object

func (*ReconcileTenantNamespace) Reconcile

Reconcile reads that state of the cluster for a TenantNamespace object and makes changes based on the state read and what is in the TenantNamespace.Spec Automatically generate RBAC rules to allow the Controller to read and write Deployments +kubebuilder:rbac:groups=core,resources=namespaces,verbs=get;list;watch;create +kubebuilder:rbac:groups=tenancy.x-k8s.io,resources=tenantnamespaces,verbs=get;list;watch;create;update;patch;delete +kubebuilder:rbac:groups=tenancy.x-k8s.io,resources=tenantnamespaces/status,verbs=get;update;patch

Jump to

Keyboard shortcuts

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