Skip to content

Commit

Permalink
Allow configuration of Pod Labels
Browse files Browse the repository at this point in the history
  • Loading branch information
clayvan committed Oct 16, 2023
1 parent 7374af0 commit 1218edc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion couchdb/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: couchdb
version: 4.4.4
version: 4.4.5
appVersion: 3.3.2
description: A database featuring seamless multi-master sync, that scales from
big data to mobile, with an intuitive HTTP/JSON API and designed for
Expand Down
7 changes: 5 additions & 2 deletions couchdb/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ spec:
metadata:
labels:
{{ include "couchdb.ss.selector" . | indent 8 }}
{{- if .Values.labels }}
{{ toYaml .Values.labels | indent 8 }}
{{- end }}
annotations:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
checksum/secret: {{ include (print $.Template.BasePath "/secrets.yaml") . | sha256sum }}
Expand All @@ -35,7 +38,7 @@ spec:
- name: init-copy
image: "{{ .Values.initImage.repository }}:{{ .Values.initImage.tag }}"
imagePullPolicy: {{ .Values.initImage.pullPolicy }}
command:
command:
- 'sh'
- '-c'
{{- if .Values.prometheusPort.enabled }}
Expand Down Expand Up @@ -199,7 +202,7 @@ spec:
- key: seedlistinifile
path: seedlist.ini
{{- if .Values.prometheusPort.enabled }}
- key: prometheusinifile
- key: prometheusinifile
path: prometheus.ini
{{- end }}

Expand Down
3 changes: 3 additions & 0 deletions couchdb/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ topologySpreadConstraints: {}
# matchLabels:
# app: couchdb

## Optional pod labels
labels: {}

## Optional pod annotations
annotations: {}

Expand Down

0 comments on commit 1218edc

Please sign in to comment.