Skip to content

Commit

Permalink
add podLabels support (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanMelnyk113 authored Nov 6, 2023
1 parent 8beb110 commit c91c792
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ linters:
- varcheck
- prealloc
- contextcheck
- protogetter
presets:
- bugs
- performance
Expand All @@ -18,4 +19,4 @@ run:
skip-dirs:
- .github
- charts
- examples
- examples
3 changes: 3 additions & 0 deletions charts/egressd/templates/collector/daemonSet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ spec:
labels:
app.kubernetes.io/component: egressd-collector
{{- include "egressd.selectorLabels" . | nindent 8 }}
{{- with .Values.collector.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
5 changes: 4 additions & 1 deletion charts/egressd/templates/exporter/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "egressd.exporter.labels" . | nindent 8 }}
{{- include "egressd.exporter.selectorLabels" . | nindent 8 }}
{{- with .Values.exporter.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
Expand Down
16 changes: 16 additions & 0 deletions charts/egressd/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,16 @@ collector:
# If not set and create is true, a name is generated using the fullname template
name: ""


## Annotations to be added to collector pod
##
podAnnotations: { }


## Labels to be added to collector pod
##
podLabels: { }

podSecurityContext: { }
# fsGroup: 2000

Expand Down Expand Up @@ -112,8 +120,16 @@ exporter:
# If not set and create is true, a name is generated using the fullname template
name: ""


## Annotations to be added to exporter pod
##
podAnnotations: { }


## Labels to be added to exporter pod
##
podLabels: { }

podSecurityContext:
fsGroup: 10001
runAsGroup: 10001
Expand Down

0 comments on commit c91c792

Please sign in to comment.