feat: add sbom-operator job-image feature
Signed-off-by: Christian Kotzbauer <git@ckotzbauer.de>
This commit is contained in:
parent
7822aa3ed3
commit
4f4ea6d4cd
|
|
@ -1,7 +1,7 @@
|
||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
description: Catalogue all images of a Kubernetes cluster to multiple targets with Syft
|
description: Catalogue all images of a Kubernetes cluster to multiple targets with Syft
|
||||||
name: sbom-operator
|
name: sbom-operator
|
||||||
version: 0.9.0
|
version: 0.9.1
|
||||||
appVersion: 0.9.0
|
appVersion: 0.9.0
|
||||||
home: https://github.com/ckotzbauer/sbom-operator
|
home: https://github.com/ckotzbauer/sbom-operator
|
||||||
sources:
|
sources:
|
||||||
|
|
|
||||||
|
|
@ -41,8 +41,9 @@ The following table lists the configurable parameters of the sbom-operator chart
|
||||||
| `podAnnotations` | annotations to add to each pod | `{}` |
|
| `podAnnotations` | annotations to add to each pod | `{}` |
|
||||||
| `resources` | pod resource requests & limits | See [values.yaml](values.yaml) |
|
| `resources` | pod resource requests & limits | See [values.yaml](values.yaml) |
|
||||||
| `securityContext` | container securityContext | See [values.yaml](values.yaml) |
|
| `securityContext` | container securityContext | See [values.yaml](values.yaml) |
|
||||||
| `serviceAccount.create` | Should we create a ServiceAccount | `true` |
|
| `serviceAccount.create` | Should we create a ServiceAccount | `true` |
|
||||||
| `serviceAccount.name` | Name of the ServiceAccount to use | null |
|
| `serviceAccount.name` | Name of the ServiceAccount to use | null |
|
||||||
|
| `jobImageMode` | Whether or not a job-image is used. | `false` |
|
||||||
|
|
||||||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
|
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,3 +25,21 @@ rules:
|
||||||
verbs:
|
verbs:
|
||||||
- get
|
- get
|
||||||
- update
|
- update
|
||||||
|
{{- if .Values.jobImageMode }}
|
||||||
|
- apiGroups:
|
||||||
|
- ""
|
||||||
|
resources:
|
||||||
|
- secrets
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- create
|
||||||
|
- delete
|
||||||
|
- apiGroups:
|
||||||
|
- batch
|
||||||
|
resources:
|
||||||
|
- jobs
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- create
|
||||||
|
- delete
|
||||||
|
{{- end }}
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,20 @@ spec:
|
||||||
{{- if .Values.envVars }}
|
{{- if .Values.envVars }}
|
||||||
{{ toYaml .Values.envVars | nindent 12 }}
|
{{ toYaml .Values.envVars | nindent 12 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.jobImageMode }}
|
||||||
|
- name: POD_NAMESPACE
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.namespace
|
||||||
|
- name: POD_NAME
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.name
|
||||||
|
- name: POD_UID
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: metadata.uid
|
||||||
|
{{- end }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{ toYaml .Values.securityContext | indent 12 }}
|
{{ toYaml .Values.securityContext | indent 12 }}
|
||||||
resources:
|
resources:
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,8 @@ envVars: {}
|
||||||
|
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
|
|
||||||
|
jobImageMode: false
|
||||||
|
|
||||||
resources: {}
|
resources: {}
|
||||||
# requests:
|
# requests:
|
||||||
# cpu: 500m
|
# cpu: 500m
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue