Skip to content

Commit

Permalink
Merge branch 'patch-1' of https://github.com/larssb/helm-charts-1 int…
Browse files Browse the repository at this point in the history
…o patch-1

latest from head
  • Loading branch information
larssb committed Nov 14, 2024
2 parents 9ff3be3 + 651926d commit 08cc51a
Show file tree
Hide file tree
Showing 8 changed files with 897 additions and 799 deletions.
4 changes: 2 additions & 2 deletions charts/dependency_chart/operatorcommand-crds/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ description: A Helm chart CRDs for Kubescape Operator commands

type: application

version: 0.0.1
version: 0.0.2

appVersion: "0.0.1"
appVersion: "0.0.2"
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,9 @@ spec:
errorCode:
type: integer
nullable: true
payload:
type: string
format: byte
nullable: true
subresources:
status: {}
6 changes: 3 additions & 3 deletions charts/kubescape-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ type: application
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)

version: 1.22.6
version: 1.22.7

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.

appVersion: 1.22.6
appVersion: 1.22.7

maintainers:
- name: Ben Hirschberg
Expand Down Expand Up @@ -51,5 +51,5 @@ dependencies:
repository: "file://../dependency_chart/servicescanresult-crds"
condition: serviceScanConfig.enabled
- name: kubescape-operator-command-crd
version: 0.0.1
version: 0.0.2
repository: "file://../dependency_chart/operatorcommand-crds"
12 changes: 10 additions & 2 deletions charts/kubescape-operator/templates/_common.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,15 @@ kubevuln:
kubevulnScheduler:
enabled: {{ and $configurations.submit (eq .Values.capabilities.vulnerabilityScan "enable") }}
nodeAgent:
enabled: {{ or (eq .Values.capabilities.relevancy "enable") (eq .Values.capabilities.runtimeObservability "enable") (eq .Values.capabilities.networkPolicyService "enable") }}
enabled: {{ or
(eq .Values.capabilities.relevancy "enable")
(eq .Values.capabilities.runtimeObservability "enable")
(eq .Values.capabilities.networkPolicyService "enable")
(eq .Values.capabilities.runtimeDetection "enable")
(eq .Values.capabilities.malwareDetection "enable")
(eq .Values.capabilities.nodeProfileService "enable")
(eq .Values.capabilities.seccompProfileService "enable")
}}
operator:
enabled: true
otelCollector:
Expand All @@ -74,7 +82,7 @@ cloudSecret:
create: {{ $configurations.createCloudSecret }}
name: {{ if $configurations.createCloudSecret }}"cloud-secret"{{ else }}{{ .Values.credentials.cloudSecret }}{{ end }}
synchronizer:
enabled: {{ or (and $configurations.submit (eq .Values.capabilities.networkPolicyService "enable")) (and $configurations.submit (eq .Values.capabilities.runtimeObservability "enable")) }}
enabled: {{ $configurations.submit }}
clamAV:
enabled: {{ eq .Values.capabilities.malwareDetection "enable" }}
customCaCertificates:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ spec:
targetPort: 8080
protocol: TCP
selector:
app.kubernetes.io/name: {{ .Values.nodeAgent.name }}
{{- include "kubescape-operator.selectorLabels" (dict "Chart" .Chart "Release" .Release "Values" .Values "app" .Values.nodeAgent.name) | nindent 4 }}
{{- end }}
6 changes: 6 additions & 0 deletions charts/kubescape-operator/templates/operator/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,10 @@ rules:
- apiGroups: ["kubescape.io"]
resources: ["servicesscanresults"]
verbs: ["get", "watch", "list", "create", "update", "delete" ,"patch"]
- apiGroups: ["kubescape.io"]
resources: ["operatorcommands"]
verbs: ["get", "watch", "list"]
- apiGroups: ["kubescape.io"]
resources: ["operatorcommands/status"]
verbs: ["get", "watch", "list", "update", "patch"]
{{- end }}
Loading

0 comments on commit 08cc51a

Please sign in to comment.