-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: feat(node-analyzer,cluster-scanner): resolving bug with nodeAnal…
…yzer and clusterScanner condition. (#1479)
- Loading branch information
1 parent
cdae3a7
commit 16386ec
Showing
4 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,3 +145,6 @@ Chart.lock | |
*.envrc | ||
.vscode | ||
.local | ||
|
||
# ASDF config | ||
.tool-versions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ apiVersion: v2 | |
name: sysdig-deploy | ||
description: A chart with various Sysdig components for Kubernetes | ||
type: application | ||
version: 1.29.9 | ||
version: 1.29.10 | ||
maintainers: | ||
- name: AlbertoBarba | ||
email: [email protected] | ||
|
11 changes: 10 additions & 1 deletion
11
charts/sysdig-deploy/templates/cluster-scanner-runtime-scanner-check.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
{{- if and .Values.clusterScanner.enabled .Values.nodeAnalyzer.enabled .Values.nodeAnalyzer.nodeAnalyzer.runtimeScanner.deploy ( include "deployRuntimeScanner" . ) -}} | ||
{{- $nodeAnalyzerEnabled := default false .Values.nodeAnalyzer.enabled -}} | ||
{{- $runtimeScannerDeploy := false -}} | ||
|
||
{{- if $nodeAnalyzerEnabled -}} | ||
{{- if and (default dict .Values.nodeAnalyzer).nodeAnalyzer (default dict .Values.nodeAnalyzer.nodeAnalyzer).runtimeScanner -}} | ||
{{- $runtimeScannerDeploy = default false .Values.nodeAnalyzer.nodeAnalyzer.runtimeScanner.deploy -}} | ||
{{- end -}} | ||
{{- end -}} | ||
|
||
{{- if and $nodeAnalyzerEnabled $runtimeScannerDeploy .Values.clusterScanner.enabled -}} | ||
{{ fail "Cannot enable both the Runtime Scanner and the Cluster Scanner at the same time" }} | ||
{{- end -}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters