mocks

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 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"
	CappSecretName  = "capp-secret"
	CappAdmin       = "capp-admin"
	CappName        = "capp-default-test"
	CappBaseImage   = "ghcr.io/knative/autoscale-go:latest"
	SecretDataKey   = "password"
	SecretDataValue = "password"
)

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 CreateRole

func CreateRole() *rbacv1.Role

CreateRole creates a role with basic permissions for pod logs.

func CreateRoleBinding

func CreateRoleBinding() *rbacv1.RoleBinding

CreateRoleBinding creates a binding for the pod reader role.

func CreateSecret

func CreateSecret() *corev1.Secret

CreateSecret creates a simple secret for our tests' use.

Types

This section is empty.

Jump to

Keyboard shortcuts

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