added script fo removing ip from block

This commit is contained in:
Ruslan Piatrovich
2024-09-27 14:09:20 +03:00
parent fe38052ac0
commit 351cdd9292
+3 -3
View File
@@ -36,7 +36,7 @@ def add_label_if_needed(node_group):
"loadbalancer", "deckhouse", "router", "moon-", "sentry",
"odfe-", "obs-grafana", "devops-core-argocd", "victoria-",
"clickhouse", "redis", "rabbit", "loki","cassandra", "jaeger", "vm-",
"memcached", "kafka"
"memcached", "kafka", "argocd", "keycloak", "ghe"
]
name = node_group['metadata']['name']
@@ -175,8 +175,8 @@ def update_cluster_file(cluster_file, new_tolerations):
def process_directory(directory):
for root, _, files in os.walk(directory, topdown=True):
if "stage" not in root: # comment if you don't want to restrict "stage" only
continue
# if "stage" not in root: # comment if you don't want to restrict "stage" only
# continue
for file in files:
if file == 'node_groups.yaml':
full_path = os.path.join(root, file)