Documentation
¶
Index ¶
- Variables
- func ApplyTenantResourceQuota(name string, ownerReferences []metav1.OwnerReference, ...)
- func CreateClusterRoles() error
- func CreateObjectSpecificClusterRole(apiGroup, resource, resourceName, name string, verbs []string, ...) (string, error)
- func CreateObjectSpecificClusterRoleBinding(roleName, email string, roleBindLabels map[string]string, ...) error
- func CreateTenant(tenantRequest *registrationv1alpha1.TenantRequest) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Clientset kubernetes.Interface
Clientset to be synced by the custom resources
View Source
var EdgenetClientset clientset.Interface
View Source
var SlackChannelIdPath *string
View Source
var SlackTokenPath *string
Functions ¶
func ApplyTenantResourceQuota ¶
func ApplyTenantResourceQuota(name string, ownerReferences []metav1.OwnerReference, claim corev1alpha1.ResourceTuning, applied chan<- error)
ApplyTenantResourceQuota generates a tenant resource quota with the name provided
func CreateClusterRoles ¶
func CreateClusterRoles() error
CreateClusterRoles generate a cluster role for tenant owners, admins, and collaborators
func CreateObjectSpecificClusterRole ¶
func CreateObjectSpecificClusterRole(apiGroup, resource, resourceName, name string, verbs []string, ownerReferences []metav1.OwnerReference) (string, error)
CreateObjectSpecificClusterRole generates a object specific cluster role to allow the user access
func CreateObjectSpecificClusterRoleBinding ¶
func CreateObjectSpecificClusterRoleBinding(roleName, email string, roleBindLabels map[string]string, ownerReferences []metav1.OwnerReference) error
CreateObjectSpecificClusterRoleBinding links the cluster role up with the user
func CreateTenant ¶
func CreateTenant(tenantRequest *registrationv1alpha1.TenantRequest) error
Create function is for being used by other resources to create a tenant
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.