added try catch logic to prevent future failures if annotations fail since failing annotations shouldn't affect users

This commit is contained in:
Jaiveer Katariya
2022-12-07 15:04:46 -05:00
parent 724205aecf
commit 6d9b280d23
3 changed files with 21 additions and 10 deletions
+2
View File
@@ -241,6 +241,8 @@ def main():
RESULT, msg = verifyIngress(k8_object, parsedArgs)
if kind == "TrafficSplit":
RESULT, msg = verifyTSObject(k8_object, parsedArgs)
if kind == "Pod":
RESULT, msg = verifyPod(k8_object, parsedArgs)
if not RESULT:
sys.exit(f"{kind} {name} failed check: {msg}")