Documentation ¶
Index ¶
- func CreateDummyKubeAPIPod(name, namespace string, nodeName string) *corev1.Pod
- func CreateDummyKubeAPIPodInUnknownPhase(name, namespace string, nodeName string) *corev1.Pod
- func CreateEncryptionCfgNoWriteKey(keyID string, keyBase64 string, resources ...string) *apiserverconfigv1.EncryptionConfiguration
- func CreateEncryptionCfgNoWriteKeyMultipleReadKeys(keysResources []EncryptionKeysResourceTuple) *apiserverconfigv1.EncryptionConfiguration
- func CreateEncryptionCfgWithWriteKey(keysResources []EncryptionKeysResourceTuple) *apiserverconfigv1.EncryptionConfiguration
- 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 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 CreateExpiredMigratedEncryptionKeySecretWithRawKey(targetNS string, grs []schema.GroupResource, keyID uint64, rawKey []byte) *corev1.Secret
- func CreateMigratedEncryptionKeySecretWithRawKey(targetNS string, grs []schema.GroupResource, keyID uint64, rawKey []byte, ...) *corev1.Secret
- func ValidateActionsVerbs(actualActions []clientgotesting.Action, expectedActions []string) error
- func ValidateEncryptionKey(secret *corev1.Secret) error
- func ValidateOperatorClientConditions(ts *testing.T, operatorClient v1helpers.OperatorClient, ...)
- type EncryptionKeysResourceTuple
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDummyKubeAPIPod ¶
func CreateEncryptionCfgNoWriteKey ¶
func CreateEncryptionCfgNoWriteKey(keyID string, keyBase64 string, resources ...string) *apiserverconfigv1.EncryptionConfiguration
func CreateEncryptionCfgNoWriteKeyMultipleReadKeys ¶
func CreateEncryptionCfgNoWriteKeyMultipleReadKeys(keysResources []EncryptionKeysResourceTuple) *apiserverconfigv1.EncryptionConfiguration
func CreateEncryptionCfgWithWriteKey ¶
func CreateEncryptionCfgWithWriteKey(keysResources []EncryptionKeysResourceTuple) *apiserverconfigv1.EncryptionConfiguration
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 ¶
type EncryptionKeysResourceTuple ¶
type EncryptionKeysResourceTuple struct { Resource string Keys []apiserverconfigv1.Key // an ordered list of an encryption modes thatch matches the keys // for example mode[0] matches keys[0] Modes []string }
Click to show internal directories.
Click to hide internal directories.