Skip to content

Commit fb6fdcc

Browse files
committed
Separate retry with pipe operations
This patch will fix following CI failure. ``` + retry ./openshift-clients/linux/oc get secrets -n openshift-authentication v4-0-config-system-ocp-branding-template -o json + local retries=10 + local count=0 + jq -r '.data["login.html"]' + ./openshift-clients/linux/oc get secrets -n openshift-authentication v4-0-config-system-ocp-branding-template -o json + base64 -d The connection to the server api.crc.testing:6443 was refused - did you specify the right host or port? + exit=1 + wait=1 + count=1 + '[' 1 -lt 10 ']' + echo 'Retry 1/10 exited 1, retrying in 1 seconds...' + sleep 1 parse error: Invalid numeric literal at line 1, column 6 ```
1 parent 38e2f7f commit fb6fdcc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

snc.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ retry ${OC} scale --replicas=1 ingresscontroller/default -n openshift-ingress-op
191191
retry ${OC} patch config.imageregistry.operator.openshift.io/cluster --patch '{"spec":{"defaultRoute":true}}' --type=merge
192192

193193
# Add a tip in the login page
194-
retry ${OC} get secrets -n openshift-authentication v4-0-config-system-ocp-branding-template -o json | ${JQ} -r '.data["login.html"]' | base64 -d > login.html
194+
retry ${OC} get secrets -n openshift-authentication v4-0-config-system-ocp-branding-template -o json > tmp_secret_template.json
195+
${JQ} -r '.data["login.html"]' tmp_secret_template.json | base64 -d > login.html
195196
${PATCH} login.html < login.html.patch
196197
retry ${OC} create secret generic login-template --from-file=login.html -n openshift-config
197198

0 commit comments

Comments
 (0)