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

More helm chart fixes #8

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
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
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
images/trivy-scan-*
pool/
trivy-reports/
helm-charts/
2 changes: 1 addition & 1 deletion helm-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ apiVersion: v2
name: trivy-runner
description: A Helm chart for trivy runner
type: application
version: 0.1.2
version: 0.2.1
appVersion: 1.0.1
6 changes: 1 addition & 5 deletions helm-chart/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Errbit variables. For now we reuse main Rails app Errbit keys
{{- end -}}

{{- define "trivy-runner.scanworkerEnv" -}}
{{- if .Values.scanworker.pushToCatalog }}
{{- if .Values.pushworker.enabled }}
- name: PUSH_TO_CATALOG
value: "true"
{{- end }}
Expand Down Expand Up @@ -128,10 +128,6 @@ Errbit variables. For now we reuse main Rails app Errbit keys

- name: REPORTS_APP_DIR
value: /pool/reports
{{- if .Values.pushworker.enabled }}
- name: PUSH_TO_CATALOG
value: "1"
{{- end }}
{{- end -}}

{{/*
Expand Down
2 changes: 1 addition & 1 deletion helm-chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ metadata:
{{- include "trivy-runner.selectorLabels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicas }}
serviceAccountName: {{ include "trivy-runner.serviceAccountName" . }}
strategy:
type: Recreate
selector:
Expand All @@ -19,6 +18,7 @@ spec:
labels:
{{- include "trivy-runner.selectorLabels" . | nindent 8 }}
spec:
serviceAccountName: {{ include "trivy-runner.serviceAccountName" . }}
securityContext:
fsGroup: 1000
runAsUser: 1000
Expand Down
4 changes: 4 additions & 0 deletions helm-chart/templates/extra-objects.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{{ range .Values.extraObjects }}
---
{{ tpl (toYaml .) $ }}
{{ end }}
19 changes: 10 additions & 9 deletions helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ image:
pullPolicy: Always
registry: registry.opensuse.org
repository: systemsmanagement/scc/containers/containers/scc/trivy-runner
tag: v1.0
tag: "1.0"

serviceAccount:
create: true
Expand Down Expand Up @@ -60,7 +60,7 @@ redis:
resources:
limits:
cpu: 120m
memory: 256M
memory: 128M
requests:
cpu: 100m
memory: 128M
Expand All @@ -69,7 +69,7 @@ getsizeworker:
resources:
limits:
cpu: 120m
memory: 512M
memory: 256M
requests:
cpu: 100m
memory: 64M
Expand All @@ -78,7 +78,7 @@ pullworker:
resources:
limits:
cpu: 120m
memory: 512M
memory: 256M
requests:
cpu: 100m
memory: 64M
Expand All @@ -95,7 +95,6 @@ pushworker:
memory: 32M

scanworker:
pushToCatalog: false
scanParallelism: 0 # autodetect
scanTimeout: "5m"

Expand All @@ -111,16 +110,18 @@ webapi:
resources:
limits:
cpu: 120m
memory: 256M
memory: 128M
requests:
cpu: 100m
memory: 128M
memory: 32M

redisexporter:
resources:
limits:
cpu: 120m
memory: 256M
memory: 128M
requests:
cpu: 100m
memory: 128M
memory: 64M

extraObjects: []
Loading