Share via


KubernetesSecretObjectMapping(String, String) Constructor

Definition

Initializes a new instance of KubernetesSecretObjectMapping.

public KubernetesSecretObjectMapping(string sourcePath, string targetKey);
new Azure.ResourceManager.SecretsStoreExtension.Models.KubernetesSecretObjectMapping : string * string -> Azure.ResourceManager.SecretsStoreExtension.Models.KubernetesSecretObjectMapping
Public Sub New (sourcePath As String, targetKey As String)

Parameters

sourcePath
String

SourcePath is the identifier for the secret data as defined by the external secret provider. This is the key or path to the secret in the provider's system, which gets mounted to a specific path in the pod. The value should match the name of the secret as specified in the SecretProviderClass's objects array.

targetKey
String

TargetKey is the key in the Kubernetes secret's data field where the secret value will be stored. This key is used to reference the secret data within Kubernetes, and it should be unique within the secret.

Exceptions

sourcePath or targetKey is null.

Applies to