Open Joachim-42he opened 2 months ago
If you need t patch some values in already installed chart, you can use:
- name: Get EDA2 installed release info
kubernetes.core.helm_info:
kubeconfig: "{{ kubeconfig }}"
namespace: "monitoring"
name: "kube-prometheus-stack"
register: base_helm_info
- name: Baseline release values
set_fact:
base_values: "{{ base_helm_info['status']['values'] }}"
- name: Set desired diff
set_fact:
desired_diff:
global:
rbac:
createAggregateClusterRoles: true
kubeControllerManager:
enabled: true
- name: "Patch values Prometheus Helm Chart"
kubernetes.core.helm:
release_name: "kube-prometheus-stack"
update_repo_cache: true
chart_ref: "kube-prometheus/kube-prometheus-stack"
chart_version: "{{ k8s_helm_prometheus_version }}"
release_namespace: "monitoring"
create_namespace: true
skip_crds: true
release_state: present
wait: true
release_values: "{{ base_values|conbine(desired_diff, recursive=True)}}"
Thank you for your reply @yurnov but I only wanted to get rid of/understand the recurring warning in Ansible.
I'm unable to reproduce this issue. When I don't have helm-diff installed, I see the warning. When I have helm-diff v3.9.11 installed I don't see the warning. Are you sure you have helm-diff installed on the remote machine?
If you just want to silence warnings, you can use https://docs.ansible.com/ansible/latest/reference_appendices/config.html#action-warnings.
I have previously asked about this in this issue but was directed to open a bug ticket.
SUMMARY
I am running Ansible from a devcontainer environment (Debian 12) against a bare-metal cluster (Ubuntu 22.04, k3s 1.29.7) . Helm (version 3.15.3 and Helm-Diff (version 3.9.6) are installed in the devcontainer environment and on the cluster servers.
Still I get:
whenever I run a task that installs a helm-chart via kubernetes.core.helm.
ISSUE TYPE
COMPONENT NAME
kubernetes.core version 5.0.0
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Ubuntu 22.04
Example Task