Skip to content

Commit

Permalink
Merge branch 'master' into feat-goroutines-param
Browse files Browse the repository at this point in the history
  • Loading branch information
hayk99 authored Oct 18, 2023
2 parents ac07fb0 + ce2dad6 commit 9743532
Show file tree
Hide file tree
Showing 9 changed files with 67 additions and 16 deletions.
3 changes: 3 additions & 0 deletions charts/cluster-scanner/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ Manual edits are supported only below '## Change Log' and should be used
exclusively to fix incorrect entries and not to add new ones.

## Change Log
# v0.8.0
### New Features
* **cluster-scanner** [23b421c6](https://github.com/sysdiglabs/charts/commit/23b421c60dafe24c2e777f38c490e7f88c2c42a4): Enable platform services only in regions which support them ([#1413](https://github.com/sysdiglabs/charts/issues/1413))
# v0.7.2
### Bug Fixes
* **cluster-scanner** [9b3864ff](https://github.com/sysdiglabs/charts/commit/9b3864fffdc9e8b7e8fdc96f8ed4902f945c34c7): removed unneeded version compatibility checks ([#1404](https://github.com/sysdiglabs/charts/issues/1404))
Expand Down
2 changes: 1 addition & 1 deletion charts/cluster-scanner/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Sysdig Cluster Scanner

type: application

version: 0.7.2
version: 0.8.0

appVersion: "0.1.0"
home: https://www.sysdig.com/
Expand Down
8 changes: 4 additions & 4 deletions charts/cluster-scanner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ $ pre-commit run -a
$ helm repo add sysdig https://charts.sysdig.com
$ helm repo update
$ helm upgrade --install sysdig-cluster-scanner sysdig/cluster-scanner \
--create-namespace -n sysdig --version=0.7.2 \
--create-namespace -n sysdig --version=0.8.0 \
--set global.clusterConfig.name=CLUSTER_NAME \
--set global.sysdig.region=SYSDIG_REGION \
--set global.sysdig.accessKey=YOUR-KEY-HERE
Expand Down Expand Up @@ -55,7 +55,7 @@ To install the chart with the release name `cluster-scanner`, run:

```console
$ helm upgrade --install sysdig-cluster-scanner sysdig/cluster-scanner \
--create-namespace -n sysdig --version=0.7.2 \
--create-namespace -n sysdig --version=0.8.0 \
--set global.clusterConfig.name=CLUSTER_NAME \
--set global.sysdig.region=SYSDIG_REGION \
--set global.sysdig.accessKey=YOUR-KEY-HERE
Expand Down Expand Up @@ -161,7 +161,7 @@ Specify each parameter using the **`--set key=value[,key=value]`** argument to `

```console
$ helm upgrade --install sysdig-cluster-scanner sysdig/cluster-scanner \
--create-namespace -n sysdig --version=0.7.2 \
--create-namespace -n sysdig --version=0.8.0 \
--set global.sysdig.region="us1"
```

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

```console
$ helm upgrade --install sysdig-cluster-scanner sysdig/cluster-scanner \
--create-namespace -n sysdig --version=0.7.2 \
--create-namespace -n sysdig --version=0.8.0 \
--values values.yaml
```

Expand Down
6 changes: 3 additions & 3 deletions charts/cluster-scanner/RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# What's Changed

### Bug Fixes
- **cluster-scanner** [9b3864ff](https://github.com/sysdiglabs/charts/commit/9b3864fffdc9e8b7e8fdc96f8ed4902f945c34c7): removed unneeded version compatibility checks ([#1404](https://github.com/sysdiglabs/charts/issues/1404))
#### Full diff: https://github.com/sysdiglabs/charts/compare/cluster-scanner-0.7.1...cluster-scanner-0.7.2
### New Features
- **cluster-scanner** [23b421c6](https://github.com/sysdiglabs/charts/commit/23b421c60dafe24c2e777f38c490e7f88c2c42a4): Enable platform services only in regions which support them ([#1413](https://github.com/sysdiglabs/charts/issues/1413))
#### Full diff: https://github.com/sysdiglabs/charts/compare/cluster-scanner-0.7.2...cluster-scanner-0.8.0
4 changes: 4 additions & 0 deletions charts/cluster-scanner/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,14 @@ Define the proper imageRegistry to use for imageSbomExtractor

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

Expand Down
49 changes: 44 additions & 5 deletions charts/cluster-scanner/tests/configmap_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -342,34 +342,74 @@ tests:
path: data.no_proxy
value: "fake-no-proxy"

- it: "has correct platform services value when onPremCompatibilityVersion is NOT provided"
- it: "has correct platform services value when onPremCompatibilityVersion is NOT provided and region does NOT support platform services"
set:
global.sysdig.apiHost: "http://test.com"
global.sysdig.region: ""
asserts:
- isNull:
path: data.enable_platform_services

- it: "has correct platform services value when onPremCompatibilityVersion is NOT provided and region supports platform services"
set:
global.sysdig.apiHost: "http://test.com"
global.sysdig.region: "us1"
asserts:
- equal:
path: data.enable_platform_services
value: "true"

- it: "has correct platform services value when onPremCompatibilityVersion is < 6.6"
- it: "has correct platform services value when onPremCompatibilityVersion is < 6.6 and region does NOT support platform services"
set:
global.sysdig.apiHost: "http://test.com"
onPremCompatibilityVersion: "6.5.99"
global.sysdig.region: ""
asserts:
- isNull:
path: data.enable_platform_services

- it: "has correct platform services value when onPremCompatibilityVersion is = 6.5"
- it: "has correct platform services value when onPremCompatibilityVersion is < 6.6 and region supports platform services"
set:
global.sysdig.apiHost: "http://test.com"
onPremCompatibilityVersion: "6.5.99"
global.sysdig.region: "us1"
asserts:
- isNull:
path: data.enable_platform_services

- it: "has correct platform services value when onPremCompatibilityVersion is = 6.5 and region does NOT support platform services"
set:
global.sysdig.apiHost: "http://test.com"
onPremCompatibilityVersion: "6.5"
global.sysdig.region: ""
asserts:
- isNull:
path: data.enable_platform_services

- it: "has correct platform services value when onPremCompatibilityVersion is = 6.6.0"
- it: "has correct platform services value when onPremCompatibilityVersion is = 6.5 and region supports platform services"
set:
global.sysdig.apiHost: "http://test.com"
onPremCompatibilityVersion: "6.5"
global.sysdig.region: "us1"
asserts:
- isNull:
path: data.enable_platform_services

- it: "has correct platform services value when onPremCompatibilityVersion is = 6.6.0 and region does NOT support platform services"
set:
global.sysdig.apiHost: "http://test.com"
onPremCompatibilityVersion: "6.6.0"
global.sysdig.region: ""
asserts:
- equal:
path: data.enable_platform_services
value: "true"

- it: "has correct platform services value when onPremCompatibilityVersion is = 6.6.0 and region supports platform services"
set:
global.sysdig.apiHost: "http://test.com"
onPremCompatibilityVersion: "6.6.0"
global.sysdig.region: "us1"
asserts:
- equal:
path: data.enable_platform_services
Expand All @@ -393,7 +433,6 @@ tests:
path: data.enable_platform_services
value: "true"


- it: "fails if onPremCompatibilityVersion is not a valid semver"
set:
global.sysdig.apiHost: "http://test.com"
Expand Down
3 changes: 3 additions & 0 deletions charts/sysdig-deploy/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ Manual edits are supported only below '## Change Log' and should be used
exclusively to fix incorrect entries and not to add new ones.

## Change Log
# v1.26.0
### New Features
* **cluster-scanner** [23b421c6](https://github.com/sysdiglabs/charts/commit/23b421c60dafe24c2e777f38c490e7f88c2c42a4): Enable platform services only in regions which support them ([#1413](https://github.com/sysdiglabs/charts/issues/1413))
# v1.25.0
# v1.24.7
### Chores
Expand Down
4 changes: 2 additions & 2 deletions charts/sysdig-deploy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: sysdig-deploy
description: A chart with various Sysdig components for Kubernetes
type: application
version: 1.25.0
version: 1.26.0
maintainers:
- name: AlbertoBarba
email: [email protected]
Expand Down Expand Up @@ -42,7 +42,7 @@ dependencies:
- name: cluster-scanner
# repository: https://charts.sysdig.com
repository: file://../cluster-scanner
version: ~0.7.2
version: ~0.8.0
alias: clusterScanner
condition: clusterScanner.enabled
- name: kspm-collector
Expand Down
4 changes: 3 additions & 1 deletion charts/sysdig-deploy/RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# What's Changed

#### Full diff: https://github.com/sysdiglabs/charts/compare/sysdig-deploy-1.24.7...sysdig-deploy-1.25.0
### New Features
- **cluster-scanner** [23b421c6](https://github.com/sysdiglabs/charts/commit/23b421c60dafe24c2e777f38c490e7f88c2c42a4): Enable platform services only in regions which support them ([#1413](https://github.com/sysdiglabs/charts/issues/1413))
#### Full diff: https://github.com/sysdiglabs/charts/compare/sysdig-deploy-1.25.0...sysdig-deploy-1.26.0

0 comments on commit 9743532

Please sign in to comment.