Documentation ¶
Index ¶
- func CreateHardMemoryQuota(clientset kubernetes.Interface, namespace, name, memoryLimit string) (*corev1.ResourceQuota, error)
- func CreateServiceAccountWithToken(clientset kubernetes.Interface, namespace, name, tokenName string) (*corev1.ServiceAccount, error)
- func DeleteQuota(clientset kubernetes.Interface, quota *corev1.ResourceQuota) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHardMemoryQuota ¶
func CreateHardMemoryQuota(clientset kubernetes.Interface, namespace, name, memoryLimit string) (*corev1.ResourceQuota, error)
func CreateServiceAccountWithToken ¶
func CreateServiceAccountWithToken(clientset kubernetes.Interface, namespace, name, tokenName string) (*corev1.ServiceAccount, error)
CreateServiceAccountWithToken creates a service account with a given name with a service account token. Need to use this function to simulate the actual behavior of Kubernetes API server with the fake client.
func DeleteQuota ¶
func DeleteQuota(clientset kubernetes.Interface, quota *corev1.ResourceQuota) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.