From 72c887cbf1cd195b51e6fe4fb8244f3e28ce6062 Mon Sep 17 00:00:00 2001 From: refaelm Date: Sun, 1 Dec 2024 16:25:31 +0200 Subject: [PATCH] * add registry statuses sync path * bump operator and kubevuln version with registry scan changes Signed-off-by: refaelm --- .../templates/synchronizer/configmap.yaml | 6 +++ .../__snapshot__/snapshot_test.yaml.snap | 40 ++++++++++++++----- charts/kubescape-operator/values.yaml | 4 +- 3 files changed, 37 insertions(+), 13 deletions(-) diff --git a/charts/kubescape-operator/templates/synchronizer/configmap.yaml b/charts/kubescape-operator/templates/synchronizer/configmap.yaml index 888ec422..1d8e9b89 100644 --- a/charts/kubescape-operator/templates/synchronizer/configmap.yaml +++ b/charts/kubescape-operator/templates/synchronizer/configmap.yaml @@ -235,6 +235,12 @@ data: "version": "v1", "resource": "runtimealerts", "strategy": "copy" + }, + { + "group": "kubescape.io", + "version": "v1", + "resource": "registrystatuses", + "strategy": "copy" } ] } diff --git a/charts/kubescape-operator/tests/__snapshot__/snapshot_test.yaml.snap b/charts/kubescape-operator/tests/__snapshot__/snapshot_test.yaml.snap index cb118f94..79e63e8b 100644 --- a/charts/kubescape-operator/tests/__snapshot__/snapshot_test.yaml.snap +++ b/charts/kubescape-operator/tests/__snapshot__/snapshot_test.yaml.snap @@ -2390,7 +2390,7 @@ all capabilities: value: https://foo:bar@baz:1234 - name: no_proxy value: gateway,kubescape,kubevuln,node-agent,operator,otel-collector,kubernetes.default.svc.*,127.0.0.1,*.foo,bar.baz - image: quay.io/kubescape/kubevuln:v0.3.38 + image: quay.io/kubescape/kubevuln:v0.3.39 imagePullPolicy: IfNotPresent livenessProbe: httpGet: @@ -3589,7 +3589,7 @@ all capabilities: value: https://foo:bar@baz:1234 - name: no_proxy value: gateway,kubescape,kubevuln,node-agent,operator,otel-collector,kubernetes.default.svc.*,127.0.0.1,*.foo,bar.baz - image: quay.io/kubescape/operator:v0.2.41 + image: quay.io/kubescape/operator:v0.2.49 imagePullPolicy: IfNotPresent livenessProbe: httpGet: @@ -5811,6 +5811,12 @@ all capabilities: "version": "v1", "resource": "runtimealerts", "strategy": "copy" + }, + { + "group": "kubescape.io", + "version": "v1", + "resource": "registrystatuses", + "strategy": "copy" } ] } @@ -5863,7 +5869,7 @@ all capabilities: checksum/cloud-config: e676e6d4282e48cde90d56356ebe417818278b5a260941f00176a2c064b77eb6 checksum/cloud-secret: cf2e73d4ff0ce943730b3ed5bd4740f0bd8c4386e5843870f51c302b41df8da9 checksum/proxy-config: 3669c08e51ef779cd00a107f19592b34195c3ebdb60bedaf8ebf1491a3f2a747 - checksum/synchronizer-configmap: 6e1026a0f06130c035224d09bc50da30b856b675744c7e5fc338161b0c97ad0e + checksum/synchronizer-configmap: 72351a253625f5887122a1f5a75eebf500c08db37faf4c6bda858f92fde0442e labels: app: synchronizer app.kubernetes.io/component: synchronizer @@ -8219,7 +8225,7 @@ default capabilities: name: cloud-secret - name: OTEL_COLLECTOR_SVC value: otel-collector:4318 - image: quay.io/kubescape/kubevuln:v0.3.38 + image: quay.io/kubescape/kubevuln:v0.3.39 imagePullPolicy: IfNotPresent livenessProbe: httpGet: @@ -9178,7 +9184,7 @@ default capabilities: value: zap - name: OTEL_COLLECTOR_SVC value: otel-collector:4318 - image: quay.io/kubescape/operator:v0.2.41 + image: quay.io/kubescape/operator:v0.2.49 imagePullPolicy: IfNotPresent livenessProbe: httpGet: @@ -10951,6 +10957,12 @@ default capabilities: "version": "v1", "resource": "runtimealerts", "strategy": "copy" + }, + { + "group": "kubescape.io", + "version": "v1", + "resource": "registrystatuses", + "strategy": "copy" } ] } @@ -11003,7 +11015,7 @@ default capabilities: checksum/cloud-config: f753b01d880e21ddc33cef3935d2ff4d41d12899432962a5a9b5dfda91d2c8d9 checksum/cloud-secret: cf2e73d4ff0ce943730b3ed5bd4740f0bd8c4386e5843870f51c302b41df8da9 checksum/proxy-config: 3669c08e51ef779cd00a107f19592b34195c3ebdb60bedaf8ebf1491a3f2a747 - checksum/synchronizer-configmap: 1537a1f25d1f82776e34b6b95d79693f3d14ceafea97d3006ca82418732815ed + checksum/synchronizer-configmap: 6848f0dc644037e035b7a09a0009626555e86af0ee21a351f6b921afb4c79dd1 labels: app: synchronizer app.kubernetes.io/component: synchronizer @@ -12838,7 +12850,7 @@ disable otel: name: cloud-secret - name: OTEL_COLLECTOR_SVC value: otel-collector:4318 - image: quay.io/kubescape/kubevuln:v0.3.38 + image: quay.io/kubescape/kubevuln:v0.3.39 imagePullPolicy: IfNotPresent livenessProbe: httpGet: @@ -13610,7 +13622,7 @@ disable otel: value: zap - name: OTEL_COLLECTOR_SVC value: otel-collector:4318 - image: quay.io/kubescape/operator:v0.2.41 + image: quay.io/kubescape/operator:v0.2.49 imagePullPolicy: IfNotPresent livenessProbe: httpGet: @@ -15186,6 +15198,12 @@ disable otel: "version": "v1", "resource": "runtimealerts", "strategy": "copy" + }, + { + "group": "kubescape.io", + "version": "v1", + "resource": "registrystatuses", + "strategy": "copy" } ] } @@ -15237,7 +15255,7 @@ disable otel: annotations: checksum/cloud-config: d568e07a1bb2d6f372ab0e5a3fb91bd018b05433558890eb621af5234dd7c8c4 checksum/cloud-secret: cf2e73d4ff0ce943730b3ed5bd4740f0bd8c4386e5843870f51c302b41df8da9 - checksum/synchronizer-configmap: 1537a1f25d1f82776e34b6b95d79693f3d14ceafea97d3006ca82418732815ed + checksum/synchronizer-configmap: 6848f0dc644037e035b7a09a0009626555e86af0ee21a351f6b921afb4c79dd1 labels: app: synchronizer app.kubernetes.io/component: synchronizer @@ -16381,7 +16399,7 @@ minimal capabilities: name: cloud-secret - name: OTEL_COLLECTOR_SVC value: otel-collector:4318 - image: quay.io/kubescape/kubevuln:v0.3.38 + image: quay.io/kubescape/kubevuln:v0.3.39 imagePullPolicy: IfNotPresent livenessProbe: httpGet: @@ -17147,7 +17165,7 @@ minimal capabilities: value: zap - name: OTEL_COLLECTOR_SVC value: otel-collector:4318 - image: quay.io/kubescape/operator:v0.2.41 + image: quay.io/kubescape/operator:v0.2.49 imagePullPolicy: IfNotPresent livenessProbe: httpGet: diff --git a/charts/kubescape-operator/values.yaml b/charts/kubescape-operator/values.yaml index cacde209..03fb1e64 100644 --- a/charts/kubescape-operator/values.yaml +++ b/charts/kubescape-operator/values.yaml @@ -274,7 +274,7 @@ operator: image: # -- source code: https://github.com/kubescape/operator repository: quay.io/kubescape/operator - tag: v0.2.41 + tag: v0.2.49 pullPolicy: IfNotPresent service: @@ -319,7 +319,7 @@ kubevuln: image: # -- source code: https://github.com/kubescape/kubevuln repository: quay.io/kubescape/kubevuln - tag: v0.3.38 + tag: v0.3.39 pullPolicy: IfNotPresent replicaCount: 1