From 7bcc824779251861c974db63ee33904eb528fdbe Mon Sep 17 00:00:00 2001 From: Manish Bansal Date: Wed, 7 Aug 2019 05:06:50 +0530 Subject: [PATCH] Powershell note for kubectl patch command (#15308) * Improvement for kubectl patch command This command does not work in Powershell. A specific note would help the developers to take care of the same. * Fixed review comments Added different tabs for bash and PowerShell. * Removing note for PowerShell Hugo is not able to add note along with shortcode. Hence removing note. --- .../run-application/update-api-object-kubectl-patch.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/content/en/docs/tasks/run-application/update-api-object-kubectl-patch.md b/content/en/docs/tasks/run-application/update-api-object-kubectl-patch.md index d8b426a7f9..3c59c00e06 100644 --- a/content/en/docs/tasks/run-application/update-api-object-kubectl-patch.md +++ b/content/en/docs/tasks/run-application/update-api-object-kubectl-patch.md @@ -69,9 +69,14 @@ spec: Patch your Deployment: -```shell +{{< tabs name="kubectl_patch_example" >}} +{{{< tab name="Bash" codelang="bash" >}} kubectl patch deployment patch-demo --patch "$(cat patch-file-containers.yaml)" -``` +{{< /tab >}} +{{< tab name="PowerShell" codelang="posh" >}} +kubectl patch deployment patch-demo --patch $(cat patch-file-containers.yaml) +{{< /tab >}}} +{{< /tabs >}} View the patched Deployment: