Skip to content

Commit

Permalink
2.27.1: helm adjustments for GKE Autopilot (#145)
Browse files Browse the repository at this point in the history
When onboarding on GKE autopilot, append to helm command: --set platform=gke.autopilot
  • Loading branch information
chkp-talbenor authored Feb 21, 2024
1 parent e15d784 commit 34eb279
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 51 deletions.
4 changes: 2 additions & 2 deletions checkpoint/cloudguard/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
appVersion: 2.27.0
appVersion: 2.27.1
description: A Helm chart for Check Point CloudGuard Workload Security
home: https://portal.checkpoint.com
icon: https://www.checkpoint.com/wp-content/uploads/icon-cloudguard-nav.png
Expand Down Expand Up @@ -32,4 +32,4 @@ keywords:
- gke
- autopilot
name: cloudguard
version: 2.27.0
version: 2.27.1
11 changes: 7 additions & 4 deletions checkpoint/cloudguard/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,10 @@ imagePullSecrets:
fieldPath: spec.nodeName
- name: PLATFORM
value: {{ .platform }}
{{- if ne .platform "gke.autopilot" }}
- name: AUTO_UPGRADE_ENABLED
value: {{ (include "get.autoUpgrade" .) | quote }}
{{- end -}}
{{- if .Values.proxy }}
- name: HTTPS_PROXY
value: "{{ .Values.proxy }}"
Expand Down Expand Up @@ -348,6 +350,7 @@ takes a context (such as $config, .Values or (dict "containerRuntime" $container

{{/*
If the registry is not "quay" do not enable automatic upgrades.
If platform is gke.autopilot do not enable automatic upgrades.
If a user manually defines a value, that choice takes precedence.
If a user opts for the default "preserve" option:
If there was no prior deployment, automatic upgrades are enabled.
Expand All @@ -359,11 +362,11 @@ If a user opts for the default "preserve" option:
{{- if ne .Values.imageRegistry.url "quay.io" -}}
{{- printf "false" -}}
{{- else -}}
{{- if eq (.Values.autoUpgrade | toString) "true" -}}
{{- printf "true" -}}
{{- if or (eq (.Values.autoUpgrade | toString) "false") (eq .platform "gke.autopilot") -}}
{{- printf "false" -}}
{{- else -}}
{{- if eq (.Values.autoUpgrade | toString) "false" -}}
{{- printf "false" -}}
{{- if eq (.Values.autoUpgrade | toString) "true" -}}
{{- printf "true" -}}
{{- else -}}
{{/* preserve */}}
{{- $inventoryDeploymentName := trim (include "inventory.resource.name" .) -}}
Expand Down
Binary file added repository/cloudguard-2.27.1.tgz
Binary file not shown.
Loading

0 comments on commit 34eb279

Please sign in to comment.