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,5 +1,5 @@
|
||||
def main():
|
||||
path = "/configs/default/{{ FN_CFGMAP }}/TEST_KEY"
|
||||
path = "/configmaps/default/{{ FN_CFGMAP }}/TEST_KEY"
|
||||
f = open(path, "r")
|
||||
data = f.read()
|
||||
return data, 200
|
||||
|
||||
Reference in New Issue
Block a user