Commit a63c0353 authored by Vineeth Guna [Microsoft]'s avatar Vineeth Guna [Microsoft]
Browse files

Disabled autoscaling for airflow workers

parent a47a52b7
Pipeline #33919 passed with stages
in 1 minute and 24 seconds
......@@ -102,7 +102,7 @@ airflow:
aadpodidbinding: "osdu-identity"
enabled: true
enabled: false
## minReplicas is picked from Values.workers.replicas and default value is 1
maxReplicas: 3
......@@ -8,16 +8,11 @@ def addNamespace(namespace, manifest):
manifest['metadata']['namespace'] = namespace
if 'subjects' in manifest:
manifest['subjects'][0]['namespace'] = namespace
def removeReplicasFromWorkerStatefulSet(manifest):
if manifest['kind'] == 'StatefulSet' and manifest['metadata']['name'] == 'airflow-worker':
del manifest['spec']['replicas']
def addingNamespace(namespace):
for manifest in yaml.load_all(sys.stdin, Loader=yaml.FullLoader):
if manifest:
addNamespace(namespace, manifest)
print ('---')
print (yaml.dump(manifest, default_flow_style=False, sort_keys=False))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment