Skip to content

Commit 4926744

Browse files
Merge pull request #28 from cloud-native-toolkit/dls-fix-task
Dls fix task
2 parents b400b25 + 777347c commit 4926744

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

9.0.x/pipeline.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,13 @@ spec:
164164
oc patch configmap/pipeline-output -p '{"data":{"Status":"Deployment Pipeline completed to install mas core."}}'
165165
tasks:
166166
- name: check-container-registry
167+
taskRef:
168+
kind: Task
169+
name: ibm-pak
167170
params:
168171
- name: SCRIPT
169172
value: |
170-
status=$(oc get config -o jsonpath='{.items[0].status.conditions[?(@.type=="Available")].reason}')
173+
status=$(oc get configs.imageregistry.operator.openshift.io cluster -o jsonpath='{.status.conditions[?(@.type=="Available")].reason}')
171174
172175
TIMEOUT_SECONDS=300
173176
while [[ "$status" != "Ready" ]] && [[ $SECONDS -lt $TIMEOUT_SECONDS ]]; do
@@ -181,7 +184,7 @@ spec:
181184
sleep 10
182185
183186
# Update status
184-
status=$(oc get config -o jsonpath='{.items[0].status.conditions[?(@.type=="Available")].reason}')
187+
status=$(oc get configs.imageregistry.operator.openshift.io cluster -o jsonpath='{.status.conditions[?(@.type=="Available")].reason}')
185188
done
186189
187190
if [[ "$status" == "Ready" ]]; then

0 commit comments

Comments
 (0)