fixed error: namespaces "harbor" not found

This commit is contained in:
Haitao Pan 2023-05-09 19:18:57 +08:00
parent bc8d2bff03
commit 25d25e71ad

View File

@ -1,6 +1,5 @@
- name: "cluster {{ ClusterContext }} : Create namespace"
shell: "kubectl create ns ${namespace} || echo true"
ignore_errors: yes
shell: "kubectl create ns {{ namespace }} || echo true"
- name: "cluster {{ ClusterContext }} : Clean OLD Secret"
shell: "kubectl delete secret {{ item.secret_name }} --all -n {{ namespace }}"