fix: render extraVolumes without extraVolumeMounts#334
Open
immanuwell wants to merge 1 commit into
Open
Conversation
Signed-off-by: immanuwell <pchpr.00@list.ru>
72a3301 to
c07f1f1
Compare
tumido
requested changes
Jun 2, 2026
| {{- end }} | ||
| volumes: | ||
| {{- if (or .Values.backstage.extraAppConfig (and .Values.backstage.extraVolumeMounts .Values.backstage.extraVolumes)) }} | ||
| {{- if (or .Values.backstage.extraAppConfig .Values.backstage.appConfig .Values.backstage.extraVolumes) }} |
Member
There was a problem hiding this comment.
Hi @immanuwell , thanks for the PR! 🙂
Can you please tell me why this should now depend on .Values.backstage.appConfig ? I think that's a mistake.
It already has a separate mount point below:
charts/charts/backstage/templates/backstage-deployment.yaml
Lines 82 to 86 in a33ab0e
|
This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If the PR was closed and you want it re-opened, let us know and we'll re-open the PR so that you can continue the contribution! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of the change
backstage.extraVolumesonly rendered whenbackstage.extraVolumeMountswas also set on the main Backstage container.That breaks sidecar or initContainer setups that mount the extra volume without mounting it in the main container.
This change renders
extraVolumeson its own and adds a CI values case for a sharedemptyDirvolume.Existing or Associated Issue(s)
Didnt find a matching issue or PR in
backstage/charts.Additional Information
Repro:
Run
helm template test charts/backstage -f values.yaml.Before this change, the sidecar mount renders but
spec.volumesmissesshared-cache.After this change, the volume renders too.
Checklist
Chart.yamlaccording to semver.values.yamland added to the README.md. No value docs changed in this PR.ct lintcommand.ctis not installed locally. I ranhelm lintandhelm templatefor the default chart,ci/appConfig-values.yaml,ci/extraVolumes-values.yaml, and the new sidecar repro.