diff --git a/plugins/contrib/charts/app/templates/deployment.yaml b/plugins/contrib/charts/app/templates/deployment.yaml index 2446cd63c9..c212c1adbf 100644 --- a/plugins/contrib/charts/app/templates/deployment.yaml +++ b/plugins/contrib/charts/app/templates/deployment.yaml @@ -26,7 +26,12 @@ metadata: application: {{ .Values.global.repositoryName }} name: {{ (or .Values.component .Chart.Name) | lower }} namespace: {{ or .Values.namespace .Values.global.namespace }} - annotations: {} + annotations: + {{- if .Values.annotations }} + {{- range $key, $val := .Values.annotations }} + "{{ $key }}": "{{ $val }}" + {{- end }} + {{- end }} spec: replicas: {{ or .Values.replicas .Values.global.replicas 1 }} selector: diff --git a/plugins/contrib/charts/app/templates/service.yaml b/plugins/contrib/charts/app/templates/service.yaml index af890f5e95..4c846e3185 100644 --- a/plugins/contrib/charts/app/templates/service.yaml +++ b/plugins/contrib/charts/app/templates/service.yaml @@ -6,7 +6,12 @@ metadata: application: {{ .Values.global.repositoryName }} name: {{ (or .Values.component .Chart.Name) | lower }} namespace: {{ or .Values.namespace .Values.global.namespace }} - annotations: {} + annotations: + {{- if .Values.annotations }} + {{- range $key, $val := .Values.annotations }} + "{{ $key }}": "{{ $val }}" + {{- end }} + {{- end }} spec: ports: - name: http diff --git a/plugins/contrib/charts/app/values.yaml b/plugins/contrib/charts/app/values.yaml index 1c32011e93..40d7455b48 100644 --- a/plugins/contrib/charts/app/values.yaml +++ b/plugins/contrib/charts/app/values.yaml @@ -63,6 +63,6 @@ securityContext: # runAsNonRoot: true # runAsUser: 26 containerSecurityContext: - initContainers: sidecars: [] +annotations: {} diff --git a/plugins/contrib/charts/hasura/templates/deployment.yaml b/plugins/contrib/charts/hasura/templates/deployment.yaml index 0a238798d0..4d88b218b7 100644 --- a/plugins/contrib/charts/hasura/templates/deployment.yaml +++ b/plugins/contrib/charts/hasura/templates/deployment.yaml @@ -6,7 +6,12 @@ metadata: application: {{ .Values.global.repositoryName }} name: {{ (or .Values.component .Chart.Name) | lower }} namespace: {{ or .Values.namespace .Values.global.namespace }} - annotations: {} + annotations: + {{- if .Values.annotations }} + {{- range $key, $val := .Values.annotations }} + "{{ $key }}": "{{ $val }}" + {{- end }} + {{- end }} spec: replicas: {{ or .Values.replicas .Values.global.replicas 1 }} selector: diff --git a/plugins/contrib/charts/hasura/templates/service.yaml b/plugins/contrib/charts/hasura/templates/service.yaml index af890f5e95..4c846e3185 100644 --- a/plugins/contrib/charts/hasura/templates/service.yaml +++ b/plugins/contrib/charts/hasura/templates/service.yaml @@ -6,7 +6,12 @@ metadata: application: {{ .Values.global.repositoryName }} name: {{ (or .Values.component .Chart.Name) | lower }} namespace: {{ or .Values.namespace .Values.global.namespace }} - annotations: {} + annotations: + {{- if .Values.annotations }} + {{- range $key, $val := .Values.annotations }} + "{{ $key }}": "{{ $val }}" + {{- end }} + {{- end }} spec: ports: - name: http diff --git a/plugins/contrib/charts/hasura/values.yaml b/plugins/contrib/charts/hasura/values.yaml index 93fead999c..1eeaaaaedf 100644 --- a/plugins/contrib/charts/hasura/values.yaml +++ b/plugins/contrib/charts/hasura/values.yaml @@ -56,3 +56,4 @@ waitForPostgres: false ingress: enabled: true annotations: {} +annotations: {} diff --git a/plugins/contrib/charts/redis/templates/deployment.yaml b/plugins/contrib/charts/redis/templates/deployment.yaml index 515da6e114..b1eb68057a 100644 --- a/plugins/contrib/charts/redis/templates/deployment.yaml +++ b/plugins/contrib/charts/redis/templates/deployment.yaml @@ -6,7 +6,12 @@ metadata: application: {{ .Values.global.repositoryName }} name: {{ (or .Values.component .Chart.Name) | lower }} namespace: {{ or .Values.namespace .Values.global.namespace }} - annotations: {} + annotations: + {{- if .Values.annotations }} + {{- range $key, $val := .Values.annotations }} + "{{ $key }}": "{{ $val }}" + {{- end }} + {{- end }} spec: replicas: 1 selector: diff --git a/plugins/contrib/charts/redis/templates/service.yaml b/plugins/contrib/charts/redis/templates/service.yaml index 0b2c7e1f40..7119d524d9 100644 --- a/plugins/contrib/charts/redis/templates/service.yaml +++ b/plugins/contrib/charts/redis/templates/service.yaml @@ -6,7 +6,12 @@ metadata: application: {{ .Values.global.repositoryName }} name: {{ (or .Values.component .Chart.Name) | lower }} namespace: {{ or .Values.namespace .Values.global.namespace }} - annotations: {} + annotations: + {{- if .Values.annotations }} + {{- range $key, $val := .Values.annotations }} + "{{ $key }}": "{{ $val }}" + {{- end }} + {{- end }} spec: ports: - name: http diff --git a/plugins/contrib/charts/redis/values.yaml b/plugins/contrib/charts/redis/values.yaml index 2c02f62621..c44c57fcb6 100644 --- a/plugins/contrib/charts/redis/values.yaml +++ b/plugins/contrib/charts/redis/values.yaml @@ -6,4 +6,5 @@ image: redis:6.2.6-alpine3.14 addVolumes: [] volumes: [] volumeMounts: [] -~forceRestart: false \ No newline at end of file +~forceRestart: false +annotations: {}