Skip to content

Commit

Permalink
OPSEXP-2300: bump alfresco-sync-service chart to 5.0.0-alpha.1 (#1068)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz authored Jan 11, 2024
1 parent 160cd70 commit 6bb72cf
Show file tree
Hide file tree
Showing 7 changed files with 124 additions and 38 deletions.
9 changes: 6 additions & 3 deletions helm/alfresco-content-services/Chart.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ dependencies:
- name: postgresql
repository: oci://registry-1.docker.io/bitnamicharts
version: 12.8.5
- name: postgresql
repository: oci://registry-1.docker.io/bitnamicharts
version: 12.8.5
- name: common
repository: https://activiti.github.io/activiti-cloud-helm-charts
version: 8.0.0
Expand All @@ -25,7 +28,7 @@ dependencies:
version: 2.0.0
- name: alfresco-sync-service
repository: https://alfresco.github.io/alfresco-helm-charts/
version: 4.5.1
version: 5.0.0-alpha.1
- name: alfresco-search-enterprise
repository: https://alfresco.github.io/alfresco-helm-charts/
version: 3.1.0-alpha.1
Expand All @@ -44,5 +47,5 @@ dependencies:
- name: elasticsearch
repository: https://helm.elastic.co
version: 7.17.3
digest: sha256:02be1c10b63c9e03784d7d7ef53893da3cc4bb46cb975274876ad791e16c0f14
generated: "2024-01-09T16:33:13.116899+01:00"
digest: sha256:51536deb76355c975200cec27a9be5d8bbd5c40da819d558a549a353ef50de13
generated: "2024-01-11T09:31:51.429814+01:00"
7 changes: 6 additions & 1 deletion helm/alfresco-content-services/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ dependencies:
version: 12.8.5
repository: oci://registry-1.docker.io/bitnamicharts
condition: postgresql.enabled
- name: postgresql
version: 12.8.5
repository: oci://registry-1.docker.io/bitnamicharts
alias: postgresql-sync
condition: postgresql-sync.enabled
- name: common
alias: alfresco-control-center
repository: https://activiti.github.io/activiti-cloud-helm-charts
Expand Down Expand Up @@ -53,7 +58,7 @@ dependencies:
condition: alfresco-search.enabled
- name: alfresco-sync-service
repository: https://alfresco.github.io/alfresco-helm-charts/
version: 4.5.1
version: 5.0.0-alpha.1
condition: alfresco-sync-service.enabled
- name: alfresco-search-enterprise
version: 3.1.0-alpha.1
Expand Down
41 changes: 27 additions & 14 deletions helm/alfresco-content-services/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ Please refer to the [documentation](https://github.com/Alfresco/acs-deployment/b
| https://alfresco.github.io/alfresco-helm-charts/ | alfresco-search-enterprise | 3.1.0-alpha.1 |
| https://alfresco.github.io/alfresco-helm-charts/ | alfresco-search(alfresco-search-service) | 2.0.0 |
| https://alfresco.github.io/alfresco-helm-charts/ | share(alfresco-share) | 0.3.0 |
| https://alfresco.github.io/alfresco-helm-charts/ | alfresco-sync-service | 4.5.1 |
| https://alfresco.github.io/alfresco-helm-charts/ | alfresco-sync-service | 5.0.0-alpha.1 |
| https://alfresco.github.io/alfresco-helm-charts/ | alfresco-transform-service | 1.0.0-alpha.2 |
| https://helm.elastic.co | elasticsearch | 7.17.3 |
| oci://registry-1.docker.io/bitnamicharts | postgresql-sync(postgresql) | 12.8.5 |
| oci://registry-1.docker.io/bitnamicharts | postgresql | 12.8.5 |

## Values
Expand Down Expand Up @@ -160,21 +161,16 @@ Please refer to the [documentation](https://github.com/Alfresco/acs-deployment/b
| alfresco-search.repository.existingSecret.name | string | `"alfresco-search-secret"` | |
| alfresco-search.searchServicesImage.repository | string | `"quay.io/alfresco/search-services"` | |
| alfresco-search.searchServicesImage.tag | string | `"2.0.8.2"` | |
| alfresco-sync-service.database.existingConfigMap.keys.url | string | `"SYNC_DATABASE_URL"` | |
| alfresco-sync-service.database.existingConfigMap.name | string | `"alfresco-infrastructure"` | |
| alfresco-sync-service.database.existingSecret.name | string | `"alfresco-cs-sync"` | |
| alfresco-sync-service.enabled | bool | `true` | Toggle deployment of Alfresco Sync Service (Desktop-Sync) Check [Alfresco Sync Service Documentation](https://github.com/Alfresco/alfresco-helm-charts/tree/main/charts/alfresco-sync-service) |
| alfresco-sync-service.image.tag | string | `"4.0.1"` | |
| alfresco-sync-service.messageBroker.existingSecretName | string | `"acs-alfresco-cs-brokersecret"` | |
| alfresco-sync-service.postgresql.auth.database | string | `"syncservice-postgresql"` | |
| alfresco-sync-service.postgresql.auth.enablePostgresUser | bool | `false` | |
| alfresco-sync-service.postgresql.auth.password | string | `"admin"` | |
| alfresco-sync-service.postgresql.auth.username | string | `"alfresco"` | |
| alfresco-sync-service.postgresql.enabled | bool | `true` | |
| alfresco-sync-service.postgresql.image.tag | string | `"14.4.0"` | |
| alfresco-sync-service.postgresql.primary.resources.limits.cpu | string | `"4"` | |
| alfresco-sync-service.postgresql.primary.resources.limits.memory | string | `"4Gi"` | |
| alfresco-sync-service.postgresql.primary.resources.requests.cpu | string | `"250m"` | |
| alfresco-sync-service.postgresql.primary.resources.requests.memory | string | `"1Gi"` | |
| alfresco-sync-service.repository.nameOverride | string | `"alfresco-repository"` | |
| alfresco-sync-service.repository.port | int | `80` | |
| alfresco-sync-service.messageBroker.existingConfigMap.name | string | `"alfresco-infrastructure"` | |
| alfresco-sync-service.messageBroker.existingSecret.name | string | `"acs-alfresco-cs-brokersecret"` | |
| alfresco-sync-service.repository.existingConfigMap.keys.host | string | `"repo_svc_name"` | |
| alfresco-sync-service.repository.existingConfigMap.keys.port | string | `"repo_svc_port"` | |
| alfresco-sync-service.repository.existingConfigMap.name | string | `"alfresco-infrastructure"` | |
| alfresco-transform-service.enabled | bool | `true` | |
| alfresco-transform-service.filestore.enabled | bool | `true` | Declares the alfresco-shared-file-store used by the content repository and transform service |
| alfresco-transform-service.filestore.image.repository | string | `"quay.io/alfresco/alfresco-shared-file-store"` | |
Expand Down Expand Up @@ -210,6 +206,12 @@ Please refer to the [documentation](https://github.com/Alfresco/acs-deployment/b
| database.external | bool | `false` | Enable using an external database for Alfresco Content Services. Must disable `postgresql.enabled` when true. |
| database.password | string | `nil` | External Postgresql database password |
| database.secretName | string | `"alfresco-cs-database"` | Name of the secret managed by this chart |
| database.sync.configMapName | string | `"alfresco-infrastructure"` | Name of the secret managed by this chart |
| database.sync.driver | string | `nil` | Postgresql jdbc driver name ex: org.postgresql.Driver. It should be available in the container image. |
| database.sync.password | string | `nil` | External Postgresql database password |
| database.sync.secretName | string | `"alfresco-cs-sync"` | Name of the secret managed by this chart |
| database.sync.url | string | `nil` | External Postgresql jdbc url ex: `jdbc:postgresql://oldfashioned-mule-postgresql-acs:5432/alfresco` |
| database.sync.user | string | `nil` | External Postgresql database user |
| database.url | string | `nil` | External Postgresql jdbc url ex: `jdbc:postgresql://oldfashioned-mule-postgresql-acs:5432/alfresco` |
| database.user | string | `nil` | External Postgresql database user |
| elasticsearch.clusterHealthCheckParams | string | `"wait_for_status=yellow&timeout=1s"` | |
Expand All @@ -232,6 +234,17 @@ Please refer to the [documentation](https://github.com/Alfresco/acs-deployment/b
| infrastructure.configMapName | string | `"alfresco-infrastructure"` | |
| messageBroker | object | `{"password":null,"secretName":"acs-alfresco-cs-brokersecret","url":null,"user":null}` | Activemq connection details (activemq.enabled must also be set to false) |
| messageBroker.secretName | string | `"acs-alfresco-cs-brokersecret"` | Name of the secret managed by this chart |
| postgresql-sync.auth.database | string | `"syncservice-postgresql"` | |
| postgresql-sync.auth.enablePostgresUser | bool | `false` | |
| postgresql-sync.auth.password | string | `"admin"` | |
| postgresql-sync.auth.username | string | `"alfresco"` | |
| postgresql-sync.enabled | bool | `true` | Toggle creation of the "in-cluster" test postgresql instance for Alfresco Sync service |
| postgresql-sync.image.tag | string | `"14.4.0"` | |
| postgresql-sync.nameOverride | string | `"postgresql-sync"` | |
| postgresql-sync.primary.resources.limits.cpu | string | `"4"` | |
| postgresql-sync.primary.resources.limits.memory | string | `"4Gi"` | |
| postgresql-sync.primary.resources.requests.cpu | string | `"250m"` | |
| postgresql-sync.primary.resources.requests.memory | string | `"1Gi"` | |
| postgresql.auth.database | string | `"alfresco"` | |
| postgresql.auth.existingSecret | string | `nil` | |
| postgresql.auth.password | string | `"alfresco"` | |
Expand Down
18 changes: 18 additions & 0 deletions helm/alfresco-content-services/templates/_helpers-database.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,21 @@ Usage: include "alfresco-content-services.database.repo" $
{{- end }}
{{- end }}
{{- end -}}

{{/*
Compute the sync-service database URL
Usage: include "alfresco-content-services.database.sync" $
*/}}
{{- define "alfresco-content-services.database.sync" -}}
{{- with .Values }}
{{- if and (not .database.sync.url) (not (index . "postgresql-sync" "enabled")) }}
{{- fail "You must either set database.sync.url or postgresql-sync.enabled values" }}
{{- else }}
{{- $pg_port := index . "postgresql-sync" "primary" "service" "ports" "postgresql" | toString }}
{{- $pg_url := printf "postgresql://%s-%s:%s/%s" $.Release.Name (index . "postgresql-sync" "nameOverride") $pg_port (index . "postgresql-sync" "auth" "database") }}
{{- .database.sync.url | default $pg_url }}
{{- end }}
{{- end }}
{{- end -}}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ data:
REPOSITORY_URL: {{ printf "http://%s:%v/alfresco" $repo_svc_name $repo_svc_port }}
{{- $db_url := include "alfresco-content-services.database.repo" $ }}
{{ template "alfresco-repository.db.cm" (dict "url" $db_url "driver" .Values.database.driver) }}
{{- if index .Values "alfresco-sync-service" "enabled" }}
{{- $sync_db_url := include "alfresco-content-services.database.sync" $ }}
SYNC_DATABASE_URL: {{ hasPrefix "jdbc:" $sync_db_url | ternary $sync_db_url (print "jdbc:" $sync_db_url) }}
SYNC_DATABASE_DRIVER: {{ template "alfresco-common.db.driver" (dict "url" $sync_db_url "driver" .Values.database.sync.driver) }}
{{- end }}
{{ template "alfresco-common.activemq.cm" (include "alfresco-content-services.mq.url" .) }}
{{- $search_url := "" }}
{{- $search_flavor := include "alfresco-content-services.search.flavor" . }}
Expand Down
14 changes: 14 additions & 0 deletions helm/alfresco-content-services/templates/secret-sync-database.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{{- if index . "Values" "alfresco-sync-service" "enabled" }}
apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.database.sync.secretName }}
labels:
{{- include "alfresco-content-services.labels" . | nindent 4 }}
type: Opaque
data:
{{- with .Values }}
DATABASE_USERNAME: {{ .database.sync.user | default (index . "postgresql-sync" "auth" "username") | b64enc | quote }}
DATABASE_PASSWORD: {{ .database.sync.password | default (index . "postgresql-sync" "auth" "password") | b64enc | quote }}
{{- end }}
{{- end }}
68 changes: 48 additions & 20 deletions helm/alfresco-content-services/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,19 @@ database:
# -- An existing secret that contains DATABASE_USERNAME and DATABASE_PASSWORD keys.
# When using embedded postgres you need to also set `postgresql.existingSecret`.
existingSecretName: null
sync:
# -- Postgresql jdbc driver name ex: org.postgresql.Driver. It should be available in the container image.
driver: null
# -- External Postgresql database user
user: null
# -- External Postgresql database password
password: null
# -- External Postgresql jdbc url ex: `jdbc:postgresql://oldfashioned-mule-postgresql-acs:5432/alfresco`
url: null
# -- Name of the secret managed by this chart
configMapName: *infrastructure_cmName
# -- Name of the secret managed by this chart
secretName: &sync_database_secretName alfresco-cs-sync
# -- Activemq connection details (activemq.enabled must also be set to false)
messageBroker:
url: null
Expand Down Expand Up @@ -456,28 +469,43 @@ alfresco-sync-service:
enabled: true
image:
tag: 4.0.1
postgresql:
enabled: true
image:
tag: 14.4.0
auth:
enablePostgresUser: false
username: alfresco
password: admin
database: syncservice-postgresql
primary:
resources:
requests:
cpu: 250m
memory: 1Gi
limits:
cpu: "4"
memory: 4Gi
database:
existingSecret:
name: *sync_database_secretName
existingConfigMap:
name: *infrastructure_cmName
keys:
url: SYNC_DATABASE_URL
messageBroker:
existingSecretName: *acs_messageBroker_secretName
existingSecret:
name: *acs_messageBroker_secretName
existingConfigMap:
name: *infrastructure_cmName
repository:
nameOverride: alfresco-repository
port: 80
existingConfigMap:
name: *infrastructure_cmName
keys:
host: repo_svc_name
port: repo_svc_port
postgresql-sync:
# -- Toggle creation of the "in-cluster" test postgresql instance for Alfresco Sync service
enabled: true
nameOverride: postgresql-sync
image:
tag: 14.4.0
auth:
enablePostgresUser: false
username: alfresco
password: admin
database: syncservice-postgresql
primary:
resources:
requests:
cpu: 250m
memory: 1Gi
limits:
cpu: "4"
memory: 4Gi
alfresco-ai-transformer:
# -- toggle deploying Alfresco ai transformer for more details about configuration check
# https://github.com/Alfresco/alfresco-helm-charts/tree/main/charts/alfresco-ai-transformer
Expand Down

0 comments on commit 6bb72cf

Please sign in to comment.