From f782fbd47c93c625e86ac165967062bd26e8dd87 Mon Sep 17 00:00:00 2001 From: Nick Beenham <1985327+superbeeny@users.noreply.github.com> Date: Wed, 3 Apr 2024 16:46:14 -0400 Subject: [PATCH] Adding code tabs where the commands differ between linux/windows Signed-off-by: Nick Beenham <1985327+superbeeny@users.noreply.github.com> --- .../kubernetes/how-to-access-secrets/index.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/docs/content/guides/author-apps/kubernetes/how-to-access-secrets/index.md b/docs/content/guides/author-apps/kubernetes/how-to-access-secrets/index.md index 8befb51e4..78cb09ad1 100644 --- a/docs/content/guides/author-apps/kubernetes/how-to-access-secrets/index.md +++ b/docs/content/guides/author-apps/kubernetes/how-to-access-secrets/index.md @@ -97,11 +97,27 @@ kubectl get pods -n dev-demo ``` Then, exec into the pod and check the environment variable (substitute the pod name with the one you got from the previous command): - + +{{< tabs "macOS/Linux/WSL" "Windows" >}} + +{{% codetab %}} + ```bash kubectl -n dev-demo exec demo-d64cc4d6d-xjnjz -- env | grep MY_SECRET ``` +{{% /codetab %}} + +{{% codetab %}} + +```powershell +kubectl -n dev-demo exec demo-d64cc4d6d-xjnjz -- env | findstr MY_SECRET +``` + +{{% /codetab %}} + +{{< /tabs >}} + ## Cleanup Run the following command to [delete]({{< ref "guides/deploy-apps/howto-delete" >}}) your app and container: