Documentation ¶
Index ¶
- func Describe(text string, body func()) bool
- func ExpectClusterRole(c clientset.Interface, name string)
- func ExpectClusterRoleBinding(c clientset.Interface, name string)
- func ExpectClusterRoleBindingWithSubjectAndRole(c clientset.Interface, name, subjectKind, subject, role string)
- func ExpectRole(c clientset.Interface, namespace, name string)
- func ExpectRoleBinding(c clientset.Interface, namespace, name string)
- func ExpectService(c clientset.Interface, namespace, name string)
- func ExpectServiceAccount(c clientset.Interface, namespace, name string)
- func ExpectSubjectHasAccessToResource(c clientset.Interface, subjectKind, subject string, ...)
- func GetConfigMap(c clientset.Interface, namespace, name string) *corev1.ConfigMap
- func GetDaemonSet(c clientset.Interface, namespace, name string) *appsv1.DaemonSet
- func GetDeployment(c clientset.Interface, namespace, name string) *appsv1.Deployment
- func GetSecret(c clientset.Interface, namespace, name string) *corev1.Secret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExpectClusterRole ¶
ExpectClusterRole expects to be able to get the ClusterRole with specific name
func ExpectClusterRoleBinding ¶
ExpectClusterRoleBinding expects to be able to get the ClusterRoleBinding with specific name
func ExpectClusterRoleBindingWithSubjectAndRole ¶
func ExpectClusterRoleBindingWithSubjectAndRole(c clientset.Interface, name, subjectKind, subject, role string)
ExpectClusterRoleBindingWithSubjectAndRole expects to be able to get the ClusterRoleBinding with specific name, subject and role
func ExpectRole ¶
ExpectRole expects to be able to get the Role with specific name from the namespace
func ExpectRoleBinding ¶
ExpectRoleBinding expects to be able to get the RoleBinding with specific name from the namespace
func ExpectService ¶
ExpectService expects to be able to get the Service with specific name from the namespace
func ExpectServiceAccount ¶
ExpectServiceAccount expects to be able to get the ServiceAccount with specific name from the namespace
func ExpectSubjectHasAccessToResource ¶
func ExpectSubjectHasAccessToResource(c clientset.Interface, subjectKind, subject string, resource *authv1.ResourceAttributes)
ExpectSubjectHasAccessToResource expects that the subject has access to the target resource
func GetConfigMap ¶
GetConfigMap gets ConfigMap with specific name from the namespace
func GetDaemonSet ¶
GetDaemonSet gets DaemonSet with specific name from the namespace
func GetDeployment ¶
func GetDeployment(c clientset.Interface, namespace, name string) *appsv1.Deployment
GetDeployment gets Deployment with specific name from the namespace
Types ¶
This section is empty.