Skip to content

Commit

Permalink
Check that the cluster has tags before adding flag to the config gene…
Browse files Browse the repository at this point in the history
…rator (#78)
  • Loading branch information
vrutz authored Sep 18, 2024
1 parent e75cb41 commit bbcd88e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python-clusters/create-eks-cluster/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ def start(self):
args = args + ["-v", "3"] # not -v 4 otherwise there is a debug line in the beginning of the output
args = args + ["--name", self.cluster_id]
args = args + get_region_arg(connection_info)
args = args + ["--tags", ",".join(["%s=%s" % (tag_key, tag_value) for tag_key, tag_value in self.config.get("clusterTags", {}).items()])]
args = args + ["--full-ecr-access"]

if self.config.get("clusterTags", {}):
args = args + ["--tags", ",".join(["%s=%s" % (tag_key, tag_value) for tag_key, tag_value in self.config.get("clusterTags", {}).items()])]

subnets = list(map(lambda subnet_id: subnet_id.strip(), networking_settings.get("subnets", [])))
if networking_settings.get("privateNetworking", False):
Expand Down

0 comments on commit bbcd88e

Please sign in to comment.