From e045b0778e3802aa517b3dad47192ba501f4970b Mon Sep 17 00:00:00 2001 From: Stavros Foteinopoulos Date: Fri, 20 Sep 2024 11:39:50 +0300 Subject: [PATCH] fix indentation Signed-off-by: Stavros Foteinopoulos --- charts/mattermost-push-proxy/Chart.yaml | 2 +- .../templates/deployment.yaml | 112 +++++++++--------- 2 files changed, 57 insertions(+), 57 deletions(-) diff --git a/charts/mattermost-push-proxy/Chart.yaml b/charts/mattermost-push-proxy/Chart.yaml index fbde08c6..12031cf9 100644 --- a/charts/mattermost-push-proxy/Chart.yaml +++ b/charts/mattermost-push-proxy/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 description: Mattermost Push Proxy server name: mattermost-push-proxy type: application -version: 0.13.0 +version: 0.13.1 appVersion: 6.2.0 keywords: - mattermost diff --git a/charts/mattermost-push-proxy/templates/deployment.yaml b/charts/mattermost-push-proxy/templates/deployment.yaml index aa4b3398..445fff60 100644 --- a/charts/mattermost-push-proxy/templates/deployment.yaml +++ b/charts/mattermost-push-proxy/templates/deployment.yaml @@ -59,7 +59,7 @@ spec: name: "apple-rn-push-cert" subPath: "apple-rn-push-cert.pem" {{- end }} - {{- if .Values.applePushSettings.apple_rnbeta.privateCert }} + {{- if .Values.applePushSettings.apple_rnbeta.privateCert }} - mountPath: "/certs/apple-rnbeta-push-cert.pem" name: "apple-rnbeta-push-cert" subPath: "apple-rnbeta-push-cert.pem" @@ -107,63 +107,63 @@ spec: - key: "push-config.json" path: "push-config.json" {{- if not .Values.externalSecrets.enabled }} - {{- if .Values.applePushSettings.authKey }} - - name: "apple-auth-key" - secret: - secretName: {{ include "mattermost-push-proxy.fullname" . }}-apple-certs - items: - - key: "apple_auth_key" - path: {{ .Values.applePushSettings.authKeyFileName }} - {{- end }} - {{- if .Values.applePushSettings.apple.privateCert }} - - name: "apple-push-cert" - secret: - secretName: {{ include "mattermost-push-proxy.fullname" . }}-apple-certs - items: - - key: "apple_cert" - path: "apple-push-cert.pem" - {{- end }} - {{- if .Values.applePushSettings.apple_rn.privateCert }} - - name: "apple-rn-push-cert" - secret: - secretName: {{ include "mattermost-push-proxy.fullname" . }}-apple-certs - items: - - key: "apple_rn_cert" - path: "apple-rn-push-cert.pem" - {{- end }} - {{- if .Values.applePushSettings.apple_rnbeta.privateCert }} - - name: "apple-rnbeta-push-cert" - secret: - secretName: {{ include "mattermost-push-proxy.fullname" . }}-apple-certs - items: - - key: "apple_rnbeta_cert" - path: "apple-rnbeta-push-cert.pem" - {{- end }} - {{- if .Values.androidPushSettings.android_serviceFile }} - - name: "android-service-file" - secret: - secretName: {{ include "mattermost-push-proxy.fullname" . }}-android-service-files - items: - - key: "android_serviceFile" - path: {{ .Values.androidPushSettings.android_serviceFileName }} - {{- end }} - {{- if .Values.androidPushSettings.android_rn_serviceFile }} - - name: "android-rn-service-file" - secret: - secretName: {{ include "mattermost-push-proxy.fullname" . }}-android-service-files - items: - - key: "android_rn_serviceFile" - path: {{ .Values.androidPushSettings.android_rn_serviceFileName }} - {{- end }} + {{- if .Values.applePushSettings.authKey }} + - name: "apple-auth-key" + secret: + secretName: {{ include "mattermost-push-proxy.fullname" . }}-apple-certs + items: + - key: "apple_auth_key" + path: {{ .Values.applePushSettings.authKeyFileName }} + {{- end }} + {{- if and .Values.applePushSettings.apple.privateCert }} + - name: "apple-push-cert" + secret: + secretName: {{ include "mattermost-push-proxy.fullname" . }}-apple-certs + items: + - key: "apple_cert" + path: "apple-push-cert.pem" + {{- end }} + {{- if and .Values.applePushSettings.apple_rn.privateCert }} + - name: "apple-rn-push-cert" + secret: + secretName: {{ include "mattermost-push-proxy.fullname" . }}-apple-certs + items: + - key: "apple_rn_cert" + path: "apple-rn-push-cert.pem" + {{- end }} + {{- if and .Values.applePushSettings.apple_rnbeta.privateCert }} + - name: "apple-rnbeta-push-cert" + secret: + secretName: {{ include "mattermost-push-proxy.fullname" . }}-apple-certs + items: + - key: "apple_rnbeta_cert" + path: "apple-rnbeta-push-cert.pem" + {{- end }} + {{- if .Values.androidPushSettings.android_serviceFile }} + - name: "android-service-file" + secret: + secretName: {{ include "mattermost-push-proxy.fullname" . }}-android-service-files + items: + - key: "android_serviceFile" + path: {{ .Values.androidPushSettings.android_serviceFileName }} + {{- end }} + {{- if .Values.androidPushSettings.android_rn_serviceFile }} + - name: "android-rn-service-file" + secret: + secretName: {{ include "mattermost-push-proxy.fullname" . }}-android-service-files + items: + - key: "android_rn_serviceFile" + path: {{ .Values.androidPushSettings.android_rn_serviceFileName }} + {{- end }} {{- else }} - name: "common-secret" secret: secretName: {{ include "mattermost-push-proxy.fullname" . }}-secret items: - - key: "apple_auth_key" - path: {{ .Values.applePushSettings.authKeyFileName }} - - key: "android_serviceFile" - path: {{ .Values.androidPushSettings.android.serviceFileName }} - - key: "android_rn_serviceFile" - path: {{ .Values.androidPushSettings.android_rn.serviceFileName }} -{{- end }} + - key: "apple_auth_key" + path: {{ .Values.applePushSettings.authKeyFileName }} + - key: "android_serviceFile" + path: {{ .Values.androidPushSettings.android.serviceFileName }} + - key: "android_rn_serviceFile" + path: {{ .Values.androidPushSettings.android_rn.serviceFileName }} + {{- end }}