testing

package
v0.0.0-...-61990a0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultKMSPluginConfig = configv1.KMSPluginConfig{
	Type: configv1.VaultKMSProvider,
	Vault: configv1.VaultKMSPluginConfig{
		KMSPluginImage: "registry.example.com/kms-plugin@sha256:abcdef1234567890abcdef1234567890abcdef1234567890abcdef1234567890",
		VaultAddress:   "https://vault.example.com",
		Authentication: configv1.VaultAuthentication{
			Type: configv1.VaultAuthenticationTypeAppRole,
			AppRole: configv1.VaultAppRoleAuthentication{
				Secret: configv1.VaultSecretReference{Name: "vault-approle-secret"},
			},
		},
		TLS: configv1.VaultTLSConfig{
			CABundle: configv1.VaultConfigMapReference{Name: "vault-ca-bundle"},
		},
		TransitKey: "test-transit-key",
	},
}

Functions

func CreateDummyKubeAPIPod

func CreateDummyKubeAPIPod(name, namespace string, nodeName string) *corev1.Pod

func CreateDummyKubeAPIPodInUnknownPhase

func CreateDummyKubeAPIPodInUnknownPhase(name, namespace string, nodeName string) *corev1.Pod

func CreateEncryptionKeySecretNoData

func CreateEncryptionKeySecretNoData(targetNS string, grs []schema.GroupResource, keyID uint64) *corev1.Secret

func CreateEncryptionKeySecretNoDataWithMode

func CreateEncryptionKeySecretNoDataWithMode(targetNS string, grs []schema.GroupResource, keyID uint64, mode string) *corev1.Secret

func CreateEncryptionKeySecretWithCustomKMSPluginConfig

func CreateEncryptionKeySecretWithCustomKMSPluginConfig(targetNS string, grs []schema.GroupResource, keyID uint64, pluginConfig configv1.KMSPluginConfig) *corev1.Secret

func CreateEncryptionKeySecretWithKMSPluginConfig

func CreateEncryptionKeySecretWithKMSPluginConfig(targetNS string, grs []schema.GroupResource, keyID uint64) *corev1.Secret

func CreateEncryptionKeySecretWithKeyFromExistingSecret

func CreateEncryptionKeySecretWithKeyFromExistingSecret(targetNS string, grs []schema.GroupResource, keyID uint64, existingSecret *corev1.Secret) *corev1.Secret

func CreateEncryptionKeySecretWithKeyFromExistingSecretWithMode

func CreateEncryptionKeySecretWithKeyFromExistingSecretWithMode(targetNS string, grs []schema.GroupResource, keyID uint64, existingSecret *corev1.Secret, mode string) *corev1.Secret

func CreateEncryptionKeySecretWithRawKey

func CreateEncryptionKeySecretWithRawKey(targetNS string, grs []schema.GroupResource, keyID uint64, rawKey []byte) *corev1.Secret

func CreateEncryptionKeySecretWithRawKeyWithMode

func CreateEncryptionKeySecretWithRawKeyWithMode(targetNS string, grs []schema.GroupResource, keyID uint64, rawKey []byte, mode string) *corev1.Secret

func CreateExpiredMigratedEncryptionKeySecretWithKMSPluginConfig

func CreateExpiredMigratedEncryptionKeySecretWithKMSPluginConfig(targetNS string, grs []schema.GroupResource, keyID uint64) *corev1.Secret

func CreateExpiredMigratedEncryptionKeySecretWithRawKey

func CreateExpiredMigratedEncryptionKeySecretWithRawKey(targetNS string, grs []schema.GroupResource, keyID uint64, rawKey []byte) *corev1.Secret

func CreateMigratedEncryptionKeySecretWithKMSPluginConfig

func CreateMigratedEncryptionKeySecretWithKMSPluginConfig(targetNS string, grs []schema.GroupResource, keyID uint64, ts time.Time) *corev1.Secret

func CreateMigratedEncryptionKeySecretWithRawKey

func CreateMigratedEncryptionKeySecretWithRawKey(targetNS string, grs []schema.GroupResource, keyID uint64, rawKey []byte, ts time.Time) *corev1.Secret

func CreateVaultAppRoleSecret

func CreateVaultAppRoleSecret(name, roleID, secretID string) *corev1.Secret

func CreateVaultCABundleConfigMap

func CreateVaultCABundleConfigMap(name, caBundleCrt string) *corev1.ConfigMap

func ValidateActionsVerbs

func ValidateActionsVerbs(actualActions []clientgotesting.Action, expectedActions []string) error

func ValidateEncryptionKey

func ValidateEncryptionKey(secret *corev1.Secret) error

func ValidateOperatorClientConditions

func ValidateOperatorClientConditions(ts *testing.T, operatorClient v1helpers.OperatorClient, expectedConditions []operatorv1.OperatorCondition)

Types

This section is empty.

Jump to

Keyboard shortcuts

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