Interface SecretReferenceProperty<S>
- Type Parameters:
S- The resource type that contains theSecretConfig
- All Superinterfaces:
Consumer<ReferencePropertyBuilder<S>>
Consumer that can be used to add a
ReferencePropertyBuilder for a SecretProviderConfig reference to a resource allowing SecretConfig to consume renames of
the SecretProviderConfig. This class handles the complexity of dealing with the SecretConfig type (none, embedded, referenced) and avoids the need to duplicate that logic
everywhere a reference to a SecretProviderConfig is needed.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiondefault voidaccept(ReferencePropertyBuilder<S> sReferencePropertyBuilder) static <S> SecretReferenceProperty.Builder<S>builder()Create a newSecretReferenceProperty.Builderfor aSecretReferenceProperty.getSecretConfig(S resource) Get theSecretConfigfrom the resource.updateSecretConfig(S resource, SecretConfig secretConfig) Update theSecretConfigon the resource.
-
Method Details
-
builder
Create a newSecretReferenceProperty.Builderfor aSecretReferenceProperty.- Type Parameters:
S- the resource type that contains theSecretConfig- Returns:
- the builder
-
getSecretConfig
Get theSecretConfigfrom the resource.- Parameters:
resource- the resource- Returns:
- the secret config, or null if none is set
-
updateSecretConfig
Update theSecretConfigon the resource.- Parameters:
resource- the resourcesecretConfig- the new secret config- Returns:
- the updated resource
-
accept
-