Skip to content

Commit 09c0c71

Browse files
fix(cluster-scanner): corrected onPremCompatibilityVersion to 7.0.0 (#1466)
1 parent 5acd9d0 commit 09c0c71

File tree

5 files changed

+18
-18
lines changed

5 files changed

+18
-18
lines changed

charts/cluster-scanner/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Sysdig Cluster Scanner
44

55
type: application
66

7-
version: 0.8.2
7+
version: 0.8.3
88

99
appVersion: "0.1.0"
1010
home: https://www.sysdig.com/

charts/cluster-scanner/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $ pre-commit run -a
2525
$ helm repo add sysdig https://charts.sysdig.com
2626
$ helm repo update
2727
$ helm upgrade --install sysdig-cluster-scanner sysdig/cluster-scanner \
28-
--create-namespace -n sysdig --version=0.8.2 \
28+
--create-namespace -n sysdig --version=0.8.3 \
2929
--set global.clusterConfig.name=CLUSTER_NAME \
3030
--set global.sysdig.region=SYSDIG_REGION \
3131
--set global.sysdig.accessKey=YOUR-KEY-HERE
@@ -55,7 +55,7 @@ To install the chart with the release name `cluster-scanner`, run:
5555

5656
```console
5757
$ helm upgrade --install sysdig-cluster-scanner sysdig/cluster-scanner \
58-
--create-namespace -n sysdig --version=0.8.2 \
58+
--create-namespace -n sysdig --version=0.8.3 \
5959
--set global.clusterConfig.name=CLUSTER_NAME \
6060
--set global.sysdig.region=SYSDIG_REGION \
6161
--set global.sysdig.accessKey=YOUR-KEY-HERE
@@ -161,7 +161,7 @@ Specify each parameter using the **`--set key=value[,key=value]`** argument to `
161161

162162
```console
163163
$ helm upgrade --install sysdig-cluster-scanner sysdig/cluster-scanner \
164-
--create-namespace -n sysdig --version=0.8.2 \
164+
--create-namespace -n sysdig --version=0.8.3 \
165165
--set global.sysdig.region="us1"
166166
```
167167

@@ -170,7 +170,7 @@ installing the chart. For example:
170170

171171
```console
172172
$ helm upgrade --install sysdig-cluster-scanner sysdig/cluster-scanner \
173-
--create-namespace -n sysdig --version=0.8.2 \
173+
--create-namespace -n sysdig --version=0.8.3 \
174174
--values values.yaml
175175
```
176176

charts/cluster-scanner/templates/_helpers.tpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,11 +206,11 @@ Define the proper imageRegistry to use for imageSbomExtractor
206206
{{- end -}}
207207

208208
{{/*
209-
Generates configmap data to enable platform services if onPremCompatibility version is not set, or it is greater than 6.6.0
209+
Generates configmap data to enable platform services if onPremCompatibility version is not set, or it is greater than 7.0.0
210210
It also makes sure that the platform services are enabled in regions which support them when onPremCompatibility is not defined.
211211
*/}}
212212
{{- define "cluster-scanner.enablePlatformServicesConfig" -}}
213-
{{- if ( semverCompare ">= 6.6.0" (.Values.onPremCompatibilityVersion | default "6.6.0" )) -}}
213+
{{- if ( semverCompare ">= 7.0.0" (.Values.onPremCompatibilityVersion | default "7.0.0" )) -}}
214214
{{- $regionsPlatformEnabled := list "us1" "us2" "us3" "us4" "au1" "eu1" -}}
215215
{{- if or (has .Values.global.sysdig.region $regionsPlatformEnabled) .Values.onPremCompatibilityVersion -}}
216216
enable_platform_services: "true"

charts/cluster-scanner/tests/configmap_test.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ tests:
359359
path: data.enable_platform_services
360360
value: "true"
361361

362-
- it: "has correct platform services value when onPremCompatibilityVersion is < 6.6 and region does NOT support platform services"
362+
- it: "has correct platform services value when onPremCompatibilityVersion is < 7.0 and region does NOT support platform services"
363363
set:
364364
global.sysdig.apiHost: "http://test.com"
365365
onPremCompatibilityVersion: "6.5.99"
@@ -368,7 +368,7 @@ tests:
368368
- isNull:
369369
path: data.enable_platform_services
370370

371-
- it: "has correct platform services value when onPremCompatibilityVersion is < 6.6 and region supports platform services"
371+
- it: "has correct platform services value when onPremCompatibilityVersion is < 7.0 and region supports platform services"
372372
set:
373373
global.sysdig.apiHost: "http://test.com"
374374
onPremCompatibilityVersion: "6.5.99"
@@ -395,20 +395,20 @@ tests:
395395
- isNull:
396396
path: data.enable_platform_services
397397

398-
- it: "has correct platform services value when onPremCompatibilityVersion is = 6.6.0 and region does NOT support platform services"
398+
- it: "has correct platform services value when onPremCompatibilityVersion is = 7.0.0 and region does NOT support platform services"
399399
set:
400400
global.sysdig.apiHost: "http://test.com"
401-
onPremCompatibilityVersion: "6.6.0"
401+
onPremCompatibilityVersion: "7.0.0"
402402
global.sysdig.region: ""
403403
asserts:
404404
- equal:
405405
path: data.enable_platform_services
406406
value: "true"
407407

408-
- it: "has correct platform services value when onPremCompatibilityVersion is = 6.6.0 and region supports platform services"
408+
- it: "has correct platform services value when onPremCompatibilityVersion is = 7.0.0 and region supports platform services"
409409
set:
410410
global.sysdig.apiHost: "http://test.com"
411-
onPremCompatibilityVersion: "6.6.0"
411+
onPremCompatibilityVersion: "7.0.0"
412412
global.sysdig.region: "us1"
413413
asserts:
414414
- equal:
@@ -418,16 +418,16 @@ tests:
418418
- it: "has correct platform services value when onPremCompatibilityVersion is just a major.minor version"
419419
set:
420420
global.sysdig.apiHost: "http://test.com"
421-
onPremCompatibilityVersion: "6.6"
421+
onPremCompatibilityVersion: "7.0"
422422
asserts:
423423
- equal:
424424
path: data.enable_platform_services
425425
value: "true"
426426

427-
- it: "has correct platform services value when onPremCompatibilityVersion is > 6.6.0"
427+
- it: "has correct platform services value when onPremCompatibilityVersion is > 7.0.0"
428428
set:
429429
global.sysdig.apiHost: "http://test.com"
430-
onPremCompatibilityVersion: "6.6.1"
430+
onPremCompatibilityVersion: "7.0.1"
431431
asserts:
432432
- equal:
433433
path: data.enable_platform_services

charts/sysdig-deploy/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: sysdig-deploy
33
description: A chart with various Sysdig components for Kubernetes
44
type: application
5-
version: 1.29.5
5+
version: 1.29.6
66
maintainers:
77
- name: AlbertoBarba
88
@@ -42,7 +42,7 @@ dependencies:
4242
- name: cluster-scanner
4343
# repository: https://charts.sysdig.com
4444
repository: file://../cluster-scanner
45-
version: ~0.8.2
45+
version: ~0.8.3
4646
alias: clusterScanner
4747
condition: clusterScanner.enabled
4848
- name: kspm-collector

0 commit comments

Comments
 (0)