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

lint-and-install complains when using --helm-lint-extra-args #629

Closed
ctron opened this issue Feb 14, 2024 · 8 comments
Closed

lint-and-install complains when using --helm-lint-extra-args #629

ctron opened this issue Feb 14, 2024 · 8 comments
Labels

Comments

@ctron
Copy link

ctron commented Feb 14, 2024

Is this a request for help?:


Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT

Version of Helm and Kubernetes: not relevant

What happened:

ct lint-and-install --help shows an argument named --helm-lint-extra-args:

      --helm-lint-extra-args string          Additional arguments for Helm lint subcommand. Must be passed as a single quoted string
                                             (e.g. '--quiet')

Making use of that argument make the application fail:

Run ct lint-and-install --helm-lint-extra-args "--values values-minikube.yaml --set-string appDomain=$APP_DOMAIN" --namespace $NAMESPACE --charts deploy/k8s/charts/trustification --target-branch main
Error: unknown flag: --helm-lint-extra-args
unknown flag: --helm-lint-extra-args
Error: Process completed with exit code 1.

What you expected to happen:

I would expect that all arguments listed by --help do work.

How to reproduce it (as minimally and precisely as possible):

See above

Anything else we need to know:

No.

@cpanato
Copy link
Member

cpanato commented Feb 14, 2024

thanks for the issue, one quick question, what is the version of the ct that you are using?

@cpanato cpanato added the bug label Feb 14, 2024
@ctron
Copy link
Author

ctron commented Feb 14, 2024

Version:         v3.10.1
Git commit:      c35d32b568ba7901e00d3386a231ae2b6e1c2efc
Date:            2023-11-03T12:16:46Z
License:         Apache 2.0

@cpanato
Copy link
Member

cpanato commented Feb 14, 2024

@ctron thanks
ok, i will take a look

edit: i realize that is ok, checking

@cpanato
Copy link
Member

cpanato commented Feb 14, 2024

testing

$ ct version
Version:         3.10.1
Git commit:      c35d32b568ba7901e00d3386a231ae2b6e1c2efc
Date:            2023-11-02
License:         Apache 2.0

ct lint only

$ ct lint --helm-lint-extra-args "--set-string appDomain=tests" --charts test_charts/mutating-deployment-selector/ --target-branch main --validate-maintainers=false
Linting charts...
Version increment checking disabled.

------------------------------------------------------------------------------------------------------------------------
 Charts to be processed:
------------------------------------------------------------------------------------------------------------------------
 nginx => (version: "0.1.0", path: "test_charts/mutating-deployment-selector/")
------------------------------------------------------------------------------------------------------------------------

Linting chart "nginx => (version: \"0.1.0\", path: \"test_charts/mutating-deployment-selector/\")"
Validating /Users/cpanato/code/src/github.com/helm/chart-testing/pkg/chart/test_charts/mutating-deployment-selector/Chart.yaml...
Validation success! 👍
==> Linting test_charts/mutating-deployment-selector/
[INFO] Chart.yaml: icon is recommended

1 chart(s) linted, 0 chart(s) failed

------------------------------------------------------------------------------------------------------------------------
 ✔︎ nginx => (version: "0.1.0", path: "test_charts/mutating-deployment-selector/")
------------------------------------------------------------------------------------------------------------------------
All charts linted successfully

lint-and-install

$ ct lint-and-install --helm-lint-extra-args "--set-string appDomain=tests" --namespace default --charts test_charts/mutating-deployment-selector/ --target-branch main --validate-maintainers=false
Linting and installing charts...
Version increment checking disabled.

------------------------------------------------------------------------------------------------------------------------
 Charts to be processed:
------------------------------------------------------------------------------------------------------------------------
 nginx => (version: "0.1.0", path: "test_charts/mutating-deployment-selector/")
------------------------------------------------------------------------------------------------------------------------

Linting chart "nginx => (version: \"0.1.0\", path: \"test_charts/mutating-deployment-selector/\")"
Validating /Users/cpanato/code/src/github.com/helm/chart-testing/pkg/chart/test_charts/mutating-deployment-selector/Chart.yaml...
Validation success! 👍
==> Linting test_charts/mutating-deployment-selector/
[INFO] Chart.yaml: icon is recommended

1 chart(s) linted, 0 chart(s) failed
Installing chart "nginx => (version: \"0.1.0\", path: \"test_charts/mutating-deployment-selector/\")"...
NAME: mutating-deployment-selector-oct5grhyxt
LAST DEPLOYED: Wed Feb 14 15:04:56 2024
NAMESPACE: default
STATUS: deployed
REVISION: 1
deployment "mutating-deployment-selector-oct5grhyxt-nginx" successfully rolled out
NAME: mutating-deployment-selector-oct5grhyxt
LAST DEPLOYED: Wed Feb 14 15:04:56 2024
NAMESPACE: default
STATUS: deployed
REVISION: 1
TEST SUITE:     mutating-deployment-selector-oct5grhyxt-nginx-test-connection
Last Started:   Wed Feb 14 15:05:02 2024
Last Completed: Wed Feb 14 15:05:07 2024
Phase:          Succeeded
....

i was not able to reproduce the issue, maybe if this repo that you are trying is public then i can check that as well

@ctron
Copy link
Author

ctron commented Feb 14, 2024

The repo is public, not sure if it's easy to reproduce though: trustification/trustification#1089 … let met do some checks.

@ctron
Copy link
Author

ctron commented Feb 14, 2024

Hm ok … the chart-testing action seems to pull in a different version. Close, but different:

Version:	 v3.10.0
Git commit:	 0cb17e5aa89e2d6cf49cb4e7f09b602af58adfbb
Date:		 2023-10-31T14:27:21Z
License:	 Apache 2.0

@ctron
Copy link
Author

ctron commented Feb 14, 2024

Sorry for the noise, that's most likely it. As it's listed as a change for 3.10.1: #605

@cpanato
Copy link
Member

cpanato commented Feb 14, 2024

not a problem, will close this

@cpanato cpanato closed this as completed Feb 14, 2024
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

2 participants