Skip to content

Commit

Permalink
OPSEXP-2529: ACTIVITI-5113 workaround (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz authored Apr 8, 2024
1 parent eb7e9b7 commit 2cfce81
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/alfresco-activiti-admin/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: A Helm chart for Alfresco Activiti
name: alfresco-activiti-admin
version: 0.1.0-alpha.1
version: 0.1.0-alpha.2
appVersion: 24.1.0
dependencies:
- name: alfresco-common
Expand Down
3 changes: 2 additions & 1 deletion charts/alfresco-activiti-admin/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# alfresco-activiti-admin

![Version: 0.1.0-alpha.1](https://img.shields.io/badge/Version-0.1.0--alpha.1-informational?style=flat-square) ![AppVersion: 24.1.0](https://img.shields.io/badge/AppVersion-24.1.0-informational?style=flat-square)
![Version: 0.1.0-alpha.2](https://img.shields.io/badge/Version-0.1.0--alpha.2-informational?style=flat-square) ![AppVersion: 24.1.0](https://img.shields.io/badge/AppVersion-24.1.0-informational?style=flat-square)

A Helm chart for Alfresco Activiti

Expand Down Expand Up @@ -64,3 +64,4 @@ A Helm chart for Alfresco Activiti
| tolerations | list | `[]` | |
| volumeMounts | list | `[]` | |
| volumes | list | `[]` | |
| workaround.ACTIVITI-5113 | bool | `true` | Enable workaround for https://hyland.atlassian.net/browse/ACTIVITI-5113 Set to `true` to enable the workaround Set to `false` to disable the workaround |
6 changes: 6 additions & 0 deletions charts/alfresco-activiti-admin/templates/_helpers-rest.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{{- define "alfresco-activiti-admin.rest.baseUrl" -}}
{{- $restScheme := include "alfresco-common.url.scheme" .Values.environment.ACTIVITI_ADMIN_REST_APP_HOST }}
{{- $restHost := include "alfresco-common.url.host" .Values.environment.ACTIVITI_ADMIN_REST_APP_HOST }}
{{- $urlRoot := index .Values "workaround" "ACTIVITI-5113" | ternary "\\/\\/" "//"}}
{{- printf "%s:%s%s" $restScheme $urlRoot $restHost }}
{{- end -}}
10 changes: 7 additions & 3 deletions charts/alfresco-activiti-admin/templates/configmap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ metadata:
{{- include "alfresco-activiti-admin.labels" . | nindent 4 }}
data:
{{- if .Values.environment }}
{{- range $key, $val := .Values.environment }}
{{ $key }}: {{ tpl $val $ | quote }}
{{- end }}
{{- range $key, $val := .Values.environment }}
{{- if eq $key "ACTIVITI_ADMIN_REST_APP_HOST" }}
{{- $key | nindent 4 }}: {{ template "alfresco-activiti-admin.rest.baseUrl" $ }}
{{- else }}
{{- $key | nindent 4 }}: {{ tpl $val $ | quote }}
{{- end }}
{{- end }}
{{- end }}
6 changes: 6 additions & 0 deletions charts/alfresco-activiti-admin/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ database:
# -- Key within the secret holding the database password for admin app
password: DATABASE_PASSWORD

workaround:
# -- Enable workaround for https://hyland.atlassian.net/browse/ACTIVITI-5113
# Set to `true` to enable the workaround
# Set to `false` to disable the workaround
ACTIVITI-5113: true

tags:
# -- A chart tag used for Hyland's CI purpose. Do not set it to true.
ci: false

0 comments on commit 2cfce81

Please sign in to comment.