From c92359b5eb39d1428a21de1d9f9a38ffa6e9c41a Mon Sep 17 00:00:00 2001 From: Svetlana Brennan <50715937+svetlanabrennan@users.noreply.github.com> Date: Fri, 29 Sep 2023 09:03:44 -0500 Subject: [PATCH] Fix ksm version (#977) --- .../newrelic/infrastructure/kubernetes.yml | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/recipes/newrelic/infrastructure/kubernetes.yml b/recipes/newrelic/infrastructure/kubernetes.yml index a78236f0a..d134ab8b2 100644 --- a/recipes/newrelic/infrastructure/kubernetes.yml +++ b/recipes/newrelic/infrastructure/kubernetes.yml @@ -528,11 +528,14 @@ install: fi ARGS="${ARGS} --set ksm.enabled=${NR_CLI_KSM}" - if [[ $SERVER_MAJOR_VERSION -eq 1 && $SERVER_MINOR_VERSION -lt 25 ]]; then - ARGS="${ARGS} --set kube-state-metrics.image.tag=v2.6.0" - else - ARGS="${ARGS} --set kube-state-metrics.image.tag=v2.7.0" - fi + # leaving this commented out for the future + # if [[ $SERVER_MAJOR_VERSION -eq 1 && $SERVER_MINOR_VERSION -lt 25 ]]; then + # ARGS="${ARGS} --set kube-state-metrics.image.tag=v2.6.0" + # else + # ARGS="${ARGS} --set kube-state-metrics.image.tag=v2.7.0" + # fi + + ARGS="${ARGS} --set kube-state-metrics.image.tag=v2.10.0" # Prometheus integrations @@ -616,11 +619,13 @@ install: BODY="${BODY},\"global.lowDataMode\":\"${NR_CLI_LOW_DATA_MODE}\"" BODY="${BODY},\"ksm.enabled\":\"${NR_CLI_KSM}\"" - if [[ $SERVER_MAJOR_VERSION -eq 1 && $SERVER_MINOR_VERSION -lt 25 ]]; then - BODY="${BODY},\"kube-state-metrics.image.tag\":\"v2.6.0\"" - else - BODY="${BODY},\"kube-state-metrics.image.tag\":\"v2.7.0\"" - fi + # leaving this commented out for the future + # if [[ $SERVER_MAJOR_VERSION -eq 1 && $SERVER_MINOR_VERSION -lt 25 ]]; then + # BODY="${BODY},\"kube-state-metrics.image.tag\":\"v2.6.0\"" + # else + # BODY="${BODY},\"kube-state-metrics.image.tag\":\"v2.7.0\"" + # fi + BODY="${BODY},\"kube-state-metrics.image.tag\":\"v2.10.0\"" # Prometheus integrations