Skip to content

Commit 7dbe94a

Browse files
authored
feat: Add option to assign field-selector and label-selector (#193)
1 parent d9b15e9 commit 7dbe94a

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

helm/templates/service.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,14 @@ spec:
138138
- name: CODER_NAMESPACES
139139
value: {{ join "," .Values.namespaces }}
140140
{{- end }}
141+
{{- if .Values.fieldSelector }}
142+
- name: CODER_FIELD_SELECTOR
143+
value: {{ .Values.fieldSelector | quote }}
144+
{{- end }}
145+
{{- if .Values.labelSelector }}
146+
- name: CODER_LABEL_SELECTOR
147+
value: {{ .Values.labelSelector | quote }}
148+
{{- end }}
141149
{{- if .Values.image.sslCertFile }}
142150
- name: SSL_CERT_FILE
143151
value: {{ .Values.image.sslCertFile }}

helm/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ url: ""
55
# If unspecified or empty it will watch all namespaces.
66
namespaces: []
77

8+
# fieldSelector -- Kubernetes field selector for filtering pods.
9+
# Use this filter instead of .values.namespaces
10+
fieldSelector: ""
11+
12+
# labelSelector -- Kubernetes label selector for filtering pods
13+
# Use this filter instead of .values.namespaces
14+
labelSelector: ""
15+
816
# volumes -- A list of extra volumes to add to the coder-logstream pod.
917
volumes:
1018
# emptyDir: {}

0 commit comments

Comments
 (0)