From 0140dee6089bb89970c579f806ad0ad2a3151f31 Mon Sep 17 00:00:00 2001 From: Alexandre Chapellon Date: Fri, 15 Sep 2023 19:22:26 +0200 Subject: [PATCH] chmod -x yaml files --- charts/alfresco-search-service/templates/NOTES.txt | 0 charts/alfresco-search-service/templates/_helpers.tpl | 0 charts/alfresco-search-service/templates/config.yaml | 0 charts/alfresco-search-service/templates/deployment.yaml | 0 charts/alfresco-search-service/templates/ingress.yaml | 0 charts/alfresco-search-service/templates/pvc.yaml | 0 charts/alfresco-search-service/templates/secret-ingress.yaml | 0 .../alfresco-search-service/templates/secret-repository.yaml | 4 +++- charts/alfresco-search-service/templates/service.yaml | 0 charts/alfresco-search-service/tests/secrets_test.yaml | 1 + 10 files changed, 4 insertions(+), 1 deletion(-) mode change 100755 => 100644 charts/alfresco-search-service/templates/NOTES.txt mode change 100755 => 100644 charts/alfresco-search-service/templates/_helpers.tpl mode change 100755 => 100644 charts/alfresco-search-service/templates/config.yaml mode change 100755 => 100644 charts/alfresco-search-service/templates/deployment.yaml mode change 100755 => 100644 charts/alfresco-search-service/templates/ingress.yaml mode change 100755 => 100644 charts/alfresco-search-service/templates/pvc.yaml mode change 100755 => 100644 charts/alfresco-search-service/templates/secret-ingress.yaml mode change 100755 => 100644 charts/alfresco-search-service/templates/service.yaml diff --git a/charts/alfresco-search-service/templates/NOTES.txt b/charts/alfresco-search-service/templates/NOTES.txt old mode 100755 new mode 100644 diff --git a/charts/alfresco-search-service/templates/_helpers.tpl b/charts/alfresco-search-service/templates/_helpers.tpl old mode 100755 new mode 100644 diff --git a/charts/alfresco-search-service/templates/config.yaml b/charts/alfresco-search-service/templates/config.yaml old mode 100755 new mode 100644 diff --git a/charts/alfresco-search-service/templates/deployment.yaml b/charts/alfresco-search-service/templates/deployment.yaml old mode 100755 new mode 100644 diff --git a/charts/alfresco-search-service/templates/ingress.yaml b/charts/alfresco-search-service/templates/ingress.yaml old mode 100755 new mode 100644 diff --git a/charts/alfresco-search-service/templates/pvc.yaml b/charts/alfresco-search-service/templates/pvc.yaml old mode 100755 new mode 100644 diff --git a/charts/alfresco-search-service/templates/secret-ingress.yaml b/charts/alfresco-search-service/templates/secret-ingress.yaml old mode 100755 new mode 100644 diff --git a/charts/alfresco-search-service/templates/secret-repository.yaml b/charts/alfresco-search-service/templates/secret-repository.yaml index bcdb2ac8..e175f391 100644 --- a/charts/alfresco-search-service/templates/secret-repository.yaml +++ b/charts/alfresco-search-service/templates/secret-repository.yaml @@ -1,4 +1,5 @@ -{{- if and (not .Values.repository.existingSecret.name) (eq "secret" .Values.repository.securecomms) (not .Values.repository.existingConfigMap.name) }} +{{- if (not .Values.repository.existingSecret.name) }} +{{- if and (eq "secret" .Values.repository.securecomms) (not .Values.repository.existingConfigMap.name) }} apiVersion: v1 kind: Secret metadata: {{- $ctx := dict "Values" (dict "nameOverride" (printf "%s-repository" $.Chart.Name )) "Chart" $.Chart "Release" $.Release }} @@ -11,3 +12,4 @@ data: {{- $shared_secret := required $reqmsg (index .Values.repository "shared-secret") }} SOLR_ALFRESCO_SECURECOMMS_SECRET: {{ $shared_secret | b64enc | quote }} {{- end }} +{{- end }} diff --git a/charts/alfresco-search-service/templates/service.yaml b/charts/alfresco-search-service/templates/service.yaml old mode 100755 new mode 100644 diff --git a/charts/alfresco-search-service/tests/secrets_test.yaml b/charts/alfresco-search-service/tests/secrets_test.yaml index 7134f2b9..baf6fa9d 100644 --- a/charts/alfresco-search-service/tests/secrets_test.yaml +++ b/charts/alfresco-search-service/tests/secrets_test.yaml @@ -57,6 +57,7 @@ tests: values: *testvalues set: repository: + securecomms: secret existingSecret: name: mysecret template: secret-repository.yaml