다음을 통해 공유


SecretSyncProperties Constructor

Definition

Initializes a new instance of SecretSyncProperties.

public SecretSyncProperties(string secretProviderClassName, string serviceAccountName, Azure.ResourceManager.SecretsStoreExtension.Models.KubernetesSecretType kubernetesSecretType, System.Collections.Generic.IEnumerable<Azure.ResourceManager.SecretsStoreExtension.Models.KubernetesSecretObjectMapping> objectSecretMapping);
new Azure.ResourceManager.SecretsStoreExtension.Models.SecretSyncProperties : string * string * Azure.ResourceManager.SecretsStoreExtension.Models.KubernetesSecretType * seq<Azure.ResourceManager.SecretsStoreExtension.Models.KubernetesSecretObjectMapping> -> Azure.ResourceManager.SecretsStoreExtension.Models.SecretSyncProperties
Public Sub New (secretProviderClassName As String, serviceAccountName As String, kubernetesSecretType As KubernetesSecretType, objectSecretMapping As IEnumerable(Of KubernetesSecretObjectMapping))

Parameters

secretProviderClassName
String

SecretProviderClassName specifies the name of the SecretProviderClass resource, which contains the information needed to access the cloud provider secret store.

serviceAccountName
String

ServiceAccountName specifies the name of the service account used to access the cloud provider secret store. The audience field in the service account token must be passed as parameter in the controller configuration. The audience is used when requesting a token from the API server for the service account; the supported audiences are defined by each provider.

kubernetesSecretType
KubernetesSecretType

Type specifies the type of the Kubernetes secret object, e.g. "Opaque" or"kubernetes.io/tls". The controller must have permission to create secrets of the specified type.

objectSecretMapping
IEnumerable<KubernetesSecretObjectMapping>

An array of SecretObjectData that maps secret data from the external secret provider to the Kubernetes secret. Each entry specifies the source secret in the external provider and the corresponding key in the Kubernetes secret.

Exceptions

secretProviderClassName, serviceAccountName or objectSecretMapping is null.

Applies to