Skip to content

Commit 87145db

Browse files
authored
fix: Proper whitespace for EOF
The EOF commands won't work if there's whitespace in front of the final EOF. Also make whitespace more consistent in a couple other places.
1 parent a854192 commit 87145db

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/openshift/howto-use-key-vault-secrets.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ export AZ_TENANT_ID=$(az account show -o tsv --query tenantId)
159159
160160
```
161161
az keyvault set-policy -n ${KEYVAULT_NAME} \
162-
--secret-permissions get \
163-
--spn ${SERVICE_PRINCIPAL_CLIENT_ID}
162+
--secret-permissions get \
163+
--spn ${SERVICE_PRINCIPAL_CLIENT_ID}
164164
```
165165
166166
1. Create and label a secret for Kubernetes to use to access the key vault.
@@ -170,7 +170,7 @@ export AZ_TENANT_ID=$(az account show -o tsv --query tenantId)
170170
-n my-application \
171171
--from-literal clientid=${SERVICE_PRINCIPAL_CLIENT_ID} \
172172
--from-literal clientsecret=${SERVICE_PRINCIPAL_CLIENT_SECRET}
173-
kubectl -n my-application label secret \
173+
kubectl -n my-application label secret \
174174
secrets-store-creds secrets-store.csi.k8s.io/used=true
175175
```
176176
@@ -199,7 +199,7 @@ export AZ_TENANT_ID=$(az account show -o tsv --query tenantId)
199199
objectType: secret
200200
objectVersion: ""
201201
tenantId: "${AZ_TENANT_ID}"
202-
EOF
202+
EOF
203203
```
204204
205205
1. Create a pod that uses the `SecretProviderClass` created in the previous step:
@@ -231,7 +231,7 @@ export AZ_TENANT_ID=$(az account show -o tsv --query tenantId)
231231
secretProviderClass: "azure-kvname"
232232
nodePublishSecretRef:
233233
name: secrets-store-creds
234-
EOF
234+
EOF
235235
```
236236
237237
1. Check that the secret is mounted:

0 commit comments

Comments
 (0)