Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add missing service account to jobs #505

Merged
merged 2 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ apiVersion: batch/v1
{{ toYaml .Values.kubescapeScheduler.volumeMounts | indent 18 }}
{{- end }}
restartPolicy: Never
serviceAccountName: {{ .Values.kubescape.name }}
automountServiceAccountToken: false
nodeSelector:
{{- if .Values.kubescapeScheduler.nodeSelector }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ apiVersion: batch/v1
{{ toYaml .Values.kubevulnScheduler.volumeMounts | indent 18 }}
{{- end }}
restartPolicy: Never
serviceAccountName: {{ .Values.kubevuln.name }}
automountServiceAccountToken: false
nodeSelector:
{{- if .Values.kubevulnScheduler.nodeSelector }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ apiVersion: batch/v1
{{ toYaml .Values.registryScanScheduler.volumeMounts | indent 18 }}
{{- end }}
restartPolicy: Never
serviceAccountName: {{ .Values.kubevuln.name }}
automountServiceAccountToken: false
nodeSelector:
{{- if .Values.registryScanScheduler.nodeSelector }}
Expand Down
3 changes: 1 addition & 2 deletions charts/kubescape-operator/templates/storage/apiservice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ metadata:
labels:
{{- include "kubescape-operator.labels" (dict "Chart" .Chart "Release" .Release "Values" .Values "app" .Values.storage.name "tier" .Values.global.namespaceTier) | nindent 4 }}
spec:
insecureSkipTLSVerify: false
caBundle: {{ .Values.global.kubescapeCa | b64enc }}
insecureSkipTLSVerify: true
group: "spdx.softwarecomposition.kubescape.io"
groupPriorityMinimum: 1000
versionPriority: 15
Expand Down
12 changes: 0 additions & 12 deletions charts/kubescape-operator/templates/storage/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ spec:
tcpSocket:
port: 8443
env:
- name: TLS_SERVER_CERT_FILE
value: "/etc/tls/tls.crt"
- name: TLS_SERVER_KEY_FILE
value: "/etc/tls/tls.key"
- name: TLS_CLIENT_CA_FILE
value: "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
- name: "CLEANUP_INTERVAL"
value: "{{ .Values.storage.cleanupInterval }}"
- name: GOMEMLIMIT
Expand Down Expand Up @@ -84,9 +78,6 @@ spec:
- name: {{ .Values.global.cloudConfig }}
mountPath: /etc/config
readOnly: true
- name: "tls"
mountPath: "/etc/tls"
readOnly: true
resources:
{{ toYaml .Values.storage.resources | indent 12 }}
nodeSelector:
Expand Down Expand Up @@ -125,7 +116,4 @@ spec:
- key: "services"
path: "services.json"
{{- end }}
- name: "tls"
secret:
secretName: {{ .Values.storage.name }}
{{- end }}
27 changes: 0 additions & 27 deletions charts/kubescape-operator/templates/storage/tlscertkey.yaml

This file was deleted.

Loading
Loading