From 1f47931c7c7a9b2100d694e0412c0e8cb956328a Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Mon, 24 May 2021 18:02:00 +0530 Subject: [PATCH] helm: Add complex values example (#108) --- changelogs/fragments/helm_example.yml | 2 ++ plugins/modules/helm.py | 26 ++++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 changelogs/fragments/helm_example.yml diff --git a/changelogs/fragments/helm_example.yml b/changelogs/fragments/helm_example.yml new file mode 100644 index 0000000000..14f9e6a87f --- /dev/null +++ b/changelogs/fragments/helm_example.yml @@ -0,0 +1,2 @@ +minor_changes: +- helm - add example for complex values in ``helm`` module (https://github.com/ansible-collections/kubernetes.core/issues/109). diff --git a/plugins/modules/helm.py b/plugins/modules/helm.py index 708f33c026..8971ebf19c 100644 --- a/plugins/modules/helm.py +++ b/plugins/modules/helm.py @@ -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"""