Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Enable full set of checks for charts not in a parent directory #125

Closed
jlegrone opened this issue Mar 5, 2019 · 6 comments
Closed
Labels
Milestone

Comments

@jlegrone
Copy link
Member

jlegrone commented Mar 5, 2019

The Problem

Right now the --charts flag disables chart version validation and change detection. From the usage text:

Specific charts to test. Disables changed charts detection and
version increment checking. May be specified multiple times
or separate values with commas

This flag is also currently the only way to test charts that are not part of a chart "parent directory", which is a known use case (see #101 or goharbor/harbor-helm).

Proposal

  1. Add a new flag for testing specific charts that does include change detection

or

  1. Make a breaking change to not disable change detection when --charts is used, but support
    the old behavior with --charts ./somechart --all.

Also remove the default value for --chart-dirs, since there doesn't seem to be a great way to override string slice args to be empty (see #104 (comment)).

@jlegrone
Copy link
Member Author

jlegrone commented Mar 8, 2019

I'm thinking this might also make it easier to support using ct as a helm plugin at some point.

@lsowen
Copy link

lsowen commented Mar 11, 2019

@jlegrone I was just dealing with this. Do you know this historical reasons behind why change detection is disabled when using --charts?

@jlegrone
Copy link
Member Author

@lsowen I'm not 100% on this but I think the use case was for singling out specific charts for testing in the large community charts repo. That can still be accomplished after this proposed change by configuring ct to not discover charts from parent directories, eg: --charts stable/redis for a specific chart, or --chart-dirs stable,incubator for all charts.

@unguiculus
Copy link
Member

unguiculus commented Mar 15, 2019

@jlegrone Not sure what you mean with old behavior with --charts ./somechart --all.

It doesn't make sense to use these flags together. --charts tests specific charts while --all tests all charts. In these cases, no Git logic is involved, i. e. there is not change detection. These flags are meant to test charts unconditionally. Thus, there can be no version bump checking. It seems this is not clear.

Copy link

github-actions bot commented Dec 6, 2023

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Dec 6, 2023
Copy link

This issue was closed because it has been stalled for 5 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants