-
Notifications
You must be signed in to change notification settings - Fork 155
Add helm insecure skip tls verify #901
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
Add helm insecure skip tls verify #901
Conversation
…n helm_repository.py
…n helm_template.py
…n helm_template.py
# Conflicts: # plugins/modules/helm.py # plugins/modules/helm_pull.py # plugins/modules/helm_repository.py # plugins/modules/helm_template.py
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 23s |
@yurnov thanks for checking in. Bumped the |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 5m 05s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@noahlehmann, thanks for your contribution to this collection.
It would be nice to add unit or integration tests related to this new feature.
Hi @noahlehmann, Do you need support with fixing CI issues (most of them will be fixed by the rebase and the remaining pat is basically linters) and test? |
…y' into add-helm-insecure-skip-tls-verify
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 11s |
@yurnov Thanks, but got the linting jobs fixed. @abikouo The only reasonable test I can think of in the setup is unit testing the helm command to check whether the flag I also only see unit tests for complex tasks in the modules Maybe you could guide me on what you had in mind? |
I suggest adding an additional integration test in the same way as here So, in your case, it will be something like:
|
@yurnov understood, thanks. I intentionally left out the mutual exclusion of the |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 13s |
I added |
…kip-tls-verify # Conflicts: # plugins/modules/helm.py # tests/integration/targets/helm/defaults/main.yml
Updated the changes, last merge to main had conflicts with this PR. |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 13s |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 21s |
…t if the CRD is installed prior running the test
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 06s |
Build succeeded (gate pipeline). ✔️ ansible-galaxy-importer SUCCESS in 5m 46s |
914a16e
into
ansible-collections:main
Backport to stable-5: 💚 backport PR created✅ Backport PR branch: Backported as #925 🤖 @patchback |
SUMMARY Added the option insecure_skip_tls_verify to the following helm modules: helm_repository helm Unified the option with alias in helm_pull For helm, added the option to the helm diff call, as it got fixed upstream. Upstream Issue: databus23/helm-diff#503 Fixed with: helm/helm#12856 Fixes #694 ISSUE TYPE Bugfix Pull Request COMPONENT NAME kubernetes.core.helm kubernetes.core.helm_repository kubernetes.core.helm_pull ADDITIONAL INFORMATION Basically the option was added in the parameters set in the ansible job, in the docs and then injected in the helm and helm diff binary calls if set. Defaults to False. Example --- - name: Test helm modules tasks: - name: Test helm repository insecure kubernetes.core.helm_repository: name: insecure repo_url: "<helm-repo-with-self-signed-tls>" state: present insecure_skip_tls_verify: true - name: Test helm pull insecure kubernetes.core.helm_pull: chart_ref: "oci://<helm-repo-with-self-signed-tls>/ptroject" destination: /tmp insecure_skip_tls_verify: true - name: Test helm insecure kubernetes.core.helm: name: insecure chart_ref: "oci://<helm-repo-with-self-signed-tls>/project" namespace: helm-insecure-test state: present insecure_skip_tls_verify: true Note Might need an alias for telm_template, as the option is called insecure_registry, in the manual and docs of helm it would be --insecure-skip-tls-verify as well though. Not included, as it was recently merged with #805 Reviewed-by: Yuriy Novostavskiy Reviewed-by: Noah Lehmann Reviewed-by: Bikouo Aubin Reviewed-by: Bianca Henderson <[email protected]> Reviewed-by: Mike Graves <[email protected]> (cherry picked from commit 914a16e)
This is a backport of PR #901 as merged into main (914a16e). SUMMARY Added the option insecure_skip_tls_verify to the following helm modules: helm_repository helm Unified the option with alias in helm_pull For helm, added the option to the helm diff call, as it got fixed upstream. Upstream Issue: databus23/helm-diff#503 Fixed with: helm/helm#12856 Fixes #694 ISSUE TYPE Bugfix Pull Request COMPONENT NAME kubernetes.core.helm kubernetes.core.helm_repository kubernetes.core.helm_pull ADDITIONAL INFORMATION Basically the option was added in the parameters set in the ansible job, in the docs and then injected in the helm and helm diff binary calls if set. Defaults to False. Example --- - name: Test helm modules tasks: - name: Test helm repository insecure kubernetes.core.helm_repository: name: insecure repo_url: "<helm-repo-with-self-signed-tls>" state: present insecure_skip_tls_verify: true - name: Test helm pull insecure kubernetes.core.helm_pull: chart_ref: "oci://<helm-repo-with-self-signed-tls>/ptroject" destination: /tmp insecure_skip_tls_verify: true - name: Test helm insecure kubernetes.core.helm: name: insecure chart_ref: "oci://<helm-repo-with-self-signed-tls>/project" namespace: helm-insecure-test state: present insecure_skip_tls_verify: true Note Might need an alias for telm_template, as the option is called insecure_registry, in the manual and docs of helm it would be --insecure-skip-tls-verify as well though. Not included, as it was recently merged with #805 Reviewed-by: Bianca Henderson <[email protected]> Reviewed-by: Mike Graves <[email protected]>
SUMMARY
Added the option
insecure_skip_tls_verify
to the following helm modules:helm_repository
helm
helm_pull
For
helm
, added the option to thehelm diff
call, as it got fixed upstream.Upstream Issue: databus23/helm-diff#503
Fixed with: helm/helm#12856
Fixes #694
ISSUE TYPE
COMPONENT NAME
kubernetes.core.helm
kubernetes.core.helm_repository
kubernetes.core.helm_pull
ADDITIONAL INFORMATION
Basically the option was added in the parameters set in the ansible job, in the docs and then injected in the
helm
andhelm diff
binary calls if set. Defaults toFalse
.Example
Note
Might need an alias for
telm_template
, as the option is calledinsecure_registry
, in the manual and docs of helm it would be--insecure-skip-tls-verify
as well though.Not included, as it was recently merged with #805