mocks

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

func CreateCappRole() *rbacv1.Role

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

func CreateConfigMap() *corev1.ConfigMap

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 CreateSecret

func CreateSecret() *corev1.Secret

CreateSecret creates a basic secret.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL