Skip to content

feat(helm): Make access modes for persistence on all PVCs and StatefulSets editable - #13474

Merged
Jayclifford345 merged 12 commits into
grafana:mainfrom
petarnikolovski:petar.nikolovski/enable-editing-write-access-mode-in-the-helm-chart
Aug 27, 2025
Merged

feat(helm): Make access modes for persistence on all PVCs and StatefulSets editable#13474
Jayclifford345 merged 12 commits into
grafana:mainfrom
petarnikolovski:petar.nikolovski/enable-editing-write-access-mode-in-the-helm-chart

Conversation

@petarnikolovski

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

In case of self-hosted Kubernetes infrastructure there may be problems with RWO and StatefulSet. In our case, we need to have RWX so we can avoid multi-attach volume issues when node goes down. This PR introduces access mode in a backward compatible manner, leaving the option editable for chart users.

Which issue(s) this PR fixes:
N/A

Special notes for your reviewer:
N/A

Checklist

  • Reviewed the CONTRIBUTING.md guide (required)
  • Documentation added
  • Tests updated
  • Title matches the required conventional commits format, see here
    • Note that Promtail is considered to be feature complete, and future development for logs collection will be in Grafana Alloy. As such, feat PRs are unlikely to be accepted unless a case can be made for the feature actually being a bug fix to existing behavior.
  • Changes that require user attention or interaction to upgrade are documented in docs/sources/setup/upgrade/_index.md
  • 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
  • If the change is deprecating or removing a configuration option, update the deprecated-config.yaml and deleted-config.yaml files respectively in the tools/deprecated-config-checker directory. Example PR
@petarnikolovski
petarnikolovski requested a review from a team as a code owner July 10, 2024 15:06
@CLAassistant

CLAassistant commented Jul 10, 2024

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@hervenicol

Copy link
Copy Markdown
Contributor

[disclaimer: I'm not a maintainer, just having a quick look out of curiosity]

The code looks good to me.

But you should re-generate the doc (make helm-docs IIRC) so it shows your new value. This should be caught by CI when it runs.

@petarnikolovski

Copy link
Copy Markdown
Contributor Author

@hervenicol Thank you! Will do ☺️

@jkroepke

Copy link
Copy Markdown
Contributor

Hi, thanks for your PR. could you add this on all PVCs and Statefulsets?

…-mode-in-the-helm-chart

# Conflicts:
#	production/helm/loki/Chart.yaml
#	production/helm/loki/README.md
@pull-request-size pull-request-size Bot added size/L and removed size/S labels Jul 20, 2025
@petarnikolovski

Copy link
Copy Markdown
Contributor Author

@jkroepke Hi, I have added access mode option to all StatefulSets.

@jkroepke jkroepke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your PR, please also revert any non helm related changes, like in go.mod .

And use feat(helm) as PR title prefix

Comment thread production/helm/loki/Chart.yaml Outdated
Comment thread production/helm/loki/README.md Outdated
Comment thread production/helm/loki/CHANGELOG.md Outdated
@petarnikolovski petarnikolovski changed the title enhancement(helm): Make persistence access modes on writes editable Jul 20, 2025
@petarnikolovski petarnikolovski changed the title feat(helm): Make persistence access modes on writes editable Jul 20, 2025
@petarnikolovski

Copy link
Copy Markdown
Contributor Author

@jkroepke All issues are resolved. ☺️

@jkroepke jkroepke left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JStickler

Copy link
Copy Markdown
Contributor

@petarnikolovski could you take a look at the merge conflicts and get them resolved?

@Jayclifford345

Copy link
Copy Markdown
Contributor

Hi @petarnikolovski, my apolgies would you mind merging with main. This should clear up the workflow errors and we can look to get this merged

@petarnikolovski

Copy link
Copy Markdown
Contributor Author

@Jayclifford345 @JStickler I've updated the branch to most recent version.

@Jayclifford345
Jayclifford345 merged commit 0b449ab into grafana:main Aug 27, 2025
81 checks passed
@Jayclifford345

Copy link
Copy Markdown
Contributor

Will annotate changelog with breaking change due to #19065

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment