From 6295722d51ae3da03ba7499212ff6c5f2269bebf Mon Sep 17 00:00:00 2001 From: neelimamanubolu <48236703+neelimamanubolu@users.noreply.github.com> Date: Wed, 29 May 2019 03:24:18 +0530 Subject: [PATCH] fix(clouddriver): Unsuccessful default namespace resolution in Kubernetes v2 provider --- .../clouddriver/kubernetes/v2/op/job/KubectlJobExecutor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clouddriver-kubernetes/src/main/groovy/com/netflix/spinnaker/clouddriver/kubernetes/v2/op/job/KubectlJobExecutor.java b/clouddriver-kubernetes/src/main/groovy/com/netflix/spinnaker/clouddriver/kubernetes/v2/op/job/KubectlJobExecutor.java index 4bdf6a6b5f3..96d0d8fecad 100644 --- a/clouddriver-kubernetes/src/main/groovy/com/netflix/spinnaker/clouddriver/kubernetes/v2/op/job/KubectlJobExecutor.java +++ b/clouddriver-kubernetes/src/main/groovy/com/netflix/spinnaker/clouddriver/kubernetes/v2/op/job/KubectlJobExecutor.java @@ -88,7 +88,7 @@ public String defaultNamespace(KubernetesV2Credentials credentials) { command.add("view"); command.add("-o"); String jsonPath = "{.contexts[?(@.name==\"" + configCurrentContext + "\")].context.namespace}"; - command.add("\"jsonPath=" + jsonPath + "\""); + command.add("\"jsonpath=" + jsonPath + "\""); JobResult status = jobExecutor.runJob(new JobRequest(command));