Skip to content

Commit 7d367b6

Browse files
committed
UD-1955: Update trivy support to 0.57
Signed-off-by: Kevin Conner <kev.conner@getupcloud.com>
1 parent c52ba78 commit 7d367b6

22 files changed

+1596
-632
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ YQ ?= $(LOCALBIN)/yq-$(YQ_VERSION)
226226

227227
## Tool Versions
228228
KUSTOMIZE_VERSION ?= v5.3.0
229-
CONTROLLER_TOOLS_VERSION ?= v0.14.0
229+
CONTROLLER_TOOLS_VERSION ?= v0.16.5
230230
ENVTEST_VERSION ?= release-0.17
231231
GOLANGCI_LINT_VERSION ?= v1.54.2
232232
HELM_DOCS_VERSION ?= v1.13.1

charts/zora/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ The following table lists the configurable parameters of the Zora chart and thei
117117
| scan.plugins.trivy.resources | object | `{"limits":{"cpu":"1500m","memory":"4096Mi"},"requests":{"cpu":"500m","memory":"2048Mi"}}` | [Resources](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers) to add to `trivy` container |
118118
| scan.plugins.trivy.podAnnotations | object | `{}` | Annotations added to the trivy pods |
119119
| scan.plugins.trivy.image.repository | string | `"ghcr.io/undistro/trivy"` | trivy plugin image repository |
120-
| scan.plugins.trivy.image.tag | float | `0.53` | trivy plugin image tag |
120+
| scan.plugins.trivy.image.tag | float | `0.57` | trivy plugin image tag |
121121
| scan.plugins.trivy.image.pullPolicy | string | `"Always"` | Image pull policy |
122122
| scan.plugins.trivy.env | list | `[]` | List of environment variables to set in trivy container. |
123123
| scan.plugins.trivy.envFrom | list | `[]` | List of sources to populate environment variables in trivy container. |

charts/zora/crds/zora.undistro.io_clusterissues.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ apiVersion: apiextensions.k8s.io/v1
1717
kind: CustomResourceDefinition
1818
metadata:
1919
annotations:
20-
controller-gen.kubebuilder.io/version: v0.14.0
20+
controller-gen.kubebuilder.io/version: v0.16.5
2121
name: clusterissues.zora.undistro.io
2222
spec:
2323
group: zora.undistro.io

charts/zora/crds/zora.undistro.io_clusters.yaml

+4-19
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ apiVersion: apiextensions.k8s.io/v1
1717
kind: CustomResourceDefinition
1818
metadata:
1919
annotations:
20-
controller-gen.kubebuilder.io/version: v0.14.0
20+
controller-gen.kubebuilder.io/version: v0.16.5
2121
name: clusters.zora.undistro.io
2222
spec:
2323
group: zora.undistro.io
@@ -97,9 +97,7 @@ spec:
9797
This field is effectively required, but due to backwards compatibility is
9898
allowed to be empty. Instances of this type with an empty value here are
9999
almost certainly wrong.
100-
TODO: Add other useful fields. apiVersion, kind, uid?
101100
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
102-
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
103101
type: string
104102
type: object
105103
x-kubernetes-map-type: atomic
@@ -111,16 +109,8 @@ spec:
111109
description: Conditions the latest available observations of a resource's
112110
current state.
113111
items:
114-
description: "Condition contains details for one aspect of the current
115-
state of this API Resource.\n---\nThis struct is intended for
116-
direct use as an array at the field path .status.conditions. For
117-
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
118-
observations of a foo's current state.\n\t // Known .status.conditions.type
119-
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
120-
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
121-
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
122-
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
123-
\ // other fields\n\t}"
112+
description: Condition contains details for one aspect of the current
113+
state of this API Resource.
124114
properties:
125115
lastTransitionTime:
126116
description: |-
@@ -161,12 +151,7 @@ spec:
161151
- Unknown
162152
type: string
163153
type:
164-
description: |-
165-
type of condition in CamelCase or in foo.example.com/CamelCase.
166-
---
167-
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
168-
useful (see .node.status.conditions), the ability to deconflict is important.
169-
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
154+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
170155
maxLength: 316
171156
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
172157
type: string

charts/zora/crds/zora.undistro.io_clusterscans.yaml

+4-23
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ apiVersion: apiextensions.k8s.io/v1
1717
kind: CustomResourceDefinition
1818
metadata:
1919
annotations:
20-
controller-gen.kubebuilder.io/version: v0.14.0
20+
controller-gen.kubebuilder.io/version: v0.16.5
2121
name: clusterscans.zora.undistro.io
2222
spec:
2323
group: zora.undistro.io
@@ -102,9 +102,7 @@ spec:
102102
This field is effectively required, but due to backwards compatibility is
103103
allowed to be empty. Instances of this type with an empty value here are
104104
almost certainly wrong.
105-
TODO: Add other useful fields. apiVersion, kind, uid?
106105
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
107-
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
108106
type: string
109107
type: object
110108
x-kubernetes-map-type: atomic
@@ -161,9 +159,7 @@ spec:
161159
This field is effectively required, but due to backwards compatibility is
162160
allowed to be empty. Instances of this type with an empty value here are
163161
almost certainly wrong.
164-
TODO: Add other useful fields. apiVersion, kind, uid?
165162
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
166-
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
167163
type: string
168164
optional:
169165
description: Specify whether the ConfigMap or
@@ -229,9 +225,7 @@ spec:
229225
This field is effectively required, but due to backwards compatibility is
230226
allowed to be empty. Instances of this type with an empty value here are
231227
almost certainly wrong.
232-
TODO: Add other useful fields. apiVersion, kind, uid?
233228
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
234-
TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896.
235229
type: string
236230
optional:
237231
description: Specify whether the Secret or its
@@ -285,16 +279,8 @@ spec:
285279
description: Conditions the latest available observations of a resource's
286280
current state.
287281
items:
288-
description: "Condition contains details for one aspect of the current
289-
state of this API Resource.\n---\nThis struct is intended for
290-
direct use as an array at the field path .status.conditions. For
291-
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
292-
observations of a foo's current state.\n\t // Known .status.conditions.type
293-
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
294-
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
295-
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
296-
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
297-
\ // other fields\n\t}"
282+
description: Condition contains details for one aspect of the current
283+
state of this API Resource.
298284
properties:
299285
lastTransitionTime:
300286
description: |-
@@ -335,12 +321,7 @@ spec:
335321
- Unknown
336322
type: string
337323
type:
338-
description: |-
339-
type of condition in CamelCase or in foo.example.com/CamelCase.
340-
---
341-
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
342-
useful (see .node.status.conditions), the ability to deconflict is important.
343-
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
324+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
344325
maxLength: 316
345326
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
346327
type: string

charts/zora/crds/zora.undistro.io_customchecks.yaml

+7-33
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ apiVersion: apiextensions.k8s.io/v1
1717
kind: CustomResourceDefinition
1818
metadata:
1919
annotations:
20-
controller-gen.kubebuilder.io/version: v0.14.0
20+
controller-gen.kubebuilder.io/version: v0.16.5
2121
name: customchecks.zora.undistro.io
2222
spec:
2323
group: zora.undistro.io
@@ -125,16 +125,8 @@ spec:
125125
description: Conditions the latest available observations of a resource's
126126
current state.
127127
items:
128-
description: "Condition contains details for one aspect of the current
129-
state of this API Resource.\n---\nThis struct is intended for
130-
direct use as an array at the field path .status.conditions. For
131-
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
132-
observations of a foo's current state.\n\t // Known .status.conditions.type
133-
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
134-
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
135-
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
136-
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
137-
\ // other fields\n\t}"
128+
description: Condition contains details for one aspect of the current
129+
state of this API Resource.
138130
properties:
139131
lastTransitionTime:
140132
description: |-
@@ -175,12 +167,7 @@ spec:
175167
- Unknown
176168
type: string
177169
type:
178-
description: |-
179-
type of condition in CamelCase or in foo.example.com/CamelCase.
180-
---
181-
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
182-
useful (see .node.status.conditions), the ability to deconflict is important.
183-
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
170+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
184171
maxLength: 316
185172
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
186173
type: string
@@ -310,16 +297,8 @@ spec:
310297
description: Conditions the latest available observations of a resource's
311298
current state.
312299
items:
313-
description: "Condition contains details for one aspect of the current
314-
state of this API Resource.\n---\nThis struct is intended for
315-
direct use as an array at the field path .status.conditions. For
316-
example,\n\n\n\ttype FooStatus struct{\n\t // Represents the
317-
observations of a foo's current state.\n\t // Known .status.conditions.type
318-
are: \"Available\", \"Progressing\", and \"Degraded\"\n\t //
319-
+patchMergeKey=type\n\t // +patchStrategy=merge\n\t // +listType=map\n\t
320-
\ // +listMapKey=type\n\t Conditions []metav1.Condition `json:\"conditions,omitempty\"
321-
patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"`\n\n\n\t
322-
\ // other fields\n\t}"
300+
description: Condition contains details for one aspect of the current
301+
state of this API Resource.
323302
properties:
324303
lastTransitionTime:
325304
description: |-
@@ -360,12 +339,7 @@ spec:
360339
- Unknown
361340
type: string
362341
type:
363-
description: |-
364-
type of condition in CamelCase or in foo.example.com/CamelCase.
365-
---
366-
Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be
367-
useful (see .node.status.conditions), the ability to deconflict is important.
368-
The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
342+
description: type of condition in CamelCase or in foo.example.com/CamelCase.
369343
maxLength: 316
370344
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
371345
type: string

0 commit comments

Comments
 (0)