Skip to content

Commit

Permalink
OPSEXP-2890: Add ACS audit component to the supported matrix (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
alxgomz authored Nov 19, 2024
1 parent 259c04b commit 086e51d
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 8 deletions.
61 changes: 53 additions & 8 deletions deployments/uber-manifest.tpl
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
---
name: Images updates for all Alfresco supported versions of Helm charts and Docker compose

{{- define "manifest_name" }}
{{- default "Alfresco components' Updatecli manifest" .name }}
{{- end }}
{{- define "quay_auth" }}
username: {{ requiredEnv "QUAY_USERNAME" }}
password: {{ requiredEnv "QUAY_PASSWORD" }}
{{- end }}
{{- end -}}
---
name: {{ template "manifest_name" . }}

scms:
searchEnterprise:
Expand All @@ -18,10 +20,10 @@ scms:
token: {{ requiredEnv "UPDATECLI_GITHUB_TOKEN" }}
directory: /tmp/updatecli/searchEnterprise

{{ $default_repo_image := "quay.io/alfresco/alfresco-content-repository" }}
{{ $default_search_image := "quay.io/alfresco/search-services" }}
{{ $default_share_image := "quay.io/alfresco/alfresco-share" }}
{{ $default_activemq_image := "quay.io/alfresco/alfresco-activemq" }}
{{- $default_repo_image := "quay.io/alfresco/alfresco-content-repository" }}
{{- $default_search_image := "quay.io/alfresco/search-services" }}
{{- $default_share_image := "quay.io/alfresco/alfresco-share" }}
{{- $default_activemq_image := "quay.io/alfresco/alfresco-activemq" }}

sources:
{{- range .matrix }}
Expand Down Expand Up @@ -310,6 +312,18 @@ sources:
pattern: >-
^{{ index . "activiti-admin" "version" }}{{ index . "activiti-admin" "pattern" }}$
{{- end }}
{{- with index . "audit-storage"}}
auditStorageTag_{{ $id }}:
name: Alfresco Repository Audit component image tag
kind: dockerimage
spec:
image: quay.io/alfresco/alfresco-audit-storage
{{ template "quay_auth" }}
versionFilter:
kind: semver
pattern: >-
{{ .version }}
{{- end }}
{{- end }}


Expand Down Expand Up @@ -859,4 +873,35 @@ targets:
{{- end }}
{{- end }}
{{- end }}
{{- with index . "audit-storage" }}
{{- if and .compose_key .compose_target }}
auditStorageCompose_{{ $id }}:
name: Alfresco Repository Audit Compose target
kind: yaml
sourceid: auditStorageTag_{{ $id }}
transformers:
- addprefix: "quay.io/alfresco/alfresco-audit-storage:"
spec:
file: {{ .compose_target }}
key: {{ .compose_key }}
{{- end }}
{{- if and .helm_key .helm_target }}
auditStorageValues_{{ $id }}:
name: Alfresco Repository Audit Helm values target
kind: yaml
sourceid: auditStorageTag_{{ $id }}
spec:
file: {{ .helm_target }}
key: {{ .helm_key }}
{{- if .helm_update_appVersion }}
auditStorageAppVersion_{{ $id }}:
name: Alfresco Repository Audit Helm Chart target
kind: yaml
sourceid: auditStorageTag_{{ $id }}
spec:
file: {{ osDir .helm_target }}/Chart.yaml
key: "$.appVersion"
{{- end }}
{{- end }}
{{- end }}
{{- end }}
4 changes: 4 additions & 0 deletions deployments/values/supported-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ matrix:
version: *tengine_next_version
tengine-tika:
version: *tengine_next_version
audit-storage:
version: ">=1.0.0-0"

current:
id: current
Expand Down Expand Up @@ -118,6 +120,8 @@ matrix:
activiti-admin:
version: *activiti_ga_version
pattern: *ga_pattern
audit-storage:
version: "~1.0.0"

7.4.N:
id: 74n
Expand Down

0 comments on commit 086e51d

Please sign in to comment.