diff --git a/charts/library/common/Chart.yaml b/charts/library/common/Chart.yaml index 69edd259..1d8e2da7 100644 --- a/charts/library/common/Chart.yaml +++ b/charts/library/common/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: common description: Function library for Helm charts type: library -version: 0.2.0 +version: 0.2.1 kubeVersion: ">=1.16.0-0" keywords: - common @@ -13,6 +13,8 @@ maintainers: email: me@bjw-s.dev annotations: artifacthub.io/changes: |- + - kind: fixed + description: Make sure service.monitor is optional. - kind: removed description: BREAKING - Removed support for the `openvpn` and `wireguard` VPN types. - kind: added diff --git a/charts/library/common/templates/_service.tpl b/charts/library/common/templates/_service.tpl index 4b84b685..2aa929c2 100644 --- a/charts/library/common/templates/_service.tpl +++ b/charts/library/common/templates/_service.tpl @@ -17,7 +17,7 @@ Renders the Service objects required by the chart. {{- include "common.classes.service" $ | nindent 0 -}} {{/* Include a serviceMonitor if required */}} - {{- if $service.monitor.enabled | default false -}} + {{- if ($service.monitor).enabled | default false -}} {{- $_ := set $ "ObjectValues" (dict "serviceMonitor" $serviceValues.monitor) -}} {{- $_ := set $.ObjectValues.serviceMonitor "nameOverride" $serviceValues.nameOverride -}}