added script fo removing ip from block
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user