Share via


KubernetesSecretObjectMapping Class

Definition

Properties defining the mapping between a cloud secret store object and a Kubernetes Secret.

public class KubernetesSecretObjectMapping : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.SecretsStoreExtension.Models.KubernetesSecretObjectMapping>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.SecretsStoreExtension.Models.KubernetesSecretObjectMapping>
type KubernetesSecretObjectMapping = class
    interface IJsonModel<KubernetesSecretObjectMapping>
    interface IPersistableModel<KubernetesSecretObjectMapping>
Public Class KubernetesSecretObjectMapping
Implements IJsonModel(Of KubernetesSecretObjectMapping), IPersistableModel(Of KubernetesSecretObjectMapping)
Inheritance
KubernetesSecretObjectMapping
Implements

Constructors

KubernetesSecretObjectMapping(String, String)

Initializes a new instance of KubernetesSecretObjectMapping.

Properties

SourcePath

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

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.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<KubernetesSecretObjectMapping>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<KubernetesSecretObjectMapping>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<KubernetesSecretObjectMapping>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<KubernetesSecretObjectMapping>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<KubernetesSecretObjectMapping>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to