Use use-context to set Kubernetes context

`kubectl config use-context` is the command to set the current context,
not `set-context`

Signed-off-by: Will Thames <will@thames.id.au>
This commit is contained in:
Will Thames 2018-06-06 13:02:26 +10:00
parent bd744bced7
commit b899096f99

View File

@ -1,5 +1,5 @@
- name: Set the Kubernetes Context
shell: "kubectl config set-context {{ kubernetes_context }}"
shell: "kubectl config use-context {{ kubernetes_context }}"
- name: Get Namespace Detail
shell: "kubectl get namespace {{ kubernetes_namespace }}"