Skip to content

Commit

Permalink
helm: fix breaking sts change (#9528)
Browse files Browse the repository at this point in the history
**What this PR does / why we need it**:
It fixes the breaking change I introduced by changing sts
podManagementPolicy from Parallel to OrderedReady

**Which issue(s) this PR fixes**:
Fixes #9524

**Special notes for your reviewer**:

**Checklist**
- [x] Reviewed the
[`CONTRIBUTING.md`](https://github.com/grafana/loki/blob/main/CONTRIBUTING.md)
guide (**required**)
- [x] Documentation added
- [ ] Tests updated
- [x] `CHANGELOG.md` updated
- [ ] Changes that require user attention or interaction to upgrade are
documented in `docs/sources/upgrading/_index.md`
- [x] For Helm chart changes bump the Helm chart version in
`production/helm/loki/Chart.yaml` and update
`production/helm/loki/CHANGELOG.md` and
`production/helm/loki/README.md`. [Example
PR](d10549e)

Co-authored-by: Michel Hollands <42814411+MichelHollands@users.noreply.github.com>
  • Loading branch information
oleksii-boiko-ua and MichelHollands committed May 26, 2023
1 parent 9399ed9 commit 65b5df6
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 5 deletions.
27 changes: 27 additions & 0 deletions docs/sources/installation/helm/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,15 @@ null
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
<td>backend.podManagementPolicy</td>
<td>string</td>
<td>The default is to deploy all pods in parallel.</td>
<td><pre lang="json">
"Parallel"
</pre>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -3048,6 +3057,15 @@ null
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
<td>read.podManagementPolicy</td>
<td>string</td>
<td>The default is to deploy all pods in parallel.</td>
<td><pre lang="json">
"Parallel"
</pre>
</td>
</tr>
<tr>
Expand Down Expand Up @@ -4022,6 +4040,15 @@ null
<td><pre lang="json">
{}
</pre>
</td>
</tr>
<tr>
<td>write.podManagementPolicy</td>
<td>string</td>
<td>The default is to deploy all pods in parallel.</td>
<td><pre lang="json">
"Parallel"
</pre>
</td>
</tr>
<tr>
Expand Down
4 changes: 4 additions & 0 deletions production/helm/loki/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Entries should include a reference to the pull request that introduced the chang

[//]: # (<AUTOMATED_UPDATES_LOCATOR> : do not remove this line. This locator is used by the CI pipeline to automatically create a changelog entry for each new Loki release. Add other chart versions and respective changelog entries bellow this line.)

## 5.5.7

- [BUGFIX] Fix breaking helm upgrade by changing sts podManagementPolicy from Parallel to OrderedReady which fails since that field cannot be modified on sts.

## 5.5.6

- [FEATURE] Add hpa templates for read, write and backend.
Expand Down
2 changes: 1 addition & 1 deletion production/helm/loki/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: loki
description: Helm chart for Grafana Loki in simple, scalable mode
type: application
appVersion: 2.8.2
version: 5.5.6
version: 5.5.7
home: https://grafana.github.io/helm-charts
sources:
- https://github.com/grafana/loki
Expand Down
2 changes: 1 addition & 1 deletion production/helm/loki/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# loki

![Version: 5.5.6](https://img.shields.io/badge/Version-5.5.6-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.8.2](https://img.shields.io/badge/AppVersion-2.8.2-informational?style=flat-square)
![Version: 5.5.7](https://img.shields.io/badge/Version-5.5.7-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.8.2](https://img.shields.io/badge/AppVersion-2.8.2-informational?style=flat-square)

Helm chart for Grafana Loki in simple, scalable mode

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
{{- if not .Values.backend.autoscaling.enabled }}
replicas: {{ .Values.backend.replicas }}
{{- end }}
podManagementPolicy: Parallel
podManagementPolicy: {{ .Values.backend.podManagementPolicy }}
updateStrategy:
rollingUpdate:
partition: 0
Expand Down
2 changes: 1 addition & 1 deletion production/helm/loki/templates/read/statefulset-read.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
{{- if not .Values.read.autoscaling.enabled }}
replicas: {{ .Values.read.replicas }}
{{- end }}
podManagementPolicy: Parallel
podManagementPolicy: {{ .Values.read.podManagementPolicy }}
updateStrategy:
rollingUpdate:
partition: 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
{{- if not .Values.write.autoscaling.enabled }}
replicas: {{ .Values.write.replicas }}
{{- end }}
podManagementPolicy: OrderedReady
podManagementPolicy: {{ .Values.write.podManagementPolicy }}
updateStrategy:
rollingUpdate:
partition: 0
Expand Down
6 changes: 6 additions & 0 deletions production/helm/loki/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,8 @@ write:
nodeSelector: {}
# -- Tolerations for write pods
tolerations: []
# -- The default is to deploy all pods in parallel.
podManagementPolicy: "Parallel"
persistence:
# -- Enable StatefulSetAutoDeletePVC feature
enableStatefulSetAutoDeletePVC: false
Expand Down Expand Up @@ -880,6 +882,8 @@ read:
nodeSelector: {}
# -- Tolerations for read pods
tolerations: []
# -- The default is to deploy all pods in parallel.
podManagementPolicy: "Parallel"
persistence:
# -- Enable StatefulSetAutoDeletePVC feature
enableStatefulSetAutoDeletePVC: true
Expand Down Expand Up @@ -972,6 +976,8 @@ backend:
nodeSelector: {}
# -- Tolerations for backend pods
tolerations: []
# -- The default is to deploy all pods in parallel.
podManagementPolicy: "Parallel"
persistence:
# -- Enable StatefulSetAutoDeletePVC feature
enableStatefulSetAutoDeletePVC: true
Expand Down

0 comments on commit 65b5df6

Please sign in to comment.