diff --git a/docs/infrastructure/03-Guides/add-a-new-secret.md b/docs/infrastructure/03-Guides/add-a-new-secret.md index 77bcdad..3023634 100644 --- a/docs/infrastructure/03-Guides/add-a-new-secret.md +++ b/docs/infrastructure/03-Guides/add-a-new-secret.md @@ -213,26 +213,26 @@ metadata: namespace: spec: provider: azure + # add-highlight-start + secretObjects: + # each of these is a COLLECTION of secrets. + # multiple separate collections can be defined, but to identify Azure secrets from other k8s secrets, + # we use a collection that contains multiple secrets (as if it were an Object in fact). + # important: it only needs to be created the first time, then just add a key underneath + - secretName: azure-kv + type: Opaque + data: + # the secret that we want to expose also as k8s secret should be added here. + # important to distinguish objectName (reference to "KV") from key (custom name) + - objectName: # secret name inside the "KV" + key: example-secret # custom k8s secret's key + # add-highlight-end parameters: usePodIdentity: 'false' useVMManagedIdentity: 'true' userAssignedIdentityID: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' tenantId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' keyvaultName: 'kv-polinetwork' - # add-highlight-start - secretObjects: - # each of these is a COLLECTION of secrets. - # multiple separate collections can be defined, but to identify Azure secrets from other k8s secrets, - # we use a collection that contains multiple secrets (as if it were an Object in fact). - # important: it only needs to be created the first time, then just add a key underneath - - secretName: azure-kv - type: Opaque - data: - # the secret that we want to expose also as k8s secret should be added here. - # important to distinguish objectName (reference to "KV") from key (custom name) - - objectName: # secret name inside the "KV" - key: example-secret # custom k8s secret's key - # add-highlight-end objects: | array: - | @@ -428,18 +428,18 @@ metadata: namespace: test-secret-env spec: provider: azure + secretObjects: + - secretName: azure-kv + type: Opaque + data: + - objectName: + key: example-secret parameters: usePodIdentity: 'false' useVMManagedIdentity: 'true' userAssignedIdentityID: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' tenantId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' keyvaultName: 'kv-polinetwork' - secretObjects: - - secretName: azure-kv - type: Opaque - data: - - objectName: - key: example-secret objects: | array: - |