Skip to content

Commit

Permalink
Allow configuration of Pod Labels (#131)
Browse files Browse the repository at this point in the history
Allow the configuration of additional Pod Labels. There are several use cases for this, one of which is injecting Istio sidecars which can only be done via Pod Labels.
  • Loading branch information
clayvan authored Oct 17, 2023
1 parent 7374af0 commit 0dba8af
Show file tree
Hide file tree
Showing 5 changed files with 11 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
1 change: 1 addition & 0 deletions couchdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ A variety of other parameters are also configurable. See the comments in the
| `podManagementPolicy` | Parallel |
| `affinity` | |
| `topologySpreadConstraints` | |
| `labels` | |
| `annotations` | |
| `tolerations` | |
| `resources` | |
Expand Down
1 change: 1 addition & 0 deletions couchdb/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ A variety of other parameters are also configurable. See the comments in the
| `podManagementPolicy` | Parallel |
| `affinity` | |
| `topologySpreadConstraints` | |
| `labels` | |
| `annotations` | |
| `tolerations` | |
| `resources` | |
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 0dba8af

Please sign in to comment.