Consolidates the addition of the fetcher container to the pod into a new type FetcherConfig and takes care of serviceAccountName if not set. Also added PreStop lifecycle handler if pod set TerminationGracePeriodSeconds
8 lines
173 B
Python
8 lines
173 B
Python
import os
|
|
def main():
|
|
cfgmap_path = "/configmaps/"
|
|
secret_path = "/secrets/"
|
|
if os.listdir(cfgmap_path) or os.listdir(secret_path):
|
|
return "no", 400
|
|
return "yes", 200
|