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

Fixed the label on worker which is causing issue with airflow worker deployment

parent b88b2fad
Pipeline #36716 passed with stages
in 1 minute and 10 seconds
......@@ -129,8 +129,8 @@ airflow:
type: Utilization
averageUtilization: 60
labels:
# DO NOT DELETE THIS LABEL. SET IT TO FALSE WHEN AUTOSCALING IS DISABLED, SET IT TO TRUE WHEN AUTOSCALING IS ENABLED
autoscalingEnabled: false
# DO NOT DELETE THIS LABEL. SET IT TO "false" WHEN AUTOSCALING IS DISABLED, SET IT TO "true" WHEN AUTOSCALING IS ENABLED
autoscalingEnabled: "false"
resources:
requests:
memory: "512Mi"
......
......@@ -13,7 +13,7 @@ def removeReplicasFromWorkerStatefulSet(manifest):
# This is done to make sure kubernetes does not reset the pod count when autoscaling is enabled
# Check the related issue for more information - https://community.opengroup.org/osdu/platform/deployment-and-operations/infra-azure-provisioning/-/issues/88
if manifest['kind'] == 'StatefulSet' and manifest['metadata']['name'] == 'airflow-worker':
if manifest['metadata']['labels']['autoscalingEnabled']:
if manifest['metadata']['labels']['autoscalingEnabled'] == "true":
del manifest['spec']['replicas']
......
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