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

helm_registry_auth module to authenticate in OCI registry #800

Merged
merged 43 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
0a3f7c7
new module helm_registry_auth
yurnov Nov 19, 2024
a79ee9d
Initial integration tests
yurnov Nov 20, 2024
88b80dd
final update copyright and integration test before pr
yurnov Nov 29, 2024
b15ea2c
update link to pr in changelog fragment
yurnov Nov 29, 2024
82f00df
reformat plugins/module_utils/helm.py with black
yurnov Nov 29, 2024
187efa0
attempt to fix unit test
yurnov Nov 29, 2024
b1421bc
fix https://pycqa.github.io/isort/ linter
yurnov Nov 29, 2024
8c2d17e
next attemp to fix unit-test
yurnov Nov 29, 2024
68ba05d
remove unused and unsupported helm_args_common
yurnov Nov 29, 2024
65641ba
remove unused imports and fix other linters errors
yurnov Nov 29, 2024
ef29dc9
another fix for unit test
yurnov Nov 29, 2024
bbe2dc5
fix issue introducied by commit ff02893a12a31f9c44b5c48f9a8bf85057295961
yurnov Nov 29, 2024
61c6926
add binary_path to arg_spec
yurnov Nov 29, 2024
a6100bc
return helm_cmd in the output of check mode
yurnov Dec 11, 2024
f2d507a
description suggestion from reviewer/maintainer
yurnov Dec 11, 2024
dedfc3c
description suggestion from reviewer/maintainer
yurnov Dec 11, 2024
2f8857e
description suggestion from reviewer/maintainer
yurnov Dec 11, 2024
7c4372c
description suggestion from reviewer/maintainer
yurnov Dec 11, 2024
17299d9
description suggestion from reviewer/maintainer
yurnov Dec 11, 2024
591d238
description suggestion from reviewer/maintainer
yurnov Dec 11, 2024
22d04bd
description suggestion from reviewer/maintainer
yurnov Dec 11, 2024
11d7054
description suggestion from reviewer/maintainer
yurnov Dec 11, 2024
9ee99e4
remove changed from module return
yurnov Dec 11, 2024
0592294
remove redundant code
yurnov Dec 11, 2024
50e47b5
Update plugins/modules/helm_registry_auth.py
yurnov Dec 11, 2024
8d2ddf2
consider support of logout when user is not logged in
yurnov Dec 11, 2024
f20004d
consider support helm < 3.0.0
yurnov Dec 11, 2024
3791636
Revert "consider support helm < 3.0.0"
yurnov Dec 11, 2024
741bc97
reintroduce support of helm version less than 3.8.0
yurnov Dec 11, 2024
1cf7964
revert reintroducing support of helm < 3.8.0
yurnov Dec 11, 2024
5559863
update documentation with the recent module updates
yurnov Dec 11, 2024
8dc6a3a
Update plugins/modules/helm_registry_auth.py
yurnov Dec 12, 2024
8ac0bc4
add test of logout impendency
yurnov Dec 12, 2024
1e6b8b7
fix linters
yurnov Dec 12, 2024
92ca518
fix intendations in the integration tests
yurnov Dec 12, 2024
ee66a9b
create tests/integration/targets/helm_registry_auth/aliases
yurnov Dec 12, 2024
9350a44
fix integration test (typo)
yurnov Dec 12, 2024
b91c777
fix integration tests (test wrong cred)
yurnov Dec 12, 2024
ced6ffd
add stderr when module fail
yurnov Dec 12, 2024
f13429f
another attempt to fix integration test
yurnov Dec 12, 2024
a80fb34
Merge branch 'main' into helm_login
yurnov Dec 14, 2024
099b57e
Merge remote-tracking branch 'upstream/main' into helm_login
yurnov Dec 17, 2024
5f48d1b
fix assertion in integration test to be not affceted by the #830
yurnov Dec 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ For more information about communication, see the [Ansible communication guide](
## Requirements

<!--start requires_ansible-->
### Ansible version compatibility
## Ansible version compatibility

This collection has been tested against following Ansible versions: **>=2.15.0**.

Expand All @@ -47,35 +47,36 @@ This collection supports Kubernetes versions >= 1.24.
Click on the name of a plugin or module to view that content's documentation:

<!--start collection content-->
#### Connection plugins
### Connection plugins
Name | Description
--- | ---
[kubernetes.core.kubectl](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.kubectl_connection.rst)|Execute tasks in pods running on Kubernetes.

#### K8s filter plugins
### K8s filter plugins
Name | Description
--- | ---
kubernetes.core.k8s_config_resource_name|Generate resource name for the given resource of type ConfigMap, Secret

#### Inventory plugins
### Inventory plugins
Name | Description
--- | ---
[kubernetes.core.k8s](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_inventory.rst)|Kubernetes (K8s) inventory source

#### Lookup plugins
### Lookup plugins
Name | Description
--- | ---
[kubernetes.core.k8s](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_lookup.rst)|Query the K8s API
[kubernetes.core.kustomize](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.kustomize_lookup.rst)|Build a set of kubernetes resources using a 'kustomization.yaml' file.

#### Modules
### Modules
Name | Description
--- | ---
[kubernetes.core.helm](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.helm_module.rst)|Manages Kubernetes packages with the Helm package manager
[kubernetes.core.helm_info](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.helm_info_module.rst)|Get information from Helm package deployed inside the cluster
[kubernetes.core.helm_plugin](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.helm_plugin_module.rst)|Manage Helm plugins
[kubernetes.core.helm_plugin_info](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.helm_plugin_info_module.rst)|Gather information about Helm plugins
[kubernetes.core.helm_pull](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.helm_pull_module.rst)|download a chart from a repository and (optionally) unpack it in local directory.
[kubernetes.core.helm_registry_auth](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.helm_registry_auth_module.rst)|Helm registry authentication module
[kubernetes.core.helm_repository](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.helm_repository_module.rst)|Manage Helm repositories.
[kubernetes.core.helm_template](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.helm_template_module.rst)|Render chart templates
[kubernetes.core.k8s](https://github.com/ansible-collections/kubernetes.core/blob/main/docs/kubernetes.core.k8s_module.rst)|Manage Kubernetes (K8s) objects
Expand Down
3 changes: 3 additions & 0 deletions changelogs/fragments/20241116-helm_registry_auth.yaml
yurnov marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
minor_changes:
- new module helm_registry_auth to support helm registry login and logout operations (https://github.com/ansible-collections/kubernetes.core/pull/800).
Loading
Loading