change k8s startup probe script to function call
This commit is contained in:
parent
7e995bd78b
commit
d63435e092
@ -29,7 +29,7 @@ def check_token_file():
|
||||
return False
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
def run_checks():
|
||||
if check_token_file():
|
||||
sys.exit(0)
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user