This repository was archived by the owner on Dec 3, 2021. It is now read-only.
File tree 2 files changed +25
-0
lines changed
2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -40,3 +40,5 @@ _old_contrail/
40
40
* ansiblekey.json
41
41
42
42
platform /antidote-web /target /
43
+
44
+ selfmedicatedebug
Original file line number Diff line number Diff line change @@ -184,6 +184,29 @@ sub_start(){
184
184
echo -e " ${GREEN} Finished!${NC} Antidote should now be available at http://antidote-local:30001/"
185
185
}
186
186
187
+ sub_debug (){
188
+ debugs=(
189
+ " kubectl -n=ptr get pods --all-namespaces"
190
+ " kubectl -n=ptr describe pods --all-namespaces"
191
+ " kubectl -n=ptr logs $( kubectl -n=ptr get pods | awk ' /syringe/ {print $1;exit}' ) "
192
+ )
193
+
194
+ echo " Please wait while debug information is gathered..."
195
+
196
+ rm -f selfmedicatedebug && touch selfmedicatedebug
197
+ for i in " ${debugs[@]} "
198
+ do
199
+ echo -e " \n==============================" >> selfmedicatedebug
200
+ echo " $i " >> selfmedicatedebug
201
+ echo -e " ==============================\n" >> selfmedicatedebug
202
+
203
+ eval $i >> selfmedicatedebug
204
+ # date
205
+ done
206
+
207
+ echo " Done."
208
+ }
209
+
187
210
sub_reload (){
188
211
echo " Reloading lesson content, please wait..."
189
212
kubectl delete pod $( kubectl get pods | grep syringe | awk ' { print $1 }' ) >> /dev/null
You can’t perform that action at this time.
0 commit comments