File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
ansible/roles/pgo-operator/templates Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -29,16 +29,17 @@ PG_SA="pgo-pg"
2929# create the namespace if necessary
3030{{ kubectl_or_oc }} get ns {{ item }} > /dev/null
3131if [ $? -eq 0 ]; then
32- echo " namespace" {{ item }} " already exists, adding labels"
33- # set the labels so that existing namespace is owned by this installation
34- {{ kubectl_or_oc }} label namespace/{{ item }} pgo-created-by=add-script
35- {{ kubectl_or_oc }} label namespace/{{ item }} vendor=crunchydata
36- {{ kubectl_or_oc }} label namespace/{{ item }} pgo-installation-name={{ pgo_installation_name }}
32+ echo " namespace" {{ item }} " already exists"
3733else
3834 echo " namespace" {{ item }} " is new"
3935 {{ kubectl_or_oc }} create ns {{ item }}
4036fi
4137
38+ # set the labels so that this namespace is owned by this installation
39+ {{ kubectl_or_oc }} label namespace/{{ item }} pgo-created-by=add-script
40+ {{ kubectl_or_oc }} label namespace/{{ item }} vendor=crunchydata
41+ {{ kubectl_or_oc }} label namespace/{{ item }} pgo-installation-name={{ pgo_installation_name }}
42+
4243# determine if an existing pod is using the 'pgo-pg' service account. if so, do not delete
4344# and recreate the SA or its associated role and role binding. this is to avoid any undesired
4445# behavior with existing PG clusters that are actively utilizing the SA.
You can’t perform that action at this time.
0 commit comments