-
Notifications
You must be signed in to change notification settings - Fork 140
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
helm_registry_auth module to authenticate in OCI registry #800
Conversation
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 2m 55s |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 51s |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 52s |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 55s |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 17s |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 36s |
to fix linters in actions
unit test was missing initially
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 5m 28s |
remove changlog fragment
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 27s |
Co-authored-by: Bikouo Aubin <[email protected]>
Co-authored-by: Bikouo Aubin <[email protected]>
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 57s |
@yurnov, another thing: integration tests are not running because the following file is missing: |
Done |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 50s |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 2m 54s |
Finally, integration test fixed |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 27s |
Goal is to bring c8a33c7 into helm_login
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 25s |
Merged |
@yurnov CI is stable now, could you please rebase your PR and address merge conflicts? Thanks |
this commit bring a fix for the integration text merged witin the PR ansible-collections#830
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 3m 10s |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 2m 54s |
Backport to stable-5: 💚 backport PR created✅ Backport PR branch: Backported as #836 🤖 @patchback |
* new module helm_registry_auth * Initial integration tests * final update copyright and integration test before pr * update link to pr in changelog fragment * reformat plugins/module_utils/helm.py with black to fix linters in actions * attempt to fix unit test unit test was missing initially * fix https://pycqa.github.io/isort/ linter * next attemp to fix unit-test * remove unused and unsupported helm_args_common * remove unused imports and fix other linters errors * another fix for unit test * fix issue introducied by commit ff02893 * add binary_path to arg_spec * return helm_cmd in the output of check mode remove changlog fragment * description suggestion from reviewer/maintainer Co-authored-by: Bikouo Aubin <[email protected]> * description suggestion from reviewer/maintainer Co-authored-by: Bikouo Aubin <[email protected]> * description suggestion from reviewer/maintainer Co-authored-by: Bikouo Aubin <[email protected]> * description suggestion from reviewer/maintainer Co-authored-by: Bikouo Aubin <[email protected]> * description suggestion from reviewer/maintainer Co-authored-by: Bikouo Aubin <[email protected]> * description suggestion from reviewer/maintainer Co-authored-by: Bikouo Aubin <[email protected]> * description suggestion from reviewer/maintainer Co-authored-by: Bikouo Aubin <[email protected]> * description suggestion from reviewer/maintainer Co-authored-by: Bikouo Aubin <[email protected]> * remove changed from module return Co-authored-by: Bikouo Aubin <[email protected]> * remove redundant code Co-authored-by: Bikouo Aubin <[email protected]> * Update plugins/modules/helm_registry_auth.py Co-authored-by: Bikouo Aubin <[email protected]> * consider support of logout when user is not logged in Co-authored-by: Bikouo Aubin <[email protected]> * consider support helm < 3.0.0 * Revert "consider support helm < 3.0.0" This reverts commit f20004d. * reintroduce support of helm version less than 3.8.0 reference: https://helm.sh/docs/topics/registries/#enabling-oci-support-prior-to-v380 * revert reintroducing support of helm < 3.8.0 reason: didn't find a quick way to deal with tests * update documentation with the recent module updates * Update plugins/modules/helm_registry_auth.py Co-authored-by: Bikouo Aubin <[email protected]> * add test of logout impendency Co-authored-by: Bikouo Aubin <[email protected]> * fix linters * fix intendations in the integration tests * create tests/integration/targets/helm_registry_auth/aliases * fix integration test (typo) * fix integration tests (test wrong cred) * add stderr when module fail * another attempt to fix integration test * fix assertion in integration test to be not affceted by the #830 --------- Co-authored-by: Bikouo Aubin <[email protected]> (cherry picked from commit aee8474)
* new module helm_registry_auth * Initial integration tests * final update copyright and integration test before pr * update link to pr in changelog fragment * reformat plugins/module_utils/helm.py with black to fix linters in actions * attempt to fix unit test unit test was missing initially * fix https://pycqa.github.io/isort/ linter * next attemp to fix unit-test * remove unused and unsupported helm_args_common * remove unused imports and fix other linters errors * another fix for unit test * fix issue introducied by commit ff02893 * add binary_path to arg_spec * return helm_cmd in the output of check mode remove changlog fragment * description suggestion from reviewer/maintainer Co-authored-by: Bikouo Aubin <[email protected]> * description suggestion from reviewer/maintainer Co-authored-by: Bikouo Aubin <[email protected]> * description suggestion from reviewer/maintainer Co-authored-by: Bikouo Aubin <[email protected]> * description suggestion from reviewer/maintainer Co-authored-by: Bikouo Aubin <[email protected]> * description suggestion from reviewer/maintainer Co-authored-by: Bikouo Aubin <[email protected]> * description suggestion from reviewer/maintainer Co-authored-by: Bikouo Aubin <[email protected]> * description suggestion from reviewer/maintainer Co-authored-by: Bikouo Aubin <[email protected]> * description suggestion from reviewer/maintainer Co-authored-by: Bikouo Aubin <[email protected]> * remove changed from module return Co-authored-by: Bikouo Aubin <[email protected]> * remove redundant code Co-authored-by: Bikouo Aubin <[email protected]> * Update plugins/modules/helm_registry_auth.py Co-authored-by: Bikouo Aubin <[email protected]> * consider support of logout when user is not logged in Co-authored-by: Bikouo Aubin <[email protected]> * consider support helm < 3.0.0 * Revert "consider support helm < 3.0.0" This reverts commit f20004d. * reintroduce support of helm version less than 3.8.0 reference: https://helm.sh/docs/topics/registries/#enabling-oci-support-prior-to-v380 * revert reintroducing support of helm < 3.8.0 reason: didn't find a quick way to deal with tests * update documentation with the recent module updates * Update plugins/modules/helm_registry_auth.py Co-authored-by: Bikouo Aubin <[email protected]> * add test of logout impendency Co-authored-by: Bikouo Aubin <[email protected]> * fix linters * fix intendations in the integration tests * create tests/integration/targets/helm_registry_auth/aliases * fix integration test (typo) * fix integration tests (test wrong cred) * add stderr when module fail * another attempt to fix integration test * fix assertion in integration test to be not affceted by the #830 --------- Co-authored-by: Bikouo Aubin <[email protected]> (cherry picked from commit aee8474) Co-authored-by: Yuriy Novostavskiy <[email protected]>
SUMMARY
The new module helm_registry_auth module support login and logout to OCI registry (
helm registry login
andhelm registry logout
command)It's addressed issue #578
ISSUE TYPE
COMPONENT NAME
helm_registry_auth
ADDITIONAL INFORMATION
Similar was started as #601 but it wasn't completed for a while. Module in this PR is already used in my lab environment.
PR include a changelog, documentation and integration tests.