Documentation ¶
Overview ¶
Package tenantnamespace provides an interface, and its implementation, to handle the creation and the management of tenant namespaces
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNameForNamespace ¶ added in v0.4.0
func GetNameForNamespace(cluster discoveryv1alpha1.ClusterIdentity) string
GetNameForNamespace given a cluster identity it returns the name of the tenant namespace for the cluster.
Types ¶
type Manager ¶
type Manager interface { CreateNamespace(cluster discoveryv1alpha1.ClusterIdentity) (*v1.Namespace, error) GetNamespace(cluster discoveryv1alpha1.ClusterIdentity) (*v1.Namespace, error) BindClusterRoles(cluster discoveryv1alpha1.ClusterIdentity, clusterRoles ...*rbacv1.ClusterRole) ([]*rbacv1.RoleBinding, error) UnbindClusterRoles(cluster discoveryv1alpha1.ClusterIdentity, clusterRoles ...string) error }
Manager provides the methods to handle the creation and the management of tenant namespaces.
func NewTenantNamespaceManager ¶
func NewTenantNamespaceManager(client kubernetes.Interface) Manager
NewTenantNamespaceManager creates a new TenantNamespaceManager object.
Click to show internal directories.
Click to hide internal directories.