Skip to content

Commit 85d2eeb

Browse files
committed
Review comments
1 parent 7b7a9ff commit 85d2eeb

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cloud_governance/policy/policy_operations/aws/tag_cluster/tag_cluster_resouces.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ def __get_cluster_tags_by_instance_cluster(self, cluster_name: str):
110110
if any(prefix in tag.get('Key', '') for prefix in self.cluster_prefix):
111111
if cluster_name in tag.get('Key'):
112112
# Propagation-blocked prefixes derived from CLUSTER_PREFIX (e.g. kubernetes.io/, sigs.k8s.io/)
113-
cluster_prefix = environment_variables.environment_variables_dict.get(
114-
'CLUSTER_PREFIX', ['kubernetes.io/cluster', 'sigs.k8s.io/cluster-api-provider-aws/cluster'])
113+
cluster_prefix = environment_variables.environment_variables_dict['CLUSTER_PREFIX']
115114
no_propagate_prefixes = tuple(p.split('/', 1)[0] + '/' for p in cluster_prefix)
116115
i_tags = [instance_tag for instance_tag in item.get('Tags') if
117116
instance_tag.get('Key') != 'Name' and

0 commit comments

Comments
 (0)