Skip to content

Commit

Permalink
make repository secrets optional
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz committed Sep 25, 2023
1 parent 71a3ab7 commit 69bc787
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions charts/alfresco-repository/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
dependencies:
- name: alfresco-common
repository: https://alfresco.github.io/alfresco-helm-charts/
version: 2.1.0
version: 3.0.0-alpha.1
- name: postgresql
repository: oci://registry-1.docker.io/bitnamicharts
version: 12.5.6
digest: sha256:043a1323627d74eed9c3675ebe4c704df37d01011d07fb704fa24f1a81703c1b
generated: "2023-09-07T16:17:44.513368+02:00"
digest: sha256:22d0c45ef4db47622194e37559c7b4be5f45100a9439ac0c2fc7ef35f42261b0
generated: "2023-09-25T16:46:46.082717+02:00"
4 changes: 2 additions & 2 deletions charts/alfresco-repository/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ apiVersion: v2
name: alfresco-repository
description: Alfresco content repository Helm chart
type: application
version: 0.1.0-alpha.8
version: 0.1.0-alpha.9
appVersion: 23.1.0-A21
dependencies:
- name: alfresco-common
version: 2.1.0
version: 3.0.0-alpha.1
repository: https://alfresco.github.io/alfresco-helm-charts/
- name: postgresql
version: 12.5.6
Expand Down
4 changes: 2 additions & 2 deletions charts/alfresco-repository/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# alfresco-repository

![Version: 0.1.0-alpha.8](https://img.shields.io/badge/Version-0.1.0--alpha.8-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 23.1.0-A21](https://img.shields.io/badge/AppVersion-23.1.0--A21-informational?style=flat-square)
![Version: 0.1.0-alpha.9](https://img.shields.io/badge/Version-0.1.0--alpha.9-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 23.1.0-A21](https://img.shields.io/badge/AppVersion-23.1.0--A21-informational?style=flat-square)

Alfresco content repository Helm chart

## Requirements

| Repository | Name | Version |
|------------|------|---------|
| https://alfresco.github.io/alfresco-helm-charts/ | alfresco-common | 2.1.0 |
| https://alfresco.github.io/alfresco-helm-charts/ | alfresco-common | 3.0.0-alpha.1 |
| oci://registry-1.docker.io/bitnamicharts | postgresql | 12.5.6 |

## Configuring Alfresco subsystems
Expand Down
4 changes: 2 additions & 2 deletions charts/alfresco-repository/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ spec:
{{- range .Values.configuration.repository.existingSecrets }}
{{- if eq "acs-license" .purpose }}
{{- $licitems := list (dict "key" .key "path" "license.lic") }}
{{- $licvol := dict "name" "acs-license" "secret" (dict "secretName" .name "defaultMode" 0400 "optional" true "items" $licitems ) }}
{{- $licvol := dict "name" "acs-license" "secret" (dict "secretName" .name "defaultMode" 0400 "optional" true "items" $licitems) }}
{{- list $licvol | toYaml | nindent 8 }}
{{- else if and (hasPrefix "subsystems:" (.purpose | default "")) (eq (splitList ":" (.purpose | default "") | len) 3) }}
{{- $subsysvol := dict "name" .name "secret" (dict "secretName" .name "defaultMode" 0400) }}
{{- $subsysvol := dict "name" .name "secret" (dict "secretName" .name "defaultMode" 0400 "optional" true) }}
{{- list $subsysvol | toYaml | nindent 8 }}
{{- end }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions charts/alfresco-repository/tests/deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ tests:
secret:
secretName: myAzureAD
defaultMode: 0400
optional: true
template: deployment.yaml
- contains:
path: spec.template.spec.containers[0].volumeMounts
Expand Down

0 comments on commit 69bc787

Please sign in to comment.