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
- func SendEmailForClusterRoleRequest(clusterRoleRequestCopy *registrationv1alpha1.ClusterRoleRequest, ...)
- func SendEmailForRoleRequest(roleRequestCopy *registrationv1alpha1.RoleRequest, ...)
- func SendEmailForTenantRequest(tenantRequestCopy *registrationv1alpha1.TenantRequest, ...)
- func SendSlackNotificationForClusterRoleRequest(clusterRoleRequestCopy *registrationv1alpha1.ClusterRoleRequest, ...)
- func SendSlackNotificationForRoleRequest(roleRequestCopy *registrationv1alpha1.RoleRequest, ...)
- func SendSlackNotificationForTenantRequest(tenantRequestCopy *registrationv1alpha1.TenantRequest, ...)
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
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
func SendEmailForClusterRoleRequest ¶
func SendEmailForClusterRoleRequest(clusterRoleRequestCopy *registrationv1alpha1.ClusterRoleRequest, purpose, subject, clusterUID string, recipient []string)
func SendEmailForRoleRequest ¶
func SendEmailForRoleRequest(roleRequestCopy *registrationv1alpha1.RoleRequest, purpose, subject, clusterUID string, recipient []string)
func SendEmailForTenantRequest ¶
func SendEmailForTenantRequest(tenantRequestCopy *registrationv1alpha1.TenantRequest, purpose, subject, clusterUID string, recipient []string)
func SendSlackNotificationForClusterRoleRequest ¶
func SendSlackNotificationForClusterRoleRequest(clusterRoleRequestCopy *registrationv1alpha1.ClusterRoleRequest, purpose, subject, clusterUID string)
Send a slack notification for cluster role request
func SendSlackNotificationForRoleRequest ¶
func SendSlackNotificationForRoleRequest(roleRequestCopy *registrationv1alpha1.RoleRequest, purpose, subject, clusterUID string)
Send a slack notification for role request
func SendSlackNotificationForTenantRequest ¶
func SendSlackNotificationForTenantRequest(tenantRequestCopy *registrationv1alpha1.TenantRequest, purpose, subject, clusterUID string)
Send a slack notification for tenant request
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.