From dafd1ab94e0b0f094e5fd6b6052d408b016e81ea Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 11 Oct 2024 14:57:02 +0200 Subject: [PATCH] Update dependency kube-vip/helm-charts to v0.6.2 (#181) * Update dependency kube-vip/helm-charts to v0.6.2 * run make all --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: xavier --- CHANGELOG.md | 1 + config/kube-vip/overwrites/Chart.yaml | 2 +- helm/cloud-provider-vsphere/Chart.yaml | 6 +++--- .../templates/deployment.yaml | 4 ++++ .../charts/kube-vip/Chart.yaml | 2 +- .../charts/kube-vip/templates/_helpers.tpl | 17 +++++++++++++++++ .../charts/kube-vip/templates/daemonset.yaml | 2 +- 7 files changed, 28 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 416b8df..3874eed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Add Renovate to track new tags. +- Update `kube-vip` helm chart to `0.6.2`. ## [1.11.0] - 2024-08-12 diff --git a/config/kube-vip/overwrites/Chart.yaml b/config/kube-vip/overwrites/Chart.yaml index d63b620..b5a602c 100644 --- a/config/kube-vip/overwrites/Chart.yaml +++ b/config/kube-vip/overwrites/Chart.yaml @@ -15,7 +15,7 @@ type: application #* This is the upstream chart version which is released as a specific tag in the same repo as `kube-vip-cloud-provider`. #* Renovate below watches releases that match `kube-vip-x.y.z`. # renovate-kube-vip: kube-vip/helm-charts -version: 0.6.1 +version: 0.6.2 #* This is the app's version of the application being deployed. #* It overwrites the value of the upstream chart above which isn't well maintained. diff --git a/helm/cloud-provider-vsphere/Chart.yaml b/helm/cloud-provider-vsphere/Chart.yaml index e6a5de1..c783e1b 100644 --- a/helm/cloud-provider-vsphere/Chart.yaml +++ b/helm/cloud-provider-vsphere/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 -version: 1.11.0 -appVersion: 1.11.0 +version: 1.12.0 +appVersion: 1.12.0 name: cloud-provider-vsphere description: A Helm chart for cloud-provider-vsphere with CPI and CSI engine: gotpl @@ -22,7 +22,7 @@ dependencies: version: 3.3.0 - name: kube-vip # renovate-kube-vip: kube-vip/helm-charts - version: 0.6.1 + version: 0.6.2 condition: kube-vip.enabled - name: kube-vip-cloud-provider # renovate-kube-vip-cloud-provider: kube-vip/helm-charts diff --git a/helm/cloud-provider-vsphere/charts/kube-vip-cloud-provider/templates/deployment.yaml b/helm/cloud-provider-vsphere/charts/kube-vip-cloud-provider/templates/deployment.yaml index a53b7b8..1f08fdc 100644 --- a/helm/cloud-provider-vsphere/charts/kube-vip-cloud-provider/templates/deployment.yaml +++ b/helm/cloud-provider-vsphere/charts/kube-vip-cloud-provider/templates/deployment.yaml @@ -29,3 +29,7 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/helm/cloud-provider-vsphere/charts/kube-vip/Chart.yaml b/helm/cloud-provider-vsphere/charts/kube-vip/Chart.yaml index d63b620..b5a602c 100644 --- a/helm/cloud-provider-vsphere/charts/kube-vip/Chart.yaml +++ b/helm/cloud-provider-vsphere/charts/kube-vip/Chart.yaml @@ -15,7 +15,7 @@ type: application #* This is the upstream chart version which is released as a specific tag in the same repo as `kube-vip-cloud-provider`. #* Renovate below watches releases that match `kube-vip-x.y.z`. # renovate-kube-vip: kube-vip/helm-charts -version: 0.6.1 +version: 0.6.2 #* This is the app's version of the application being deployed. #* It overwrites the value of the upstream chart above which isn't well maintained. diff --git a/helm/cloud-provider-vsphere/charts/kube-vip/templates/_helpers.tpl b/helm/cloud-provider-vsphere/charts/kube-vip/templates/_helpers.tpl index bc58a99..e1d1776 100644 --- a/helm/cloud-provider-vsphere/charts/kube-vip/templates/_helpers.tpl +++ b/helm/cloud-provider-vsphere/charts/kube-vip/templates/_helpers.tpl @@ -61,3 +61,20 @@ Create the name of the service account to use {{- default "default" .Values.serviceAccount.name }} {{- end }} {{- end }} + +{{/* +Convert string to boolean +*/}} +{{- define "kube-vip.toBool" -}} +{{- if eq (lower (toString .)) "true" -}} +{{- true -}} +{{- else if eq (lower (toString .)) "false" -}} +{{- false -}} +{{- else if eq (lower (toString .)) "1" -}} +{{- true -}} +{{- else if eq (lower (toString .)) "0" -}} +{{- false -}} +{{- else -}} +{{- default . false -}} +{{- end -}} +{{- end -}} diff --git a/helm/cloud-provider-vsphere/charts/kube-vip/templates/daemonset.yaml b/helm/cloud-provider-vsphere/charts/kube-vip/templates/daemonset.yaml index 3df4e5d..b7c89a1 100644 --- a/helm/cloud-provider-vsphere/charts/kube-vip/templates/daemonset.yaml +++ b/helm/cloud-provider-vsphere/charts/kube-vip/templates/daemonset.yaml @@ -30,7 +30,7 @@ spec: {{- end }} {{- end }} env: - {{- if eq .Values.env.cp_enable "true" }} + {{- if eq (include "kube-vip.toBool" .Values.env.cp_enable) "true" }} - name: vip_address value: {{ required "A valid config.address required!" .Values.config.address}} {{- end }}