Skip to content

Commit

Permalink
fix(helm): Fix statefulset templates to not show diffs in ArgoCD
Browse files Browse the repository at this point in the history
  • Loading branch information
sviatlo committed Dec 9, 2024
1 parent 0ddaca8 commit 18a890d
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 13 deletions.
3 changes: 2 additions & 1 deletion production/helm/loki/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Entries should include a reference to the pull request that introduced the chang
- [CHANGE] Changed version of Grafana Loki to 3.3.1
- [CHANGE] Changed version of Minio helm chart to 5.3.0 (#14834)
- [BUGFIX] Add default wal dir to ruler config ([#14920](https://github.com/grafana/loki/pull/14920))
- [FIX] Fix statefulset templates to not show diffs in ArgoCD

## 6.22.0

Expand Down Expand Up @@ -107,7 +108,7 @@ Entries should include a reference to the pull request that introduced the chang
## 6.7.3

- [BUGFIX] Removed Helm test binary

## 6.7.2

- [BUGFIX] Fix imagePullSecrets for statefulset-results-cache
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ spec:
{{- if .Values.bloomGateway.persistence.enabled }}
volumeClaimTemplates:
{{- range .Values.bloomGateway.persistence.claims }}
- metadata:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .name }}
{{- with .annotations }}
annotations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ spec:
{{- if .Values.bloomPlanner.persistence.enabled }}
volumeClaimTemplates:
{{- range .Values.bloomPlanner.persistence.claims }}
- metadata:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .name }}
{{- with .annotations }}
annotations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ spec:
{{- if .Values.compactor.persistence.enabled }}
volumeClaimTemplates:
{{- range .Values.compactor.persistence.claims }}
- metadata:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .name }}
{{- with .annotations }}
annotations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ spec:
{{- end }}
{{- else }}
volumeClaimTemplates:
- metadata:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: data
{{- with .Values.indexGateway.persistence.annotations }}
annotations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ spec:
{{- else }}
volumeClaimTemplates:
{{- range .Values.ingester.persistence.claims }}
- metadata:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .name }}
{{- with .annotations }}
annotations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ spec:
{{- else }}
volumeClaimTemplates:
{{- range .Values.ingester.persistence.claims }}
- metadata:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .name }}
{{- with .annotations }}
annotations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ spec:
{{- else }}
volumeClaimTemplates:
{{- range .Values.ingester.persistence.claims }}
- metadata:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .name }}
{{- with .annotations }}
annotations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,9 @@ spec:
{{- else }}
volumeClaimTemplates:
{{- range .Values.ingester.persistence.claims }}
- metadata:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .name }}
{{- with .annotations }}
annotations:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ spec:
{{- end }}
{{- if .persistence.enabled }}
volumeClaimTemplates:
- metadata:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: data
spec:
accessModes: [ "ReadWriteOnce" ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ spec:
{{- with .Values.patternIngester.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
{{- with .Values.patternIngester.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
Expand Down Expand Up @@ -166,7 +166,9 @@ spec:
{{- if .Values.patternIngester.persistence.enabled }}
volumeClaimTemplates:
{{- range .Values.patternIngester.persistence.claims }}
- metadata:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .name }}
{{- with .annotations }}
annotations:
Expand Down
4 changes: 3 additions & 1 deletion production/helm/loki/templates/ruler/statefulset-ruler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ spec:
emptyDir: {}
{{- else }}
volumeClaimTemplates:
- metadata:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: data
{{- with .Values.ruler.persistence.annotations }}
annotations:
Expand Down

0 comments on commit 18a890d

Please sign in to comment.