Files
prithvirameshandTa-Ching Chen 306f4722f6 Functions have access to secrets/configmaps specified by the user (#399)
This commit solves part of the issue #52 , functions are able to access secrets/configmaps specified by the user. For now, CLI only accept one secret/configmap. For advanced users, it will be able to use YAML to declare multiple secrets/configmaps in later changes.
2018-02-05 17:49:26 +08:00

7 lines
130 B
Plaintext

def main():
path = "/secrets/default/{{ FN_SECRET }}/TEST_KEY"
f = open(path, "r")
data = f.read()
#print()
return data, 200