diff --git a/.golangci.yaml b/.golangci.yaml index d0defe4..11b41b6 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -9,6 +9,7 @@ linters: - varcheck - prealloc - contextcheck + - protogetter presets: - bugs - performance @@ -18,4 +19,4 @@ run: skip-dirs: - .github - charts - - examples \ No newline at end of file + - examples diff --git a/charts/egressd/templates/collector/daemonSet.yaml b/charts/egressd/templates/collector/daemonSet.yaml index 7ccc39b..89dd456 100644 --- a/charts/egressd/templates/collector/daemonSet.yaml +++ b/charts/egressd/templates/collector/daemonSet.yaml @@ -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: diff --git a/charts/egressd/templates/exporter/deployment.yaml b/charts/egressd/templates/exporter/deployment.yaml index 1f4e921..45c2a8e 100644 --- a/charts/egressd/templates/exporter/deployment.yaml +++ b/charts/egressd/templates/exporter/deployment.yaml @@ -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: diff --git a/charts/egressd/values.yaml b/charts/egressd/values.yaml index ff81d04..8c8f387 100644 --- a/charts/egressd/values.yaml +++ b/charts/egressd/values.yaml @@ -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 @@ -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