Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEncryptionConfigAndState ¶
func GetEncryptionConfigAndState( ctx context.Context, deployer Deployer, secretClient corev1client.SecretsGetter, encryptionSecretSelector metav1.ListOptions, encryptedGRs []schema.GroupResource, ) (current *apiserverconfigv1.EncryptionConfiguration, desired map[schema.GroupResource]state.GroupResourceState, encryptionSecrets []*corev1.Secret, transitioningReason string, err error)
Types ¶
type Deployer ¶
type Deployer interface { // DeployedEncryptionConfigSecret returns the deployed encryption config and whether all // instances of the operand have acknowledged it. DeployedEncryptionConfigSecret(ctx context.Context) (secret *corev1.Secret, converged bool, err error) // AddEventHandler registers a event handler whenever the backing resource change // that might influence the result of DeployedEncryptionConfigSecret. AddEventHandler(handler cache.ResourceEventHandler) (cache.ResourceEventHandlerRegistration, error) HasSynced() bool }
Deployer abstracts the deployment mechanism like the static pod controllers.
Click to show internal directories.
Click to hide internal directories.