thejoeejoee opened a new pull request, #63187: URL: https://github.com/apache/airflow/pull/63187
When `apiServer.hpa.enabled: true`, the Deployment manifest still contains `spec.replicas: 1`. HPA modifies this field at runtime, causing GitOps tooling to continuously detect a diff between the desired state in Git and the live cluster state — a permanent out-of-sync condition. Fix: wrap `spec.replicas` with a `kindIs "invalid"` guard so the field is omitted entirely when `apiServer.replicas` is set to `~` (null), letting HPA be the sole owner of the replica count. closes: # --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Sonnet 4.5 (Sisyphus / OhMyOpenCode) Generated-by: Claude Sonnet 4.5 (Sisyphus / OhMyOpenCode) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
