tenantnamespace

package
v0.0.0-...-7605501 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 24 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 GenerateCfgStr

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

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