Skip to content

Commit

Permalink
base public url as a env from configmap
Browse files Browse the repository at this point in the history
  • Loading branch information
pmacius committed Oct 16, 2024
1 parent 7ed83fc commit aed23a7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helm/alfresco-content-services/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ Please refer to the [documentation](https://github.com/Alfresco/acs-deployment/b
| elasticsearchAas.replicas | int | `1` | |
| global.aasElasticsearch.existingSecretName | string | `nil` | Name of an existing secret that contains ELASTICSEARCH_USERNAME and ELASTICSEARCH_PASSWORD keys. |
| global.aasElasticsearch.password | string | `nil` | Elasticsearch password |
| global.aasElasticsearch.publicBaseUrl | string | `nil` | Base url for kibana environment variable |
| global.aasElasticsearch.secretName | string | `"alfresco-aas-elasticsearch-secret"` | Name of the secret managed by this chart |
| global.aasElasticsearch.securecomms | string | `"secret"` | set the security level used with the external search service (secret, none or https) |
| global.aasElasticsearch.url | string | `nil` | Elasticsearch URL |
Expand Down Expand Up @@ -285,6 +286,9 @@ Please refer to the [documentation](https://github.com/Alfresco/acs-deployment/b
| kibana.extraEnvs[2].name | string | `"ELASTICSEARCH_HOSTS"` | |
| kibana.extraEnvs[2].valueFrom.configMapKeyRef.key | string | `"AAS_ELASTICSEARCH_URL"` | |
| kibana.extraEnvs[2].valueFrom.configMapKeyRef.name | string | `"alfresco-infrastructure"` | |
| kibana.extraEnvs[3].name | string | `"SERVER_PUBLICBASEURL"` | |
| kibana.extraEnvs[3].valueFrom.configMapKeyRef.key | string | `"AAS_SERVER_PUBLICBASEURL"` | |
| kibana.extraEnvs[3].valueFrom.configMapKeyRef.name | string | `"alfresco-infrastructure"` | |
| kibana.healthCheckPath | string | `"/kibana/app/kibana"` | |
| kibana.ingress.enabled | bool | `true` | |
| kibana.ingress.hosts[0].paths[0].path | string | `"/kibana"` | |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,4 @@ data:
{{- printf "AAS_ELASTICSEARCH_URL: %s" $aas_search_url | nindent 2 }}
{{- printf "AAS_ELASTICSEARCH_HOST: %s" (include "alfresco-common.url.host" $aas_search_url) | nindent 2 }}
{{- printf "AAS_ELASTICSEARCH_PORT: %s" (include "alfresco-common.url.port" $aas_search_url | quote) | nindent 2 }}
AAS_SERVER_PUBLICBASEURL: {{ .Values.global.aasElasticsearch.publicBaseUrl | default "" | quote }}
7 changes: 7 additions & 0 deletions helm/alfresco-content-services/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ global:
secretName: &aas_elasticsearch_secretName alfresco-aas-elasticsearch-secret
# -- Name of an existing secret that contains ELASTICSEARCH_USERNAME and ELASTICSEARCH_PASSWORD keys.
existingSecretName: null
# -- Base url for kibana environment variable
publicBaseUrl: null
# -- 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
Expand Down Expand Up @@ -602,6 +604,11 @@ kibana:
configMapKeyRef:
name: *infrastructure_cmName
key: AAS_ELASTICSEARCH_URL
- name: SERVER_PUBLICBASEURL
valueFrom:
configMapKeyRef:
name: *infrastructure_cmName
key: AAS_SERVER_PUBLICBASEURL
ingress:
enabled: true
hosts:
Expand Down

0 comments on commit aed23a7

Please sign in to comment.