Skip to content

Commit

Permalink
helm: fix broken topology spread constraints in metamonitoring's Graf…
Browse files Browse the repository at this point in the history
…anaAgent (#9669)

* helm: fix indentation in metamonitoring's topologySpreadConstraints

Signed-off-by: Vladimir Varankin <[email protected]>

* rebuild assets

Signed-off-by: Vladimir Varankin <[email protected]>

* update CHANGELOG

Signed-off-by: Vladimir Varankin <[email protected]>

---------

Signed-off-by: Vladimir Varankin <[email protected]>
  • Loading branch information
narqo authored Oct 18, 2024
1 parent 303d44c commit 0d3f52f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions operations/helm/charts/mimir-distributed/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Entries should include a reference to the Pull Request that introduced the chang
## main / unreleased

* [ENHANCEMENT] Add support for setting type and internal traffic policy for Kubernetes service. Set `internalTrafficPolicy=Cluster` by default in all services with type `ClusterIP`. #9619
* [BUGFIX] Fix incorrect use of topology spread constraints in `GrafanaAgent` CRD of metamonitoring. #9669

## 5.5.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ spec:
tolerations:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- include "mimir.lib.topologySpreadConstraints" (dict "ctx" $ "component" "meta-monitoring") | nindent 6 }}
{{- include "mimir.lib.topologySpreadConstraints" (dict "ctx" $ "component" "meta-monitoring") | nindent 2 }}
logs:
instanceSelector:
matchLabels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ spec:
# The container specs here are merged with the ones in the operator using a strategic merge patch.
- name: config-reloader
- name: grafana-agent
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app.kubernetes.io/name: mimir
app.kubernetes.io/instance: metamonitoring-values
app.kubernetes.io/component: meta-monitoring
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
app.kubernetes.io/name: mimir
app.kubernetes.io/instance: metamonitoring-values
app.kubernetes.io/component: meta-monitoring
logs:
instanceSelector:
matchLabels:
Expand Down

0 comments on commit 0d3f52f

Please sign in to comment.