File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
cluster-setup/content/bin Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -181,6 +181,7 @@ tekton_results_manifest(){
181
181
mkdir -p " $manifests_dir /compute/tekton-results"
182
182
kubectl create namespace tekton-results --dry-run=client -o yaml > " $manifests_dir /compute/tekton-results/namespace.yaml"
183
183
yq e -n ' .resources += ["namespace.yaml"]' > " $manifests_dir /compute/tekton-results/kustomization.yaml"
184
+ printf " OK\n"
184
185
return
185
186
fi
186
187
Original file line number Diff line number Diff line change @@ -117,20 +117,20 @@ check_crashlooping_pods() {
117
117
local ns=" $1 "
118
118
local crashlooping_pods
119
119
120
- printf " checking for crashlooping pods in namsespace: %s\n " " $ns "
120
+ printf -- " - Checking for crashlooping pods in namespace %s: " " $ns "
121
121
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)
122
122
123
123
# Check if the any crashlooping pods found
124
124
if [[ -n $crashlooping_pods ]]; then
125
- printf " , CrashLoopBackOff error in namespace: %s \n" " $ns "
125
+ printf " Error \n"
126
126
IFS=' ,' read -ra pods <<< " $crashlooping_pods"
127
127
for pod in " ${pods[@]} " ; do
128
128
kubectl get pod " $pod " -n " $ns "
129
129
kubectl logs " $pod " -n " $ns "
130
130
done
131
131
exit 1
132
132
else
133
- printf " , Running \n"
133
+ printf " OK \n"
134
134
fi
135
135
}
136
136
You can’t perform that action at this time.
0 commit comments