Documentation ¶
Index ¶
- Constants
- func Add(mgr manager.Manager) error
- func AddManager(mgr manager.Manager, r reconcile.Reconciler) error
- func GenerateCfgStr(clusterName string, ip string, ca, token []byte, username string) (string, error)
- func NewReconciler(mgr manager.Manager) reconcile.Reconciler
- func SetupTestReconcile(inner reconcile.Reconciler) (reconcile.Reconciler, chan reconcile.Request)
- type ReconcileTenantNamespace
Constants ¶
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 ¶
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 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 ¶
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