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

OUPDAUNTLE-31 add annotations also to the templates #24

Merged
merged 3 commits into from
Aug 30, 2022
Merged
Show file tree
Hide file tree
Changes from 2 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
9 changes: 4 additions & 5 deletions xenit-alfresco/templates/acs/acs-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ kind: Deployment
metadata:
name: acs
namespace: {{ .Release.Namespace | quote }}
annotations:
{{- include "globalPodAnnotations" . | indent 4 }}
{{- if .Values.acs.podAnnotations }}
{{ toYaml .Values.acs.podAnnotations | nindent 4 }}
{{- end }}
labels:
app: acs
spec:
Expand All @@ -30,6 +25,10 @@ spec:
checksum/acs-config: {{ include (print $.Template.BasePath "/acs/acs-config.yaml") . | sha256sum }}
checksum/mq-secret: {{ include (print $.Template.BasePath "/active-mq/mq-secret.yaml") . | sha256sum }}
checksum/db-secret: {{ include (print $.Template.BasePath "/db-secret.yaml") . | sha256sum }}
{{- include "globalPodAnnotations" . | indent 8 }}
{{- if .Values.acs.podAnnotations }}
{{ toYaml .Values.acs.podAnnotations | nindent 8 }}
{{- end }}
spec:
{{- if .Values.acs.serviceAccount }}
serviceAccountName: {{ .Values.acs.serviceAccount }}
Expand Down
9 changes: 4 additions & 5 deletions xenit-alfresco/templates/active-mq/mq-deployement.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ kind: Deployment
metadata:
name: mq
namespace: {{ .Release.Namespace | quote }}
annotations:
{{- include "globalPodAnnotations" . | indent 4 }}
{{- if .Values.mq.podAnnotations }}
{{ toYaml .Values.mq.podAnnotations | nindent 4 }}
{{- end }}
labels:
app: mq
spec:
Expand All @@ -32,6 +27,10 @@ spec:
annotations:
checksum/mq-config: {{ include (print $.Template.BasePath "/active-mq/mq-config.yaml") . | sha256sum }}
checksum/mq-secret: {{ include (print $.Template.BasePath "/active-mq/mq-secret.yaml") . | sha256sum }}
{{- include "globalPodAnnotations" . | indent 8 }}
{{- if .Values.mq.podAnnotations }}
{{ toYaml .Values.mq.podAnnotations | nindent 8 }}
{{- end }}
spec:
containers:
- name: activemq
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ kind: Deployment
metadata:
name: digital-workspace
namespace: {{ .Release.Namespace | quote }}
annotations:
{{- include "globalPodAnnotations" . | indent 4 }}
{{- if .Values.digitalWorkspace.podAnnotations }}
{{ toYaml .Values.digitalWorkspace.podAnnotations | nindent 4 }}
{{- end }}
labels:
app: digital-workspace
spec:
Expand All @@ -31,6 +26,10 @@ spec:
app: digital-workspace
annotations:
checksum/config: {{ include (print $.Template.BasePath "/digital-workspace/digital-workspace-config.yaml") . | sha256sum }}
{{- include "globalPodAnnotations" . | indent 8 }}
{{- if .Values.digitalWorkspace.podAnnotations }}
{{ toYaml .Values.digitalWorkspace.podAnnotations | nindent 8 }}
{{- end }}
spec:
containers:
- name: digital-workspace-container
Expand Down
9 changes: 4 additions & 5 deletions xenit-alfresco/templates/postgres/postgresql-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ kind: Deployment
metadata:
name: postgresql
namespace: {{ .Release.Namespace | quote }}
annotations:
{{- include "globalPodAnnotations" . | indent 4 }}
{{- if .Values.postgresql.podAnnotations }}
{{ toYaml .Values.postgresql.podAnnotations | nindent 4 }}
{{- end }}
labels:
app: postgresql
spec:
Expand All @@ -33,6 +28,10 @@ spec:
checksum/postgresql-config: {{ include (print $.Template.BasePath "/postgres/postgresql-config.yaml") . | sha256sum }}
checksum/mq-secret: {{ include (print $.Template.BasePath "/active-mq/mq-secret.yaml") . | sha256sum }}
checksum/db-secret: {{ include (print $.Template.BasePath "/db-secret.yaml") . | sha256sum }}
{{- include "globalPodAnnotations" . | indent 8 }}
{{- if .Values.postgresql.podAnnotations }}
{{ toYaml .Values.postgresql.podAnnotations | nindent 8 }}
{{- end }}
spec:
containers:
- name: postgresql-container
Expand Down
9 changes: 4 additions & 5 deletions xenit-alfresco/templates/share/share-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ kind: Deployment
metadata:
name: share
namespace: {{ .Release.Namespace | quote }}
annotations:
{{- include "globalPodAnnotations" . | indent 4 }}
{{- if .Values.share.podAnnotations }}
{{ toYaml .Values.share.podAnnotations | nindent 4 }}
{{- end }}
labels:
app: share
spec:
Expand All @@ -31,6 +26,10 @@ spec:
app: share
annotations:
checksum/share-config: {{ include (print $.Template.BasePath "/share/share-config.yaml") . | sha256sum }}
{{- include "globalPodAnnotations" . | indent 8 }}
{{- if .Values.share.podAnnotations }}
{{ toYaml .Values.share.podAnnotations | nindent 8 }}
{{- end }}
spec:
containers:
- name: share-container
Expand Down
9 changes: 4 additions & 5 deletions xenit-alfresco/templates/solr/solr-stateful-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ kind: StatefulSet
metadata:
name: solr
namespace: {{ .Release.Namespace | quote }}
annotations:
{{- include "globalPodAnnotations" . | indent 4 }}
{{- if .Values.solr.podAnnotations }}
{{ toYaml .Values.solr.podAnnotations | nindent 4 }}
{{- end }}
labels:
app: solr
spec:
Expand All @@ -28,6 +23,10 @@ spec:
app: solr
annotations:
checksum/solr-config: {{ include (print $.Template.BasePath "/solr/solr-config.yaml") . | sha256sum }}
{{- include "globalPodAnnotations" . | indent 8 }}
{{- if .Values.solr.podAnnotations }}
{{ toYaml .Values.solr.podAnnotations | nindent 8 }}
{{- end }}
spec:
containers:
- name: solr-container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ kind: Deployment
metadata:
name: sync-service
namespace: {{ .Release.Namespace | quote }}
annotations:
{{- include "globalPodAnnotations" . | indent 4 }}
{{- if .Values.syncService.podAnnotations }}
{{ toYaml .Values.syncService.podAnnotations | nindent 4 }}
{{- end }}
labels:
app: sync-service
spec:
Expand All @@ -33,6 +28,10 @@ spec:
checksum/sync-service-config: {{ include (print $.Template.BasePath "/sync-service/sync-service-config.yaml") . | sha256sum }}
checksum/mq-secret: {{ include (print $.Template.BasePath "/active-mq/mq-secret.yaml") . | sha256sum }}
checksum/db-secret: {{ include (print $.Template.BasePath "/db-secret.yaml") . | sha256sum }}
{{- include "globalPodAnnotations" . | indent 8 }}
{{- if .Values.syncService.podAnnotations }}
{{ toYaml .Values.syncService.podAnnotations | nindent 8 }}
{{- end }}
spec:
containers:
- name: sync-service-container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ kind: Deployment
metadata:
name: shared-file-store
namespace: {{ .Release.Namespace | quote }}
annotations:
{{- include "globalPodAnnotations" . | indent 4 }}
{{- if .Values.transformServices.sharedFileStore.podAnnotations }}
{{ toYaml .Values.transformServices.sharedFileStore.podAnnotations | nindent 4 }}
{{- end }}
labels:
app: shared-file-store
spec:
Expand All @@ -31,6 +26,10 @@ spec:
app: shared-file-store
annotations:
checksum/shared-file-store-config: {{ include (print $.Template.BasePath "/transform-services/shared-file-store/shared-file-store-config.yaml") . | sha256sum }}
{{- include "globalPodAnnotations" . | indent 8 }}
{{- if .Values.transformServices.sharedFileStore.podAnnotations }}
{{ toYaml .Values.transformServices.sharedFileStore.podAnnotations | nindent 8 }}
{{- end }}
spec:
containers:
- name: shared-file-store-container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ kind: Deployment
metadata:
name: transform-core-aio
namespace: {{ .Release.Namespace | quote }}
annotations:
{{- include "globalPodAnnotations" . | indent 4 }}
{{- if .Values.transformServices.transformCoreAio.podAnnotations }}
{{ toYaml .Values.transformServices.transformCoreAio.podAnnotations | nindent 4 }}
{{- end }}
labels:
app: transform-core-aio
spec:
Expand All @@ -31,6 +26,10 @@ spec:
app: transform-core-aio
annotations:
checksum/transform-core-aio-config: {{ include (print $.Template.BasePath "/transform-services/transform-core-aio/transform-core-aio-config.yaml") . | sha256sum }}
{{- include "globalPodAnnotations" . | indent 8 }}
{{- if .Values.transformServices.transformCoreAio.podAnnotations }}
{{ toYaml .Values.transformServices.transformCoreAio.podAnnotations | nindent 8 }}
{{- end }}
spec:
containers:
- name: transform-core-aio-container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ kind: Deployment
metadata:
name: transform-router
namespace: {{ .Release.Namespace | quote }}
annotations:
{{- include "globalPodAnnotations" . | indent 4 }}
{{- if .Values.transformServices.transformRouter.podAnnotations }}
{{ toYaml .Values.transformServices.transformRouter.podAnnotations | nindent 4 }}
{{- end }}
labels:
app: transform-router
spec:
Expand All @@ -31,6 +26,10 @@ spec:
app: transform-router
annotations:
checksum/transform-router-config: {{ include (print $.Template.BasePath "/transform-services/transform-router/transform-router-config.yaml") . | sha256sum }}
{{- include "globalPodAnnotations" . | indent 8 }}
{{- if .Values.transformServices.transformRouter.podAnnotations }}
{{ toYaml .Values.transformServices.transformRouter.podAnnotations | nindent 8 }}
{{- end }}
spec:
containers:
- name: transform-router-container
Expand Down