Skip to content

Commit 8619a4e

Browse files
Roming22enarha
authored andcommitted
Cosmetic changes to dev_setup.sh output
Signed-off-by: Romain Arnaud <[email protected]>
1 parent b973abc commit 8619a4e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

operator/images/access-setup/content/bin/setup_work_dir.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ tekton_results_manifest(){
181181
mkdir -p "$manifests_dir/compute/tekton-results"
182182
kubectl create namespace tekton-results --dry-run=client -o yaml > "$manifests_dir/compute/tekton-results/namespace.yaml"
183183
yq e -n '.resources += ["namespace.yaml"]' > "$manifests_dir/compute/tekton-results/kustomization.yaml"
184+
printf "OK\n"
184185
return
185186
fi
186187

operator/images/cluster-setup/content/bin/utils.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,20 +117,20 @@ check_crashlooping_pods() {
117117
local ns="$1"
118118
local crashlooping_pods
119119

120-
printf "checking for crashlooping pods in namsespace: %s\n" "$ns"
120+
printf -- "- Checking for crashlooping pods in namespace %s: " "$ns"
121121
crashlooping_pods=$(kubectl get pods -n "$ns" --field-selector=status.phase!=Running -o jsonpath='{range .items[?(@.status.containerStatuses[*].state.waiting.reason=="CrashLoopBackOff")]}{.metadata.name}{","}{end}' 2>/dev/null)
122122

123123
# Check if the any crashlooping pods found
124124
if [[ -n $crashlooping_pods ]]; then
125-
printf ", CrashLoopBackOff error in namespace: %s\n" "$ns"
125+
printf "Error\n"
126126
IFS=',' read -ra pods <<< "$crashlooping_pods"
127127
for pod in "${pods[@]}"; do
128128
kubectl get pod "$pod" -n "$ns"
129129
kubectl logs "$pod" -n "$ns"
130130
done
131131
exit 1
132132
else
133-
printf ", Running\n"
133+
printf "OK\n"
134134
fi
135135
}
136136

0 commit comments

Comments
 (0)