From a9aa687de6c8072e58b7bebae5d257f536515677 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Tue, 30 Jan 2024 23:06:00 -0600 Subject: [PATCH] Add comment --- stack_orchestrator/deploy/k8s/cluster_info.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stack_orchestrator/deploy/k8s/cluster_info.py b/stack_orchestrator/deploy/k8s/cluster_info.py index 5c147ad4..f0e7c87b 100644 --- a/stack_orchestrator/deploy/k8s/cluster_info.py +++ b/stack_orchestrator/deploy/k8s/cluster_info.py @@ -168,9 +168,12 @@ class ClusterInfo: if opts.o.debug: print(f"{cfg_map_name} not in pod files") continue + if not cfg_map_path.startswith("/"): cfg_map_path = os.path.join(os.path.dirname(self.spec.file_path), cfg_map_path) + # Read in all the files at a single-level of the directory. This mimics the behavior + # of `kubectl create configmap foo --from-file=/path/to/dir` data = {} for f in os.listdir(cfg_map_path): full_path = os.path.join(cfg_map_path, f)