Skip to content

Commit 830d219

Browse files
authored
Revert "[patch] Fix registry secret string rendering for older versions of An…"
This reverts commit c5fc8f7.
1 parent c01b37d commit 830d219

File tree

1 file changed

+1
-2
lines changed
  • ibm/mas_devops/roles/db2/tasks/install

1 file changed

+1
-2
lines changed

ibm/mas_devops/roles/db2/tasks/install/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@
140140
set_fact:
141141
new_secret: "{{ content | join('') }}"
142142

143-
# Note: We use "new_secret | to_json | string" to avoid older versions of Ansible creating invalid json representation containing single quotes
144143
- name: "Generate 'ibm-registry' secret"
145144
no_log: true
146145
kubernetes.core.k8s:
@@ -152,7 +151,7 @@
152151
name: ibm-registry
153152
namespace: "{{ db2_namespace }}"
154153
data:
155-
.dockerconfigjson: "{{ new_secret | to_json | string | b64encode }}"
154+
.dockerconfigjson: "{{ new_secret | b64encode }}"
156155
register: secretUpdateResult
157156

158157
- name: "Delete old db2 subscription, operand request and csv from {{ ibm_common_services_namespace }}"

0 commit comments

Comments
 (0)