Skip to content

Skip install of library charts - #874

Merged
cpanato merged 1 commit into
helm:mainfrom
cvas22:feat/237-skip-library-chart-install
Oct 27, 2026
Merged

cpanato merged 1 commit into
helm:mainfrom
cvas22:feat/237-skip-library-chart-install

Conversation

@cvas22

@cvas22 cvas22 commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Fixes #237

ct install / ct lint-and-install fail on charts with type: library because helm cannot install them. As agreed in the issue discussion, the install step is now skipped for these charts with a message, while ct lint still lints them.

  • ChartYaml gains a Type field.
  • InstallChart returns early (before the upgrade test as well) for library charts.
  • Test: TestInstallChart_SkipsLibraryChart (with and without --upgrade) using a library chart under pkg/chart/testdata. It panics without the change because no kubectl is configured in the mock.
  • README notes the behavior.

Library charts (type: library) cannot be installed, so ct install used to
fail on them. Skip the install step with a message, as suggested in the
issue discussion. Linting is unchanged.

Fixes helm#237

Signed-off-by: Srinivas Chippagiri <cvas22@gmail.com>

@cpanato cpanato left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed the library chart handling. The early return skips installation and upgrade testing while preserving linting, consistent with the agreed scope in #237. Verified go test ./... and go vet ./... locally, and confirmed the new regression test fails without the fix. CI is passing.

@cpanato
cpanato merged commit e11f3f1 into helm:main Oct 27, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for library charts

2 participants