Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OPSEXP-2189 Automate updating of activemq in activemq chart #25

Merged
merged 7 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions deployments/uber-manifest.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@ sources:
pattern: >-
^{{ index . "adw" "version" }}{{ index . "adw" "pattern" }}$
{{- end }}
{{- if index . "activemq" }}
activemqTag_{{ $id }}:
name: Alfresco ActiveMQ tag
kind: dockerimage
spec:
image: quay.io/alfresco/alfresco-activemq
{{ template "quay_auth" }}
versionFilter:
kind: regex
pattern: >-
^{{ index . "activemq" "version" }}{{ index . "activemq" "pattern" }}$
{{- end }}
{{- if index . "aca" }}
acaTag_{{ $id }}:
name: Alfresco Content App tag
Expand Down Expand Up @@ -392,6 +404,42 @@ targets:
key: "$.appVersion"
{{- end }}
{{- end }}
{{- if index . "activemq" }}
{{- if and .activemq.compose_key .activemq.compose_target }}
activemqCompose_{{ $id }}:
name: activemq image tag
kind: yaml
sourceid: activemqTag_{{ $id }}
transformers:
- addprefix: "quay.io/alfresco/alfresco-activemq:"
spec:
file: {{ .activemq.compose_target }}
key: >-
{{ .activemq.compose_key }}
{{- end }}
{{- $target_activemq_helm := .activemq.helm_target}}
{{- if and $target_activemq_helm .activemq.helm_key }}
activemqValues_{{ $id }}:
name: activemq image tag
kind: yaml
sourceid: activemqTag_{{ $id }}
spec:
file: {{ $target_activemq_helm }}
key: >-
{{ .activemq.helm_key }}
{{- end }}
{{- if index . "activemq" "helm_update_appVersion" }}
activemqAppVersion_{{ $id }}:
name: Search appVersion in Chart.yaml
kind: yaml
sourceid: activemqTag_{{ $id }}
transformers:
- trimsuffix: "-jre17-rockylinux8"
spec:
file: {{ osDir $target_activemq_helm }}/Chart.yaml
key: "$.appVersion"
{{- end }}
{{- end }}
{{- if index . "search-enterprise" }}
{{- $target_searchEntCompose := index . "search-enterprise" "compose_target" }}
{{- if $target_searchEntCompose }}
Expand Down
25 changes: 25 additions & 0 deletions deployments/values/supported-matrix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ patterns:
ga_with_hotfixes: &ga_hotfixes_pattern (\.[0-9]+){0,3}
development: &development_pattern (\.[0-9]+){0,3}(-[AM]\.?[0-9]+)?
development_almost_semver_pattern: &development_almost_semver_pattern (\.[0-9]+){0,3}(-[0-9]+)?
ga_activemq: &ga_activemq_pattern \.\d+-jre17-rockylinux8
matrix:
next:
id: next
acs:
version: "23.2"
pattern: *development_pattern
activemq:
version: "5.18"
pattern: *ga_activemq_pattern
share:
version: "23.2"
pattern: *development_pattern
Expand Down Expand Up @@ -60,6 +64,9 @@ matrix:
acs:
version: &acs_ga_version "23.1"
pattern: *ga_hotfixes_pattern
activemq:
version: "5.18"
pattern: *ga_activemq_pattern
share:
version: "23.1"
pattern: *ga_hotfixes_pattern
Expand Down Expand Up @@ -108,6 +115,9 @@ matrix:
acs:
version: "7.4"
pattern: *ga_hotfixes_pattern
activemq:
version: "5.17"
pattern: *ga_activemq_pattern
share:
version: "7.4"
pattern: *ga_hotfixes_pattern
Expand Down Expand Up @@ -156,6 +166,9 @@ matrix:
acs:
version: "7.3.1"
pattern: *ga_hotfixes_pattern
activemq:
version: "5.17"
pattern: *ga_activemq_pattern
share:
version: "7.3.1"
pattern: *ga_hotfixes_pattern
Expand Down Expand Up @@ -204,6 +217,9 @@ matrix:
acs:
version: "7.2"
pattern: *ga_hotfixes_pattern
activemq:
version: "5.16"
pattern: *ga_activemq_pattern
share:
version: "7.2"
pattern: *ga_hotfixes_pattern
Expand Down Expand Up @@ -252,6 +268,9 @@ matrix:
acs:
version: "7.1.1"
pattern: *ga_hotfixes_pattern
activemq:
version: "5.16"
pattern: *ga_activemq_pattern
share:
version: "7.1.1"
pattern: *ga_hotfixes_pattern
Expand Down Expand Up @@ -297,6 +316,9 @@ matrix:
acs:
version: "7.0"
pattern: *ga_hotfixes_pattern
activemq:
version: "5.16"
pattern: *ga_activemq_pattern
share:
version: "7.0"
pattern: *ga_hotfixes_pattern
Expand Down Expand Up @@ -337,6 +359,9 @@ matrix:
version: *acs_ga_version
pattern: *ga_hotfixes_pattern
image: docker.io/alfresco/alfresco-content-repository-community
activemq:
version: "5.18"
pattern: *ga_activemq_pattern
share:
version: *acs_ga_version
pattern: *ga_hotfixes_pattern
Expand Down
Loading