From 96a6913a0f9c0471755f555f4fcc32f818c19c2c Mon Sep 17 00:00:00 2001 From: Matthias Bertschy Date: Tue, 3 Sep 2024 08:21:23 +0200 Subject: [PATCH] add quotes to podScanGuardTime value Signed-off-by: Matthias Bertschy --- .../templates/operator/configmap.yaml | 2 +- .../tests/__snapshot__/snapshot_test.yaml.snap | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/charts/kubescape-operator/templates/operator/configmap.yaml b/charts/kubescape-operator/templates/operator/configmap.yaml index 9be238fa..03bc8e58 100644 --- a/charts/kubescape-operator/templates/operator/configmap.yaml +++ b/charts/kubescape-operator/templates/operator/configmap.yaml @@ -18,7 +18,7 @@ data: {{- end }} "namespace": "{{ .Values.ksNamespace }}", "triggersecurityframework": {{ .Values.operator.triggerSecurityFramework }}, - "podScanGuardTime": {{ .Values.operator.podScanGuardTime }}, + "podScanGuardTime": "{{ .Values.operator.podScanGuardTime }}", "httpExporterConfig": {{- .Values.nodeAgent.config.httpExporterConfig | toJson }} } {{- end }} diff --git a/charts/kubescape-operator/tests/__snapshot__/snapshot_test.yaml.snap b/charts/kubescape-operator/tests/__snapshot__/snapshot_test.yaml.snap index 46d0b1f6..56b5419c 100644 --- a/charts/kubescape-operator/tests/__snapshot__/snapshot_test.yaml.snap +++ b/charts/kubescape-operator/tests/__snapshot__/snapshot_test.yaml.snap @@ -3371,7 +3371,7 @@ all capabilities: "includeNamespaces": "my-namespace", "namespace": "kubescape", "triggersecurityframework": true, - "podScanGuardTime": 1h, + "podScanGuardTime": "1h", "httpExporterConfig":{"maxAlertsPerMinute":1000,"method":"POST","url":"http://synchronizer:8089/apis/v1/kubescape.io"} } kind: ConfigMap @@ -3425,7 +3425,7 @@ all capabilities: checksum/capabilities-config: fa7190c082c2d56351544e0f8c01b51a8986a9a93c341d92e5025a007e6a85f3 checksum/cloud-config: 79c8c87b639c9496583eb2c66b206d712653da0eaf776f7c8dc644174bf69dd2 checksum/cloud-secret: c39d26ecee499ee553fa0767c28f78da239d6a16470ba63e162a3b362fb1eded - checksum/operator-config: 941a1c448721748a119b0575ffaeb437f28c2b3c52824401d10531802935ca08 + checksum/operator-config: 0a5e963cbebdcd95461d37d31afa001ff552998d960cf44082f8f2ec49e9e2d0 checksum/proxy-config: c367ddb7695a9b6eb5e90566e3887b7420f49c4585a76d1fa698153f7d3f9922 labels: app: operator @@ -8657,7 +8657,7 @@ default capabilities: "excludeNamespaces": "kubescape,kube-system,kube-public,kube-node-lease,kubeconfig,gmp-system,gmp-public", "namespace": "kubescape", "triggersecurityframework": true, - "podScanGuardTime": 1h, + "podScanGuardTime": "1h", "httpExporterConfig":{"maxAlertsPerMinute":1000,"method":"POST","url":"http://synchronizer:8089/apis/v1/kubescape.io"} } kind: ConfigMap @@ -8711,7 +8711,7 @@ default capabilities: checksum/capabilities-config: 49ca00a3af0f578270312ad273728cf954a4c7cc16ff73923502e90b06c07bb2 checksum/cloud-config: 3d7a9c54ae3d9944f5964ba5cc76956dd1f3c575dd012dea33197e1c29e2a8f0 checksum/cloud-secret: c39d26ecee499ee553fa0767c28f78da239d6a16470ba63e162a3b362fb1eded - checksum/operator-config: 91d7a3cf22c5a268133e48009ef1bd948f0ecc2cbb93cb34fe838999c26062ab + checksum/operator-config: 18b26e2ef007d33b21485f316e42e67d92dc59fa9305e028631af77b63e87883 checksum/proxy-config: c367ddb7695a9b6eb5e90566e3887b7420f49c4585a76d1fa698153f7d3f9922 labels: app: operator @@ -12916,7 +12916,7 @@ disable otel: "excludeNamespaces": "kubescape,kube-system,kube-public,kube-node-lease,kubeconfig,gmp-system,gmp-public", "namespace": "kubescape", "triggersecurityframework": true, - "podScanGuardTime": 1h, + "podScanGuardTime": "1h", "httpExporterConfig":{"maxAlertsPerMinute":1000,"method":"POST","url":"http://synchronizer:8089/apis/v1/kubescape.io"} } kind: ConfigMap @@ -12970,7 +12970,7 @@ disable otel: checksum/capabilities-config: 85ad1b1222650aa270e4da754e2bcc4e7fe10e09162d71767f750e80ec8e01d7 checksum/cloud-config: 08f3c6a31ec6c201d577ca1c199ffd49b36c830037185a053f4256df303c589b checksum/cloud-secret: c39d26ecee499ee553fa0767c28f78da239d6a16470ba63e162a3b362fb1eded - checksum/operator-config: 91d7a3cf22c5a268133e48009ef1bd948f0ecc2cbb93cb34fe838999c26062ab + checksum/operator-config: 18b26e2ef007d33b21485f316e42e67d92dc59fa9305e028631af77b63e87883 labels: app: operator app.kubernetes.io/component: operator @@ -16319,7 +16319,7 @@ minimal capabilities: { "namespace": "kubescape", "triggersecurityframework": true, - "podScanGuardTime": 1h, + "podScanGuardTime": "1h", "httpExporterConfig":{"maxAlertsPerMinute":1000,"method":"POST","url":"http://synchronizer:8089/apis/v1/kubescape.io"} } kind: ConfigMap @@ -16373,7 +16373,7 @@ minimal capabilities: checksum/capabilities-config: a54cb7cc8db539022f3d26eaa888dd7c3931400af821b7ac5eee74dd43b8dc7c checksum/cloud-config: 8fdd753c2f8400f44bca96445b3a414eef8ff68868c4b4ed9f95666adeb123a0 checksum/cloud-secret: 6c555ef5c4f236fb2752b49016bd78c9ea8c61d934271ae76e89759f7eb1a9dc - checksum/operator-config: 414000dffe29e37438248dcc8468f73c43647036018a9859dfd4600624bd39b4 + checksum/operator-config: 3873e951725776a685ab18d887e79da35e2586a427ad626d3bd0a7c30e464b88 labels: app: operator app.kubernetes.io/component: operator