Skip to content

Commit

Permalink
OPSEXP-2242: re-introduce projection of all env vars beside JAVA & CA…
Browse files Browse the repository at this point in the history
…TALINA OPTS (#126)

Co-authored-by: alxgomz <[email protected]>
  • Loading branch information
alxgomz and alxgomz authored Oct 9, 2023
1 parent 4d0d2cb commit 4dd84c9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/alfresco-repository/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: alfresco-repository
description: Alfresco content repository Helm chart
type: application
version: 0.1.0-alpha.15
version: 0.1.0-alpha.16
appVersion: 23.1.0-A21
dependencies:
- name: alfresco-common
Expand Down
2 changes: 1 addition & 1 deletion charts/alfresco-repository/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# alfresco-repository

![Version: 0.1.0-alpha.15](https://img.shields.io/badge/Version-0.1.0--alpha.15-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.16](https://img.shields.io/badge/Version-0.1.0--alpha.16-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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ metadata:
labels:
{{- include "alfresco-repository.labels" . | nindent 4 }}
data:
{{- range $key, $val := (omit .Values.environment "CATALINA_OPTS" "JAVA_OPTS") }}
{{ $key }}: {{ $val | quote }}
{{- end }}
CATALINA_OPTS: >-
{{- with .Values.configuration }}
-Ddeployment.method=HELM_CHART
Expand Down
4 changes: 4 additions & 0 deletions charts/alfresco-repository/tests/configmap_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ tests:
template: configmap-repository.yaml
set:
environment:
SOMEOTHERVAR: somothervalue
CATALINA_OPTS: >-
-Dserver.allowWrite=false
-Dcatalina.base="/opt/tomcat/alternate"
Expand All @@ -48,6 +49,9 @@ tests:
path: data.JAVA_OPTS
pattern: |-
(^\s*|[^\s]\s+)-Xmx32G($|\s)
- equal:
path: data.SOMEOTHERVAR
value: somothervalue

- it: should render MySQL properties
template: configmap-database.yaml
Expand Down

0 comments on commit 4dd84c9

Please sign in to comment.