DRY up fetcher configuration (#1168)
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
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import os
|
||||
def main():
|
||||
cfgmap_path = "/configs/"
|
||||
cfgmap_path = "/configmaps/"
|
||||
secret_path = "/secrets/"
|
||||
if os.listdir(cfgmap_path) or os.listdir(secret_path):
|
||||
return "no", 400
|
||||
|
||||
Reference in New Issue
Block a user