Skip to content

Commit 07dbbd2

Browse files
authored
Merge pull request #242 from devtron-labs/serviceaccount-clair
misc: added service-account to clair and correct the selectors of clair service
2 parents e269fe6 + 9230e35 commit 07dbbd2

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

charts/clair/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ maintainers:
1212
name: clair
1313
sources:
1414
- https://github.com/coreos/clair
15-
version: 0.1.12
15+
version: 0.1.13

charts/clair/templates/_helpers.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ If release name contains chart name it will be used as a full name.
5656
{{/*
5757
Expand the node selectors, tolerations, and image pull secrets for a Kubernetes resource.
5858
Usage:
59-
{{ include "common.nodeSelector" (dict "nodeSelector" .Values.path.to.nodeSelector "tolerations" .Values.path.to.tolerations "imagePullSecrets" .Values.path.to.imagePullSecrets "global" .Values.global ) }}
59+
{{ include "common.schedulerConfig" (dict "nodeSelector" .Values.path.to.nodeSelector "tolerations" .Values.path.to.tolerations "imagePullSecrets" .Values.path.to.imagePullSecrets "global" .Values.global ) }}
6060
*/}}
6161

62-
{{- define "common.nodeSelector" -}}
62+
{{- define "common.schedulerConfig" -}}
6363
{{- if .nodeSelector }}
6464
nodeSelector:
6565
{{ toYaml .nodeSelector | indent 2 }}

charts/clair/templates/deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ spec:
2424
integration: security
2525
{{ toYaml .Values.labels | indent 8 }}
2626
spec:
27-
{{- include "common.nodeSelector" (dict "nodeSelector" $.Values.nodeSelector "tolerations" $.Values.tolerations "imagePullSecrets" $.Values.imagePullSecrets "global" $.Values.global) | indent 6 }}
27+
{{- include "common.schedulerConfig" (dict "nodeSelector" $.Values.nodeSelector "tolerations" $.Values.tolerations "imagePullSecrets" $.Values.imagePullSecrets "global" $.Values.global) | indent 6 }}
28+
serviceAccountName: devtron-default-sa
2829
volumes:
2930
- name: "{{ .Chart.Name }}-config"
3031
secret:

charts/clair/templates/service.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
heritage: {{ .Release.Service | quote }}
77
release: {{ .Release.Name | quote }}
88
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
9-
app: clair
9+
app: {{ template "clair.fullname" . }}
1010
integration: security
1111
{{ toYaml .Values.labels | indent 4 }}
1212
spec:
@@ -30,6 +30,6 @@ spec:
3030
heritage: {{ .Release.Service | quote }}
3131
release: {{ .Release.Name | quote }}
3232
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}"
33-
app: clair
33+
app: {{ template "clair.fullname" . }}
3434
integration: security
3535
{{ toYaml .Values.labels | indent 4 }}

0 commit comments

Comments
 (0)