Documentation
¶
Index ¶
- Variables
- func CreateDummyKubeAPIPod(name, namespace string, nodeName string) *corev1.Pod
- func CreateDummyKubeAPIPodInUnknownPhase(name, namespace string, nodeName string) *corev1.Pod
- func CreateEncryptionKeySecretNoData(targetNS string, grs []schema.GroupResource, keyID uint64) *corev1.Secret
- func CreateEncryptionKeySecretNoDataWithMode(targetNS string, grs []schema.GroupResource, keyID uint64, mode string) *corev1.Secret
- func CreateEncryptionKeySecretWithCustomKMSPluginConfig(targetNS string, grs []schema.GroupResource, keyID uint64, ...) *corev1.Secret
- func CreateEncryptionKeySecretWithKMSPluginConfig(targetNS string, grs []schema.GroupResource, keyID uint64) *corev1.Secret
- func CreateEncryptionKeySecretWithKeyFromExistingSecret(targetNS string, grs []schema.GroupResource, keyID uint64, ...) *corev1.Secret
- func CreateEncryptionKeySecretWithKeyFromExistingSecretWithMode(targetNS string, grs []schema.GroupResource, keyID uint64, ...) *corev1.Secret
- func CreateEncryptionKeySecretWithRawKey(targetNS string, grs []schema.GroupResource, keyID uint64, rawKey []byte) *corev1.Secret
- func CreateEncryptionKeySecretWithRawKeyWithMode(targetNS string, grs []schema.GroupResource, keyID uint64, rawKey []byte, ...) *corev1.Secret
- func CreateExpiredMigratedEncryptionKeySecretWithKMSPluginConfig(targetNS string, grs []schema.GroupResource, keyID uint64) *corev1.Secret
- func CreateExpiredMigratedEncryptionKeySecretWithRawKey(targetNS string, grs []schema.GroupResource, keyID uint64, rawKey []byte) *corev1.Secret
- func CreateMigratedEncryptionKeySecretWithKMSPluginConfig(targetNS string, grs []schema.GroupResource, keyID uint64, ts time.Time) *corev1.Secret
- func CreateMigratedEncryptionKeySecretWithRawKey(targetNS string, grs []schema.GroupResource, keyID uint64, rawKey []byte, ...) *corev1.Secret
- func CreateVaultAppRoleSecret(name, roleID, secretID string) *corev1.Secret
- func CreateVaultCABundleConfigMap(name, caBundleCrt string) *corev1.ConfigMap
- func ValidateActionsVerbs(actualActions []clientgotesting.Action, expectedActions []string) error
- func ValidateEncryptionKey(secret *corev1.Secret) error
- func ValidateOperatorClientConditions(ts *testing.T, operatorClient v1helpers.OperatorClient, ...)
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 CreateEncryptionKeySecretWithCustomKMSPluginConfig ¶
func CreateEncryptionKeySecretWithCustomKMSPluginConfig(targetNS string, grs []schema.GroupResource, keyID uint64, pluginConfig configv1.KMSPluginConfig) *corev1.Secret
func ValidateActionsVerbs ¶
func ValidateActionsVerbs(actualActions []clientgotesting.Action, expectedActions []string) error
func ValidateEncryptionKey ¶
func ValidateOperatorClientConditions ¶
func ValidateOperatorClientConditions(ts *testing.T, operatorClient v1helpers.OperatorClient, expectedConditions []operatorv1.OperatorCondition)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.