-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OPSEXP-2293: align alfresco-ai-transformer chart with latest practices (
#167)
- Loading branch information
Showing
18 changed files
with
517 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
dependencies: | ||
- name: alfresco-common | ||
repository: https://alfresco.github.io/alfresco-helm-charts/ | ||
version: 2.1.0 | ||
version: 3.0.0 | ||
- name: activemq | ||
repository: https://alfresco.github.io/alfresco-helm-charts/ | ||
version: 3.2.0 | ||
digest: sha256:2253dbee6aa979a16ff69d391f074dd62adf48c7d41f12271eebaee3fb89e54f | ||
generated: "2023-08-18T17:01:09.053373+02:00" | ||
version: 3.4.1 | ||
digest: sha256:9cc0f93b3dd14c9dde5cb9d9f4b7540d9d40d02d66b2a8d8eabd9d7f4f033f5c | ||
generated: "2023-12-15T14:43:55.754327+01:00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{{- if not .Values.aws.existingConfigMap.name }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
{{- $cmCtx := dict "Values" (dict "nameOverride" "aws-comprehend") "Chart" .Chart "Release" .Release }} | ||
name: {{ template "alfresco-ai-transformer.fullname" $cmCtx }} | ||
labels: | ||
{{- include "alfresco-ai-transformer.labels" . | nindent 4 }} | ||
data: | ||
AWS_REGION: {{ .Values.aws.region }} | ||
AWS_S3_BUCKET: {{ .Values.aws.s3Bucket }} | ||
AWS_COMPREHEND_ROLE_ARN: {{ .Values.aws.comprehendRoleARN }} | ||
{{- end }} |
12 changes: 12 additions & 0 deletions
12
charts/alfresco-ai-transformer/templates/config-message-broker.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{{- if not .Values.messageBroker.existingConfigMap.name }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
{{- $mqCtx := dict "Values" (dict "nameOverride" "ai-mq") "Chart" .Chart "Release" .Release }} | ||
name: {{ template "alfresco-ai-transformer.fullname" $mqCtx }} | ||
labels: | ||
{{- include "alfresco-ai-transformer.labels" $ | nindent 4 }} | ||
data: | ||
{{- $reqmsg := "Please provide a valid broker URL with messageBroker.url or as a configmap key using messageBroker.existingConfigMap" }} | ||
{{ template "alfresco-common.activemq.cm" (required $reqmsg .Values.messageBroker.url) }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{{- if not .Values.sfs.existingConfigMap.name }} | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
{{- $cmCtx := dict "Values" (dict "nameOverride" "ai-sfs") "Chart" .Chart "Release" .Release }} | ||
name: {{ template "alfresco-ai-transformer.fullname" $cmCtx }} | ||
labels: | ||
{{- include "alfresco-ai-transformer.labels" . | nindent 4 }} | ||
data: | ||
{{- $reqmsg := "You must provide a base URL for the filestore service as sfs.url" }} | ||
FILE_STORE_URL: {{ printf "%s/alfresco/api/-default-/private/sfs/versions/1/file" (required $reqmsg .Values.sfs.url) }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{- if not .Values.aws.existingSecret.name }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
{{- $secretCtx := dict "Values" (dict "nameOverride" "aws-comprehend") "Chart" .Chart "Release" .Release }} | ||
name: {{ template "alfresco-ai-transformer.fullname" $secretCtx }} | ||
labels: | ||
{{- include "alfresco-ai-transformer.labels" . | nindent 4 }} | ||
type: Opaque | ||
data: | ||
{{- with .Values.aws}} | ||
{{- $reqmsg := "You need to pass AWS credentials as values aws.%s or provide an aws.existingSecret.name" }} | ||
AWS_ACCESS_KEY_ID: {{ required (printf $reqmsg "accesseyId") .accessKeyId | b64enc | quote }} | ||
AWS_SECRET_ACCESS_KEY: {{ required (printf $reqmsg "secretAccessKey") .secretAccessKey | b64enc | quote }} | ||
{{- end }} | ||
{{- end }} |
12 changes: 3 additions & 9 deletions
12
charts/alfresco-ai-transformer/templates/secret-messagebroker.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,13 @@ | ||
{{- if not .Values.messageBroker.existingSecretName }} | ||
{{- if not .Values.messageBroker.existingSecret.name }} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ template "alfresco-ai-transformer.fullname" . }}-messagebroker-secret | ||
{{- $mqCtx := dict "Values" (dict "nameOverride" "ai-mq") "Chart" .Chart "Release" .Release }} | ||
name: {{ template "alfresco-ai-transformer.fullname" $mqCtx }} | ||
labels: | ||
{{- include "alfresco-ai-transformer.labels" $ | nindent 4 }} | ||
type: Opaque | ||
data: | ||
{{- if .Values.activemq.enabled }} | ||
BROKER_URL: {{ printf "failover:(nio://%s-activemq-broker:61616)?timeout=3000&jms.useCompression=true" (include "alfresco-ai-transformer.fullname" .) | b64enc | quote }} | ||
BROKER_USERNAME: {{ .Values.activemq.adminUser.user | b64enc | quote }} | ||
BROKER_PASSWORD: {{ .Values.activemq.adminUser.password | b64enc | quote }} | ||
{{- else }} | ||
BROKER_URL: {{ required "Disabling in-cluster ActiveMQ requires passing (at least) messageBroker.url" .Values.messageBroker.url | b64enc | quote }} | ||
BROKER_USERNAME: {{ .Values.messageBroker.user | b64enc | quote }} | ||
BROKER_PASSWORD: {{ .Values.messageBroker.password | b64enc | quote }} | ||
{{- end }} | ||
{{- end }} |
12 changes: 12 additions & 0 deletions
12
charts/alfresco-ai-transformer/templates/serviceaccount.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{{- if .Values.serviceAccount.create -}} | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ include "alfresco-ai-transformer.serviceAccountName" . }} | ||
labels: | ||
{{- include "alfresco-ai-transformer.labels" . | nindent 4 }} | ||
{{- with .Values.serviceAccount.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
{{- end }} |
Oops, something went wrong.