Skip to content

Commit 29b3e93

Browse files
committed
CircleCI: Upload wiz-sensor chart
1 parent 0ccf3b2 commit 29b3e93

File tree

5 files changed

+24
-4
lines changed

5 files changed

+24
-4
lines changed

wiz-kubernetes-integration/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ dependencies:
1717
condition: wiz-admission-controller.enabled
1818
- name: wiz-sensor
1919
repository: https://wiz-sec.github.io/charts
20-
version: ">=1.0.6051"
20+
version: ">=1.0.6187"
2121
condition: wiz-sensor.enabled

wiz-sensor/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ description: Wiz Sensor helm chart
33
home: https://www.wiz.io/
44
name: wiz-sensor
55
type: application
6-
version: 1.0.6051
7-
appVersion: 1.0.5835
6+
version: 1.0.6187
7+
appVersion: 1.0.6187

wiz-sensor/templates/_helpers.tpl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ dsimage/tag: {{ $dsimageparts._0 }}
4646
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
4747
{{- end }}
4848
app.kubernetes.io/managed-by: {{ .Release.Service }}
49+
{{- if .Values.gkeAutopilot }}
50+
autopilot.gke.io/no-connect: "true"
51+
{{- if .Values.gkeAutopilotUseAllowlist }}
52+
cloud.google.com/matching-allowlist: {{ .Values.gkeAutopilotAllowlist }}
53+
{{- end }}
54+
{{- end }}
4955
{{- if (coalesce .Values.global.commonLabels .Values.commonLabels .Values.daemonset.commonLabels) }}
5056
{{- range $key, $value := (coalesce .Values.global.commonLabels .Values.commonLabels .Values.daemonset.commonLabels) }}
5157
{{ $key }}: {{ tpl $value $ | quote }}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{{- if .Values.gkeAutopilotUseAllowlist }}
2+
apiVersion: auto.gke.io/v1
3+
kind: AllowlistSynchronizer
4+
metadata:
5+
name: wiz-sensor-allowlist-synchronizer
6+
annotations:
7+
helm.sh/hook: "pre-install,pre-upgrade"
8+
spec:
9+
allowlistPaths:
10+
- "Wiz/wiz-sensor/v1/*"
11+
{{- end }}

wiz-sensor/values.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ openshift: false
4040
# see https://cloud.google.com/kubernetes-engine/docs/concepts/autopilot-resource-requests#resource-limits .
4141
# there are also other small changes
4242
gkeAutopilot: false
43+
# Newer GKE autopilot clusters support the use of an allowlist. This is required for some options in the chart
44+
gkeAutopilotUseAllowlist: false
45+
gkeAutopilotAllowlist: wiz-sensor-v1 # changing this is usually not required
4346

4447
# use a custom SELinux type that is required by flatcar Linux nodes, but is incompatible with some
4548
# other node types (like AWS bottlerocket)
@@ -298,7 +301,7 @@ daemonset:
298301
type: RollingUpdate
299302

300303
# Time for which kubernetes waits for the sensor pod to terminate gracefully.
301-
terminationGracePeriodSeconds: 90
304+
terminationGracePeriodSeconds: 25
302305

303306
resources:
304307
# resource values for the wiz sensor, without API security enabled

0 commit comments

Comments
 (0)