diff --git a/charts/alfresco-adf-app/Chart.yaml b/charts/alfresco-adf-app/Chart.yaml index 0359bfc2..5d04202c 100644 --- a/charts/alfresco-adf-app/Chart.yaml +++ b/charts/alfresco-adf-app/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: alfresco-adf-app description: A generic Alfresco Development Framework Helm chart for Kubernetes type: application -version: 0.2.0-alpha.0 +version: 0.2.0-alpha.1 dependencies: - name: alfresco-common version: 3.1.3 diff --git a/charts/alfresco-adf-app/README.md b/charts/alfresco-adf-app/README.md index 9b18bc40..a5005e61 100644 --- a/charts/alfresco-adf-app/README.md +++ b/charts/alfresco-adf-app/README.md @@ -5,7 +5,7 @@ parent: Charts Reference # alfresco-adf-app -![Version: 0.2.0-alpha.0](https://img.shields.io/badge/Version-0.2.0--alpha.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) +![Version: 0.2.0-alpha.1](https://img.shields.io/badge/Version-0.2.0--alpha.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) A generic Alfresco Development Framework Helm chart for Kubernetes @@ -22,6 +22,7 @@ Checkout [alfresco-content-services chart's doc](https://github.com/Alfresco/acs | Key | Type | Default | Description | |-----|------|---------|-------------| | affinity | object | `{}` | | +| configMap | object | `{}` | Additional configMap which converts yaml to json. This is useful for creating a app.config.json file for nginx apps. Which then can be mounted as a volume. | | env | object | `{}` | | | fullnameOverride | string | `""` | | | global.alfrescoRegistryPullSecrets | string | `"quay-registry-secret"` | If a private image registry a secret can be defined and passed to kubernetes, see: https://github.com/Alfresco/acs-deployment/blob/a924ad6670911f64f1bba680682d266dd4ea27fb/docs/helm/eks-deployment.md#docker-registry-secret | diff --git a/charts/alfresco-adf-app/templates/configmap.yaml b/charts/alfresco-adf-app/templates/configmap.yaml new file mode 100644 index 00000000..facf1738 --- /dev/null +++ b/charts/alfresco-adf-app/templates/configmap.yaml @@ -0,0 +1,11 @@ +{{- if .Values.configMap }} +apiVersion: v1 +kind: ConfigMap +metadata: + name: {{ include "alfresco-adf-app.fullname" . }} + labels: + {{- include "alfresco-adf-app.labels" . | nindent 4 }} +data: + app.config.json: >- + {{- .Values.configMap | toJson | nindent 4 }} +{{- end }} diff --git a/charts/alfresco-adf-app/values.yaml b/charts/alfresco-adf-app/values.yaml index 86d0388f..b4678b85 100644 --- a/charts/alfresco-adf-app/values.yaml +++ b/charts/alfresco-adf-app/values.yaml @@ -78,6 +78,11 @@ volumes: [] # -- Additional volumeMounts on the output Deployment definition volumeMounts: [] +# -- Additional configMap which converts yaml to json. This is useful for +# creating a app.config.json file for nginx apps. Which then can be mounted as a +# volume. +configMap: {} + nodeSelector: {} tolerations: []