Skip to content
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

[loki-distributed] Switch metric list order in HPAs #758

Merged
merged 1 commit into from
Nov 8, 2021

Conversation

naveedyahyazadeh
Copy link
Contributor

What this PR does / why we need it:

Reorders the list in spec.metrics for all components' HPAs in order to circumvent issue kubernetes/kubernetes#74099. Without this change, GitOps style CD tools such as Argo will consider the HPAs permanently out of sync due to the following discrepancy:

image

@naveedyahyazadeh naveedyahyazadeh force-pushed the loki-dist-hpa-order branch 2 times, most recently from cea309c to dc86589 Compare October 26, 2021 15:05
@torstenwalter
Copy link
Collaborator

@naveedyahyazadeh Could you solve the conflicts? The change itself looks good!

Signed-off-by: Naveed Yahyazadeh <naveed.yahyazadeh@appian.com>
@naveedyahyazadeh
Copy link
Contributor Author

@torstenwalter Resolved!

@torstenwalter torstenwalter merged commit 70f5f24 into grafana:main Nov 8, 2021
@naveedyahyazadeh
Copy link
Contributor Author

Thank you very much!

poblahblahblah added a commit to poblahblahblah/sumologic-kubernetes-collection that referenced this pull request Jun 7, 2023
This addresses an issue when using ArgoCD (and maybe other GitOps operators)
where Kubernetes reorders the objects under the spec.metrics key thus causing
Sync issues with ArgoCD.

Originally reported to the ArgoCD project here:
argoproj/argo-cd#1079

Originally reported to the Kubernetes project here:
kubernetes/kubernetes#74099

Other projects and companies have also addressed this by simply reordering
the metrics section:

* kubernetes/ingress-nginx#10043
* nginx/kubernetes-ingress#3773
* grafana/helm-charts#758
* open-telemetry/opentelemetry-helm-charts#103
* Nextdoor/k8s-charts#102

Signed-off-by: Patrick O’Brien <patrick.obrien@thetradedesk.com>
poblahblahblah added a commit to poblahblahblah/sumologic-kubernetes-collection that referenced this pull request Jun 12, 2023
This addresses an issue when using ArgoCD (and maybe other GitOps operators)
where Kubernetes reorders the objects under the spec.metrics key thus causing
Sync issues with ArgoCD.

Originally reported to the ArgoCD project here:
argoproj/argo-cd#1079

Originally reported to the Kubernetes project here:
kubernetes/kubernetes#74099

Other projects and companies have also addressed this by simply reordering
the metrics section:

* kubernetes/ingress-nginx#10043
* nginx/kubernetes-ingress#3773
* grafana/helm-charts#758
* open-telemetry/opentelemetry-helm-charts#103
* Nextdoor/k8s-charts#102

Signed-off-by: Patrick O’Brien <patrick.obrien@thetradedesk.com>
swiatekm pushed a commit to SumoLogic/sumologic-kubernetes-collection that referenced this pull request Jun 13, 2023
* Reordering HPA metrics to match HPA ordering

This addresses an issue when using ArgoCD (and maybe other GitOps operators)
where Kubernetes reorders the objects under the spec.metrics key thus causing
Sync issues with ArgoCD.

Originally reported to the ArgoCD project here:
argoproj/argo-cd#1079

Originally reported to the Kubernetes project here:
kubernetes/kubernetes#74099

Other projects and companies have also addressed this by simply reordering
the metrics section:

* kubernetes/ingress-nginx#10043
* nginx/kubernetes-ingress#3773
* grafana/helm-charts#758
* open-telemetry/opentelemetry-helm-charts#103
* Nextdoor/k8s-charts#102

Signed-off-by: Patrick O’Brien <patrick.obrien@thetradedesk.com>

* add CHANGELOG entry

---------

Signed-off-by: Patrick O’Brien <patrick.obrien@thetradedesk.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants