Skip to content

Commit

Permalink
UD-1423: Update charts to use the floating tags
Browse files Browse the repository at this point in the history
  • Loading branch information
knrc committed May 7, 2024
1 parent dcfa8b8 commit 8e36380
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 8 deletions.
7 changes: 5 additions & 2 deletions charts/zora/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,16 @@ The following table lists the configurable parameters of the Zora chart and thei
| scan.plugins.marvin.podAnnotations | object | `{}` | Annotations added to the marvin pods |
| scan.plugins.marvin.image.repository | string | `"ghcr.io/undistro/marvin"` | marvin plugin image repository |
| scan.plugins.marvin.image.tag | string | `"v0.2.3"` | marvin plugin image tag |
| scan.plugins.marvin.image.pullPolicy | string | `"IfNotPresent"` | Image pull policy |
| scan.plugins.marvin.env | list | `[]` | List of environment variables to set in marvin container. |
| scan.plugins.marvin.envFrom | list | `[]` | List of sources to populate environment variables in marvin container. |
| scan.plugins.trivy.ignoreUnfixed | bool | `false` | Specifies whether only fixed vulnerabilities should be reported |
| scan.plugins.trivy.ignoreDescriptions | bool | `false` | Specifies whether vulnerability descriptions should be ignored |
| scan.plugins.trivy.resources | object | `{}` | [Resources](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers) to add to `trivy` container |
| scan.plugins.trivy.podAnnotations | object | `{}` | Annotations added to the trivy pods |
| scan.plugins.trivy.image.repository | string | `"ghcr.io/undistro/trivy"` | trivy plugin image repository |
| scan.plugins.trivy.image.tag | string | `"0.50.1-1"` | trivy plugin image tag |
| scan.plugins.trivy.image.tag | float | `0.51` | trivy plugin image tag |
| scan.plugins.trivy.image.pullPolicy | string | `"Always"` | Image pull policy |
| scan.plugins.trivy.env | list | `[]` | List of environment variables to set in trivy container. |
| scan.plugins.trivy.envFrom | list | `[]` | List of sources to populate environment variables in trivy container. |
| scan.plugins.trivy.timeout | string | `"10m"` | Trivy timeout |
Expand All @@ -129,7 +131,8 @@ The following table lists the configurable parameters of the Zora chart and thei
| scan.plugins.popeye.resources | object | `{"limits":{"cpu":"500m","memory":"500Mi"},"requests":{"cpu":"250m","memory":"256Mi"}}` | [Resources](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers) to add to `popeye` container |
| scan.plugins.popeye.podAnnotations | object | `{}` | Annotations added to the popeye pods |
| scan.plugins.popeye.image.repository | string | `"ghcr.io/undistro/popeye"` | popeye plugin image repository |
| scan.plugins.popeye.image.tag | string | `"0.21.3-6"` | popeye plugin image tag |
| scan.plugins.popeye.image.tag | float | `0.21` | popeye plugin image tag |
| scan.plugins.popeye.image.pullPolicy | string | `"Always"` | Image pull policy |
| scan.plugins.popeye.env | list | `[]` | List of environment variables to set in popeye container. |
| scan.plugins.popeye.envFrom | list | `[]` | List of sources to populate environment variables in popeye container. |
| kubexnsImage.repository | string | `"ghcr.io/undistro/kubexns"` | kubexns image repository |
Expand Down
3 changes: 3 additions & 0 deletions charts/zora/templates/plugins/marvin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ metadata:
spec:
type: misconfiguration
image: "{{ .Values.scan.plugins.marvin.image.repository }}:{{ .Values.scan.plugins.marvin.image.tag }}"
{{- if .Values.scan.plugins.marvin.image.pullPolicy }}
imagePullPolicy: "{{ .Values.scan.plugins.marvin.image.pullPolicy }}"
{{- end }}
{{- if .Values.scan.plugins.marvin.resources }}
resources:
{{- toYaml .Values.scan.plugins.marvin.resources | nindent 4 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/zora/templates/plugins/popeye.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ metadata:
spec:
type: misconfiguration
image: "{{ .Values.scan.plugins.popeye.image.repository }}:{{ .Values.scan.plugins.popeye.image.tag }}"
{{- if .Values.scan.plugins.popeye.image.pullPolicy }}
imagePullPolicy: "{{ .Values.scan.plugins.popeye.image.pullPolicy }}"
{{- end }}
{{- if .Values.scan.plugins.popeye.resources }}
resources:
{{- toYaml .Values.scan.plugins.popeye.resources | nindent 4 }}
Expand Down
7 changes: 4 additions & 3 deletions charts/zora/templates/plugins/trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ metadata:
spec:
type: vulnerability
image: "{{ .Values.scan.plugins.trivy.image.repository }}:{{ .Values.scan.plugins.trivy.image.tag }}"
{{- if .Values.scan.plugins.trivy.image.pullPolicy }}
imagePullPolicy: "{{ .Values.scan.plugins.trivy.image.pullPolicy }}"
{{- end }}
{{- if .Values.scan.plugins.trivy.resources }}
resources:
{{- toYaml .Values.scan.plugins.trivy.resources | nindent 4 }}
Expand Down Expand Up @@ -58,7 +61,6 @@ spec:
time trivy k8s \
--debug \
--no-progress \
--all-namespaces \
--scanners=vuln \
-f=json \
--cache-dir=/tmp/trivy-cache \
Expand All @@ -69,8 +71,7 @@ spec:
--ignore-unfixed \
{{- end }}
--timeout={{ .Values.scan.plugins.trivy.timeout | quote }} \
-o $(DONE_DIR)/results.json \
cluster
-o $(DONE_DIR)/results.json
exitcode=$(echo $?)
if [ $exitcode -ne 0 ]; then
Expand Down
12 changes: 9 additions & 3 deletions charts/zora/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ scan:
repository: ghcr.io/undistro/marvin
# -- marvin plugin image tag
tag: v0.2.3
# -- Image pull policy
pullPolicy: IfNotPresent
# -- List of environment variables to set in marvin container.
env: []
# -- List of sources to populate environment variables in marvin container.
Expand All @@ -209,7 +211,9 @@ scan:
# -- trivy plugin image repository
repository: ghcr.io/undistro/trivy
# -- trivy plugin image tag
tag: 0.50.1-1
tag: 0.51
# -- Image pull policy
pullPolicy: Always
# -- List of environment variables to set in trivy container.
env: []
# - name: AWS_REGION
Expand Down Expand Up @@ -266,7 +270,9 @@ scan:
# -- popeye plugin image repository
repository: ghcr.io/undistro/popeye
# -- popeye plugin image tag
tag: 0.21.3-6
tag: 0.21
# -- Image pull policy
pullPolicy: Always
# -- List of environment variables to set in popeye container.
env: []
# -- List of sources to populate environment variables in popeye container.
Expand All @@ -288,4 +294,4 @@ noProxy: kubernetes.default.svc.*,127.0.0.1,localhost

# -- (bool) Specifies whether CRDs should be updated by operator at startup
# @default -- `true` for upgrades
updateCRDs:
updateCRDs:

0 comments on commit 8e36380

Please sign in to comment.