Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.27.1: helm adjustments for GKE Autopilot #145

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading