Skip to content

Commit

Permalink
helm: Add complex values example (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akasurde authored May 24, 2021
1 parent e112417 commit 1f47931
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/helm_example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- helm - add example for complex values in ``helm`` module (https://github.com/ansible-collections/kubernetes.core/issues/109).
26 changes: 26 additions & 0 deletions plugins/modules/helm.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,32 @@
name: test
chart_ref: "https://github.com/grafana/helm-charts/releases/download/grafana-5.6.0/grafana-5.6.0.tgz"
release_namespace: monitoring
# Using complex Values
- name: Deploy new-relic client chart
kubernetes.core.helm:
name: newrelic-bundle
chart_ref: newrelic/nri-bundle
release_namespace: default
force: True
wait: True
replace: True
update_repo_cache: True
disable_hook: True
values:
global:
licenseKey: "{{ nr_license_key }}"
cluster: "{{ site_name }}"
newrelic-infrastructure:
privileged: True
ksm:
enabled: True
prometheus:
enabled: True
kubeEvents:
enabled: True
logging:
enabled: True
'''

RETURN = r"""
Expand Down

0 comments on commit 1f47931

Please sign in to comment.