Skip to content

fix(common): pod will now emit volume at correct indentation - #470

Merged
bosbaber merged 2 commits into
mainfrom
stephan/20260901-common-fix
Sep 1, 2026
Merged

bosbaber merged 2 commits into
mainfrom
stephan/20260901-common-fix

Conversation

@bosbaber

@bosbaber bosbaber commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI lite review requested due to automatic review settings September 1, 2026 10:58
@bosbaber
bosbaber requested a review from a team as a code owner September 1, 2026 10:58

Copilot AI 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.

Pull request overview

Fixes the shared common Helm library so pod volumes render at the correct YAML indentation (under the pod spec), and adds unit tests in the common-unittests chart to prevent regressions.

Changes:

  • Adjust charts/common/templates/_pod.tpl so volumes: is emitted under spec: at the correct indentation.
  • Add a new helm-unittest suite validating both user-provided volumes and secretProvider-generated CSI volumes render under spec.template.spec.volumes.

Reviewed changes

Copilot reviewed 1 out of 3 changed files in this pull request and generated 1 comment.

File Description
charts/common/templates/_pod.tpl Fixes volumes: indentation so volumes are nested under the pod spec.
charts/tests/common-unittests/tests/volumes_test.yaml Adds unit tests to validate pod volumes and secretProvider CSI volumes render in the correct manifest location.
Suppressed comments (1)

charts/tests/common-unittests/tests/volumes_test.yaml:35

  • This test verifies the CSI volume is rendered under spec.template.spec.volumes, but it doesn’t assert the incorrect sibling path is absent. Adding notExists: path: spec.template.volumes strengthens the test to catch the original indentation regression if it reappears.
    asserts:
      - equal:
          path: spec.template.spec.volumes[0].name
          value: my-secret-provider-class
      - equal:

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@bosbaber
bosbaber merged commit 58ce0ce into main Sep 1, 2026
9 checks passed
@bosbaber
bosbaber deleted the stephan/20260901-common-fix branch September 1, 2026 11:10
github-actions Bot added a commit that referenced this pull request Sep 1, 2026
Automated chart versioning after merge of PR #470.
This PR updates Chart.yaml versions, packages updated charts into
docs/interledger,
and regenerates the Helm index.

Co-authored-by: bosbaber <1615407+bosbaber@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants