mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-06-24 13:39:27 +08:00
added try catch logic to prevent future failures if annotations fail since failing annotations shouldn't affect users
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user