Documentation ¶
Index ¶
- Variables
- func CreateBaseCapp() *cappv1alpha1.Capp
- func CreateCappRole() *rbacv1.Role
- func CreateCappRoleBinding() *rbacv1.RoleBinding
- func CreateConfigMap() *corev1.ConfigMap
- func CreateRole(name string, rules []rbacv1.PolicyRule) *rbacv1.Role
- func CreateRoleBinding(name string, roleRef rbacv1.RoleRef, subjects []rbacv1.Subject) *rbacv1.RoleBinding
- func CreateSecret() *corev1.Secret
- func CreateServiceAccount(name string) *corev1.ServiceAccount
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NSName = "capp-e2e-tests" DataKey = "password" DataValue = "password" KindConfigMap = "ConfigMap" KindSecret = "Secret" )
Functions ¶
func CreateBaseCapp ¶
func CreateBaseCapp() *cappv1alpha1.Capp
CreateBaseCapp is responsible for making the most lean version of Capp, so we can manipulate it in the tests.
func CreateCappRole ¶ added in v0.2.0
CreateCappRole creates a role with basic permissions for pod logs.
func CreateCappRoleBinding ¶ added in v0.2.0
func CreateCappRoleBinding() *rbacv1.RoleBinding
CreateCappRoleBinding creates a binding for the pod reader role.
func CreateConfigMap ¶ added in v0.2.0
CreateConfigMap creates a basic configMap.
func CreateRole ¶
func CreateRole(name string, rules []rbacv1.PolicyRule) *rbacv1.Role
CreateRole creates a role with the specified name and rules.
func CreateRoleBinding ¶
func CreateRoleBinding(name string, roleRef rbacv1.RoleRef, subjects []rbacv1.Subject) *rbacv1.RoleBinding
CreateRoleBinding creates a role binding with the specified name, role reference, and subjects.
func CreateServiceAccount ¶ added in v0.2.0
func CreateServiceAccount(name string) *corev1.ServiceAccount
CreateServiceAccount creates a service account with the specified name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.