-
Notifications
You must be signed in to change notification settings - Fork 13.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mapping key "cluster-autoscaler.kubernetes.io/safe-to-evict" already defined #38183
Comments
Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval. |
Update:
|
I wonder if you have a webhook or Flux Kustomization (for ex) that patches your deployments to add the safe to evict label. |
Hi @hussein-awala not yet, I'm researching it now. |
This also happens in a vanilla build of the helm chart using kustomize, so I don't think it's related to @nuvme-devops setup. You can reproduce this by creating the following # kustomization.yml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: airflow
helmCharts:
- name: airflow
releaseName: airflow
version: "1.13.0"
repo: https://airflow.apache.org And trying to build the template using kustomize build --enable-helm . Which gives the following error:
This indicates that the generated templates are invalid due to this duplicate key (which is maybe not checked in other contexts). The workaround @nuvme-devops works here as well, probably by avoiding those labels entirely. |
It has nothing to do with flux. When I template the helm locally the annotations are doubled. Same goes for podAnnotations in each of the components. |
I cannot reproduce it on the main branch, the issue was fixed by #37917 just after releasing 1.13.0. @jedcunningham it's worth a patch release. |
We will release a patch version in the coming days, I am closing the issue as fixed by #37917. I recommend testing the RC version once it is released to make sure the version fixes your issue. |
Official Helm Chart version
1.13.0 (latest released)
Apache Airflow version
2.8
Kubernetes Version
2.8.2
Helm Chart configuration
Docker Image customizations
No response
What happened
I get the error below when deploying Flux with version 1.13.0.
In version 1.11.0 everything works fine, and in version 1.12.0 we get the same error but for "ports"
Without Flux, we have no problems with version 1.13.0, but I noticed something similar in version 1.12.0.
#37356
What you think should happen instead
No response
How to reproduce
Flux helm-controller:v0.37.4
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: