From 446bc4f0edd4cec3be6a927480adef5aaf4136cc Mon Sep 17 00:00:00 2001 From: Stan M Date: Mon, 26 Feb 2024 16:04:44 +0100 Subject: [PATCH 1/2] add image digest variable (#46) --- charts/gatekeeper/Chart.yaml | 2 +- charts/gatekeeper/templates/deployment.yaml | 3 +-- charts/gatekeeper/values.yaml | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/charts/gatekeeper/Chart.yaml b/charts/gatekeeper/Chart.yaml index 5e2d0ca..47cfeea 100644 --- a/charts/gatekeeper/Chart.yaml +++ b/charts/gatekeeper/Chart.yaml @@ -25,4 +25,4 @@ maintainers: - name: gogatekeeper url: https://gogatekeeper.github.io/ version: 0.1.45 -appVersion: "2.9.4" +appVersion: "2.9.5" diff --git a/charts/gatekeeper/templates/deployment.yaml b/charts/gatekeeper/templates/deployment.yaml index 0243fdf..74fa5dc 100644 --- a/charts/gatekeeper/templates/deployment.yaml +++ b/charts/gatekeeper/templates/deployment.yaml @@ -48,7 +48,7 @@ spec: securityContext: {{- omit .Values.containerSecurityContext "enabled" | toYaml | nindent 12 }} {{- end }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}{{ if .Values.image.digest }}{{ printf `@%s` .Values.image.digest }}{{- end }}" imagePullPolicy: {{ .Values.image.pullPolicy }} args: - --config @@ -108,4 +108,3 @@ spec: {{- if .Values.hostAliases }} hostAliases: {{ toYaml .Values.hostAliases | nindent 8 }} {{- end }} - diff --git a/charts/gatekeeper/values.yaml b/charts/gatekeeper/values.yaml index 33c041b..71f7f91 100644 --- a/charts/gatekeeper/values.yaml +++ b/charts/gatekeeper/values.yaml @@ -12,6 +12,8 @@ image: repository: gogatekeeper/gatekeeper # -- Container image tag (overrides the image tag whose default is the chart appVersion.) tag: "" + # -- Container image digest @sha256:(hash) + digest: "" # -- Image pull policy. One of `Always`, `Never`, `IfNotPresent` pullPolicy: IfNotPresent From b449edf85894afe2938a6ee6959aa11d7232551e Mon Sep 17 00:00:00 2001 From: Pavol Ipoth Date: Mon, 26 Feb 2024 22:28:58 +0100 Subject: [PATCH 2/2] Update chart version to 0.1.46, digest comment --- charts/gatekeeper/Chart.yaml | 4 ++-- charts/gatekeeper/README.md | 3 ++- charts/gatekeeper/values.yaml | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/charts/gatekeeper/Chart.yaml b/charts/gatekeeper/Chart.yaml index 47cfeea..48db71e 100644 --- a/charts/gatekeeper/Chart.yaml +++ b/charts/gatekeeper/Chart.yaml @@ -24,5 +24,5 @@ sources: maintainers: - name: gogatekeeper url: https://gogatekeeper.github.io/ -version: 0.1.45 -appVersion: "2.9.5" +version: 0.1.46 +appVersion: "2.9.4" diff --git a/charts/gatekeeper/README.md b/charts/gatekeeper/README.md index 7535b1b..1bdb7e1 100644 --- a/charts/gatekeeper/README.md +++ b/charts/gatekeeper/README.md @@ -1,6 +1,6 @@ # gatekeeper -![Version: 0.1.45](https://img.shields.io/badge/Version-0.1.45-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.9.4](https://img.shields.io/badge/AppVersion-2.9.4-informational?style=flat-square) +![Version: 0.1.46](https://img.shields.io/badge/Version-0.1.46-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 2.9.4](https://img.shields.io/badge/AppVersion-2.9.4-informational?style=flat-square) Gatekeeper is a proxy which integrates with OpenID Connect (OIDC) Providers, it supports both access tokens in a browser cookie or bearer tokens. @@ -68,6 +68,7 @@ For the complete list of all available configuration options, please read the | extraVolumes | list | `[]` | Array to add extra volumes | | fullnameOverride | string | `""` | Overrides the full name of the chart | | hostAliases | list | `[]` | | +| image.digest | string | `""` | Container image digest sha256:(hash) | | image.pullPolicy | string | `"IfNotPresent"` | Image pull policy. One of `Always`, `Never`, `IfNotPresent` | | image.registry | string | `"quay.io"` | Container image registry | | image.repository | string | `"gogatekeeper/gatekeeper"` | Container image name | diff --git a/charts/gatekeeper/values.yaml b/charts/gatekeeper/values.yaml index 71f7f91..18f3c37 100644 --- a/charts/gatekeeper/values.yaml +++ b/charts/gatekeeper/values.yaml @@ -12,7 +12,7 @@ image: repository: gogatekeeper/gatekeeper # -- Container image tag (overrides the image tag whose default is the chart appVersion.) tag: "" - # -- Container image digest @sha256:(hash) + # -- Container image digest sha256:(hash) digest: "" # -- Image pull policy. One of `Always`, `Never`, `IfNotPresent` pullPolicy: IfNotPresent