Skip to content

Commit 70a699f

Browse files
[patch] Fix Upgrade issue for ocp_idms
1 parent 8663691 commit 70a699f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

ibm/mas_devops/roles/ocp_idms/tasks/update-pull-secret.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
- name: "update-pull-secret : Set new secret content"
77
vars:
88
registryAuthB64: "{{ registry_auth | b64encode }}"
9-
content:
10-
- "{\"auths\":{\"{{ registry_private_url }}\":{\"username\":\"{{ registry_username }}\",\"password\":\"{{ registry_password }}\",\"email\":\"{{ registry_username }}\",\"auth\":\"{{ registryAuthB64 }}\"}"
11-
- "}"
12-
- "}"
139
set_fact:
14-
new_secret: "{{ content | join('') }}"
10+
new_secret:
11+
auths:
12+
"{{ registry_private_url }}":
13+
username: "{{ registry_username }}"
14+
password: "{{ registry_password }}"
15+
email: "{{ registry_username }}"
16+
auth: "{{ registryAuthB64 }}"
1517
no_log: true
1618

1719
# 1.2 Find the existing secret, and we are going to modify it rather than replace
@@ -38,7 +40,7 @@
3840
# 1.3 Append our new credentials to the secret
3941
- name: "update-pull-secret : Combine new secret content"
4042
set_fact:
41-
new_secret_string: '{{ secret_string | combine( new_secret, recursive=True) }}'
43+
new_secret_string: '{{ secret_string | combine(new_secret, recursive=True) }}'
4244
no_log: true
4345

4446
# 1.4. Overwrite the secret

0 commit comments

Comments
 (0)