fixtures

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SecretLabelKey is label key for SecretLabels.
	SecretLabelKey = "secret.h3poteto.dev"
	// SecretLabelValue is label value for SecretLabels.
	SecretLabelValue = "secret"
)
View Source
const (
	// ManagerName is container name of manager.
	ManagerName = "manager"
	// ManagerPodLabelKey is label key for ManagerPodLabels.
	ManagerPodLabelKey = "operator.h3poteto.dev"
	// ManagerPodLabelValue is label value for ManagerPodLabels.
	ManagerPodLabelValue = "control-plane"
)

Variables

ManagerPodLabels is label for generated manager Pods. This label is used in e2e tests when find generated Pods.

SecretLabels is label for generated Secrets. This label is used in tests when find generated resources.

Functions

func NewKMSSecret

func NewKMSSecret(ns, name, region string, data map[string][]byte) *secretv1beta1.KMSSecret

NewKMSSecret generates KMSSecret resource.

func NewManagerManifests

func NewManagerManifests(ns, sa, image, region, accessKey, secretKey string) (*corev1.ServiceAccount, *appsv1.Deployment)

NewManagerManifests generates ServiceAccount and Deployment manifests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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