Skip to content

Commit

Permalink
feat: add annotations values in charts
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Jun 5, 2024
1 parent ab25c2f commit dbb9f50
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 8 deletions.
7 changes: 6 additions & 1 deletion plugins/contrib/charts/app/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 6 additions & 1 deletion plugins/contrib/charts/app/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins/contrib/charts/app/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ securityContext:
# runAsNonRoot: true
# runAsUser: 26
containerSecurityContext:

initContainers:
sidecars: []
annotations: {}
7 changes: 6 additions & 1 deletion plugins/contrib/charts/hasura/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 6 additions & 1 deletion plugins/contrib/charts/hasura/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions plugins/contrib/charts/hasura/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,4 @@ waitForPostgres: false
ingress:
enabled: true
annotations: {}
annotations: {}
7 changes: 6 additions & 1 deletion plugins/contrib/charts/redis/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 6 additions & 1 deletion plugins/contrib/charts/redis/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion plugins/contrib/charts/redis/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ image: redis:6.2.6-alpine3.14
addVolumes: []
volumes: []
volumeMounts: []
~forceRestart: false
~forceRestart: false
annotations: {}

0 comments on commit dbb9f50

Please sign in to comment.