From 0ea0b4199b89a314add52ebb6e4c5ad833010a1e Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Tue, 23 Aug 2022 12:01:47 +0300 Subject: [PATCH] fix(guac-client): booleans don't work the same with `with` (#3549) * fix(guac-client): booleans don't work the same with `with` * default to false --- charts/stable/guacamole-client/Chart.yaml | 2 +- .../guacamole-client/templates/_configmap.tpl | 36 +++++++++---------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/charts/stable/guacamole-client/Chart.yaml b/charts/stable/guacamole-client/Chart.yaml index ca191a91f09..15dcb66db26 100644 --- a/charts/stable/guacamole-client/Chart.yaml +++ b/charts/stable/guacamole-client/Chart.yaml @@ -26,7 +26,7 @@ sources: - https://hub.docker.com/r/guacamole/guacamole - http://guacamole.incubator.apache.org/doc/gug/introduction.html type: application -version: 4.0.32 +version: 4.0.33 annotations: truecharts.org/catagories: | - utilities diff --git a/charts/stable/guacamole-client/templates/_configmap.tpl b/charts/stable/guacamole-client/templates/_configmap.tpl index 789c3da142f..095e19ad26e 100644 --- a/charts/stable/guacamole-client/templates/_configmap.tpl +++ b/charts/stable/guacamole-client/templates/_configmap.tpl @@ -15,8 +15,8 @@ data: API_SESSION_TIMEOUT: {{ . | quote }} {{- end }} {{/* TOTP */}} - {{- with .Values.totp.TOTP_ENABLED }} - TOTP_ENABLED: {{ . | quote }} + {{- if .Values.totp.TOTP_ENABLED }} + TOTP_ENABLED: {{ .Values.totp.TOTP_ENABLED | quote }} {{- with .Values.totp.TOTP_ISSUER }} TOTP_ISSUER: {{ . | quote }} {{- end }} @@ -31,8 +31,8 @@ data: {{- end }} {{- end }} {{/* HEADER */}} - {{- with .Values.header.HEADER_ENABLED }} - HEADER_ENABLED: {{ . | quote }} + {{- if .Values.header.HEADER_ENABLED }} + HEADER_ENABLED: {{ .Values.header.HEADER_ENABLED | quote }} {{- with .Values.header.HTTP_AUTH_HEADER }} HTTP_AUTH_HEADER: {{ . | quote }} {{- end }} @@ -118,8 +118,8 @@ data: {{- with .Values.radius.RADIUS_CA_PASSWORD }} RADIUS_CA_PASSWORD: {{ . | quote }} {{- end }} - {{- with .Values.radius.RADIUS_TRUST_ALL }} - RADIUS_TRUST_ALL: {{ . | quote }} + {{- if .Values.radius.RADIUS_TRUST_ALL }} + RADIUS_TRUST_ALL: {{ .Values.radius.RADIUS_TRUST_ALL | quote }} {{- end }} {{- with .Values.radius.RADIUS_RETRIES }} RADIUS_RETRIES: {{ . | quote }} @@ -180,8 +180,8 @@ data: {{- with .Values.ldap.LDAP_DEREFERENCE_ALIASES }} LDAP_DEREFERENCE_ALIASES: {{ . | quote }} {{- end }} - {{- with .Values.ldap.LDAP_FOLLOW_REFERRALS }} - LDAP_FOLLOW_REFERRALS: {{ . | quote }} + {{- if .Values.ldap.LDAP_FOLLOW_REFERRALS }} + LDAP_FOLLOW_REFERRALS: {{ .Values.ldap.LDAP_FOLLOW_REFERRALS | quote }} {{- with .Values.ldap.LDAP_MAX_REFERRAL_HOPS }} LDAP_MAX_REFERRAL_HOPS: {{ . | quote }} {{- end }} @@ -204,25 +204,25 @@ data: {{- with .Values.saml.SAML_IDP_URL }} SAML_IDP_URL: {{ . | quote }} {{- end }} - {{- with .Values.saml.SAML_STRICT }} - SAML_STRICT: {{ . | quote }} + {{- if .Values.saml.SAML_STRICT }} + SAML_STRICT: {{ .Values.saml.SAML_STRICT | quote }} {{- end }} - {{- with .Values.saml.SAML_DEBUG }} - SAML_DEBUG: {{ . | quote }} + {{- if .Values.saml.SAML_DEBUG }} + SAML_DEBUG: {{ .Values.saml.SAML_DEBUG | quote }} {{- end }} - {{- with .Values.saml.SAML_COMPRESS_REQUEST }} - SAML_COMPRESS_REQUEST: {{ . | quote }} + {{- if .Values.saml.SAML_COMPRESS_REQUEST }} + SAML_COMPRESS_REQUEST: {{ .Values.saml.SAML_COMPRESS_REQUEST | quote }} {{- end }} - {{- with .Values.saml.SAML_COMPRESS_RESPONSE }} - SAML_COMPRESS_RESPONSE: {{ . | quote }} + {{- if .Values.saml.SAML_COMPRESS_RESPONSE }} + SAML_COMPRESS_RESPONSE: {{ .alues.saml.SAML_COMPRESS_RESPONSE | quote }} {{- end }} {{- with .Values.saml.SAML_GROUP_ATTRIBUTE }} SAML_GROUP_ATTRIBUTE: {{ . | quote }} {{- end }} {{- end }} {{/* PROXY */}} - {{- with .Values.proxy.REMOTE_IP_VALVE_ENABLED }} - REMOTE_IP_VALVE_ENABLED: {{ . | quote }} + {{- if .Values.proxy.REMOTE_IP_VALVE_ENABLED }} + REMOTE_IP_VALVE_ENABLED: {{ .Values.proxy.REMOTE_IP_VALVE_ENABLED | quote }} {{- with .Values.proxy.PROXY_BY_HEADER }} PROXY_BY_HEADER: {{ . | quote }} {{- end }}