change set-context to use-context

set-context allows setting configuration within a provided context, to change contexts we need "use-context"

$ kubectl config
...
  set-context     Sets a context entry in kubeconfig
  use-context     Sets the current-context in a kubeconfig file
This commit is contained in:
James Smith
2020-01-07 16:01:54 -06:00
committed by GitHub
parent 679d531930
commit c4df5f64c1

View File

@@ -1,3 +1,3 @@
---
- name: Set the Kubernetes Context
shell: "kubectl config set-context {{ kubernetes_context }}"
shell: "kubectl config use-context {{ kubernetes_context }}"