Skip to content

Commit

Permalink
Add annotations for Pod, Service and StatefulSet (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
silentsokolov authored Apr 3, 2024
1 parent f021ef4 commit 2b538da
Show file tree
Hide file tree
Showing 7 changed files with 105 additions and 0 deletions.
10 changes: 10 additions & 0 deletions charts/quickwit/templates/control-plane-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ metadata:
name: {{ include "quickwit.fullname" . }}-control-plane
labels:
{{- include "quickwit.labels" . | nindent 4 }}
annotations:
{{- with .Values.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.control_plane.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: 1
selector:
Expand All @@ -18,6 +25,9 @@ spec:
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.control_plane.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "quickwit.additionalLabels" . | nindent 8 }}
{{- include "quickwit.control_plane.selectorLabels" . | nindent 8 }}
Expand Down
10 changes: 10 additions & 0 deletions charts/quickwit/templates/indexer-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ metadata:
name: {{ include "quickwit.fullname" . }}-indexer
labels:
{{- include "quickwit.labels" . | nindent 4 }}
annotations:
{{- with .Values.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.indexer.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.indexer.replicaCount }}
serviceName: {{ include "quickwit.fullname" . }}-headless
Expand All @@ -22,6 +29,9 @@ spec:
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.indexer.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "quickwit.additionalLabels" . | nindent 8 }}
{{- include "quickwit.indexer.selectorLabels" . | nindent 8 }}
Expand Down
10 changes: 10 additions & 0 deletions charts/quickwit/templates/janitor-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ metadata:
name: {{ include "quickwit.fullname" . }}-janitor
labels:
{{- include "quickwit.labels" . | nindent 4 }}
annotations:
{{- with .Values.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.janitor.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: 1
selector:
Expand All @@ -19,6 +26,9 @@ spec:
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.janitor.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "quickwit.additionalLabels" . | nindent 8 }}
{{- include "quickwit.janitor.selectorLabels" . | nindent 8 }}
Expand Down
10 changes: 10 additions & 0 deletions charts/quickwit/templates/metastore-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ metadata:
name: {{ include "quickwit.fullname" . }}-metastore
labels:
{{- include "quickwit.labels" . | nindent 4 }}
annotations:
{{- with .Values.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.metastore.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.metastore.replicaCount }}
selector:
Expand All @@ -17,6 +24,9 @@ spec:
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.metastore.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "quickwit.additionalLabels" . | nindent 8 }}
{{- include "quickwit.metastore.selectorLabels" . | nindent 8 }}
Expand Down
10 changes: 10 additions & 0 deletions charts/quickwit/templates/searcher-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ metadata:
name: {{ include "quickwit.fullname" . }}-searcher
labels:
{{- include "quickwit.labels" . | nindent 4 }}
annotations:
{{- with .Values.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.searcher.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.searcher.replicaCount }}
serviceName: {{ include "quickwit.fullname" . }}-headless
Expand All @@ -22,6 +29,9 @@ spec:
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.searcher.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "quickwit.additionalLabels" . | nindent 8 }}
{{- include "quickwit.searcher.selectorLabels" . | nindent 8 }}
Expand Down
25 changes: 25 additions & 0 deletions charts/quickwit/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ metadata:
name: {{ include "quickwit.fullname" . }}-searcher
labels:
{{- include "quickwit.labels" . | nindent 4 }}
annotations:
{{- with .Values.service.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.searcher.serviceAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
Expand All @@ -23,6 +30,10 @@ metadata:
name: {{ include "quickwit.fullname" . }}-headless
labels:
{{- include "quickwit.labels" . | nindent 4 }}
annotations:
{{- with .Values.service.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: ClusterIP
clusterIP: None
Expand All @@ -49,6 +60,13 @@ metadata:
name: {{ include "quickwit.fullname" . }}-indexer
labels:
{{- include "quickwit.labels" . | nindent 4 }}
annotations:
{{- with .Values.service.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.indexer.serviceAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
Expand All @@ -68,6 +86,13 @@ metadata:
name: {{ include "quickwit.fullname" . }}-metastore
labels:
{{- include "quickwit.labels" . | nindent 4 }}
annotations:
{{- with .Values.service.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.metastore.serviceAnnotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
Expand Down
30 changes: 30 additions & 0 deletions charts/quickwit/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template
name: ""

annotations: {}

podAnnotations: {}

podSecurityContext:
Expand Down Expand Up @@ -83,6 +85,12 @@ searcher:
path: /health/readyz
port: rest

annotations: {}

podAnnotations: {}

serviceAnnotations: {}

nodeSelector: {}

tolerations: []
Expand Down Expand Up @@ -129,6 +137,12 @@ indexer:
path: /health/readyz
port: rest

annotations: {}

podAnnotations: {}

serviceAnnotations: {}

nodeSelector: {}

tolerations: []
Expand Down Expand Up @@ -175,6 +189,12 @@ metastore:
path: /health/readyz
port: rest

annotations: {}

podAnnotations: {}

serviceAnnotations: {}

nodeSelector: {}

tolerations: []
Expand Down Expand Up @@ -211,6 +231,10 @@ control_plane:
path: /health/readyz
port: rest

annotations: {}

podAnnotations: {}

nodeSelector: {}

tolerations: []
Expand Down Expand Up @@ -250,6 +274,10 @@ janitor:
path: /health/readyz
port: rest

annotations: {}

podAnnotations: {}

nodeSelector: {}

tolerations: []
Expand Down Expand Up @@ -392,6 +420,8 @@ prometheusRule:
service:
type: ClusterIP

annotations: {}

ingress:
enabled: false
className: nginx
Expand Down

0 comments on commit 2b538da

Please sign in to comment.