From 79a1bd9d7dcd5eef53d8d2a51a74582f6d49b0d1 Mon Sep 17 00:00:00 2001 From: Christian Kotzbauer Date: Thu, 20 Jan 2022 12:18:17 +0100 Subject: [PATCH] fix: add args and missing mounts Signed-off-by: Christian Kotzbauer --- charts/sbom-operator/Chart.yaml | 2 +- charts/sbom-operator/README.md | 1 + charts/sbom-operator/templates/deployment.yaml | 10 ++++++++++ charts/sbom-operator/values.yaml | 2 ++ 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/charts/sbom-operator/Chart.yaml b/charts/sbom-operator/Chart.yaml index 14cbc9b..1acacaa 100644 --- a/charts/sbom-operator/Chart.yaml +++ b/charts/sbom-operator/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 description: Catalogue all images of a Kubernetes cluster to Git with Syft name: sbom-operator -version: 0.1.0 +version: 0.1.1 appVersion: 0.1.0 home: https://github.com/ckotzbauer/sbom-operator sources: diff --git a/charts/sbom-operator/README.md b/charts/sbom-operator/README.md index 12cbfd3..097910f 100644 --- a/charts/sbom-operator/README.md +++ b/charts/sbom-operator/README.md @@ -33,6 +33,7 @@ The following table lists the configurable parameters of the sbom-operator chart | `image.repository` | container image repository | `ghcr.io/ckotzbauer/sbom-operator` | | `image.tag` | container image tag | `0.1.0` | | `image.pullPolicy` | container image pull policy | `IfNotPresent` | +| `args` | argument object for cli-args | `{}` | | `nodeSelector` | node labels for pod assignment | `{}` | | `tolerations` | node tolerations for pod assignment | `[]` | | `affinity` | node affinity for pod assignment | `{}` | diff --git a/charts/sbom-operator/templates/deployment.yaml b/charts/sbom-operator/templates/deployment.yaml index c141f5d..27f1f4a 100644 --- a/charts/sbom-operator/templates/deployment.yaml +++ b/charts/sbom-operator/templates/deployment.yaml @@ -38,6 +38,16 @@ spec: {{ toYaml .Values.securityContext | indent 12 }} resources: {{ toYaml .Values.resources | indent 12 }} + volumeMounts: + - mountPath: /work + name: work + - mountPath: /tmp + name: tmp + volumes: + - name: work + emptyDir: {} + - name: tmp + emptyDir: {} {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | indent 8 }} diff --git a/charts/sbom-operator/values.yaml b/charts/sbom-operator/values.yaml index f0d9e6c..226ff0a 100644 --- a/charts/sbom-operator/values.yaml +++ b/charts/sbom-operator/values.yaml @@ -7,6 +7,8 @@ image: tag: 0.1.0 pullPolicy: IfNotPresent +args: {} + podAnnotations: {} resources: {}