Skip to content

Commit

Permalink
some ansible-lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
abikouo committed Nov 10, 2023
1 parent 202725b commit a0b5dcf
Showing 1 changed file with 12 additions and 23 deletions.
35 changes: 12 additions & 23 deletions plugins/modules/helm_registry_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,29 +64,18 @@
"""

EXAMPLES = r"""
- hosts: localhost
tasks:
- block:
# It's good practice to store login credentials in a secure vault and not
# directly in playbooks.
- include_vars: helm_registry_passwords.yml
- name: Login to remote registry
kubernetes.core.helm_registry_auth:
username: admin
password: "{{ helm_admin_password }}"
host: localhost:5000
- name: Download Chart from Registry
kubernetes.core.helm_pull:
chart_ref: mychart
repo_url: oci://localhost:5000/helm-charts
always:
- name: Logout to Remote registry
kubernetes.core.helm_registry_auth:
host: localhost:5000
state: absent
# Login to helm registry
- name: Login to remote registry
kubernetes.core.helm_registry_auth:
username: admin
password: "sample_password"
host: localhost:5000
# Logout from helm registry
- name: Logout to Remote registry
kubernetes.core.helm_registry_auth:
host: localhost:5000
state: absent
"""

RETURN = r"""
Expand Down

0 comments on commit a0b5dcf

Please sign in to comment.