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.
8 lines
170 B
Python
8 lines
170 B
Python
import os
|
|
def main():
|
|
cfgmap_path = "/configs/"
|
|
secret_path = "/secrets/"
|
|
if os.listdir(cfgmap_path) or os.listdir(secret_path):
|
|
return "no", 400
|
|
return "yes", 200
|