From cdaaf39617ce903dbeafbe0fcf9bc01a87f72e71 Mon Sep 17 00:00:00 2001 From: Ben Banfield-Zanin Date: Fri, 8 Nov 2024 09:27:50 +0000 Subject: [PATCH] Expose the image digest setting --- charts/element-web/values.schema.json | 3 +++ charts/element-web/values.yaml | 5 +++++ charts/matrix-stack/sub_schemas/image.json | 3 +++ charts/matrix-stack/sub_schemas/sub_schema_values.yaml.j2 | 5 +++++ 4 files changed, 16 insertions(+) diff --git a/charts/element-web/values.schema.json b/charts/element-web/values.schema.json index ff8110e7..1deb0078 100644 --- a/charts/element-web/values.schema.json +++ b/charts/element-web/values.schema.json @@ -52,6 +52,9 @@ "tag": { "type": "string" }, + "digest": { + "type": "string" + }, "pullPolicy": { "type": "string", "enum": [ diff --git a/charts/element-web/values.yaml b/charts/element-web/values.yaml index eb1fdf8a..b2e197f9 100644 --- a/charts/element-web/values.yaml +++ b/charts/element-web/values.yaml @@ -31,7 +31,12 @@ image: ## Defaults to the Chart's appVersion if not set # tag: + ## Container digest to use. Used to pull the image instead of the image tag / Chart appVersion if set + # digest: + ## Whether the image should be pulled on container startup. Valid values are Always, IfNotPresent and Never + ## If this isn't provided it defaults to Always when using the image tag / Chart appVersion or + ## IfNotPresent if using a digest # pullPolicy: ## A list of pull secrets to use for this image diff --git a/charts/matrix-stack/sub_schemas/image.json b/charts/matrix-stack/sub_schemas/image.json index 5e5440a1..73b3e95f 100644 --- a/charts/matrix-stack/sub_schemas/image.json +++ b/charts/matrix-stack/sub_schemas/image.json @@ -13,6 +13,9 @@ "tag": { "type": "string" }, + "digest": { + "type": "string" + }, "pullPolicy": { "type": "string", "enum": [ diff --git a/charts/matrix-stack/sub_schemas/sub_schema_values.yaml.j2 b/charts/matrix-stack/sub_schemas/sub_schema_values.yaml.j2 index f004c2de..229da153 100644 --- a/charts/matrix-stack/sub_schemas/sub_schema_values.yaml.j2 +++ b/charts/matrix-stack/sub_schemas/sub_schema_values.yaml.j2 @@ -61,7 +61,12 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial # tag: {%- endif %} + ## Container digest to use. Used to pull the image instead of the image tag / Chart appVersion if set + # digest: + ## Whether the image should be pulled on container startup. Valid values are Always, IfNotPresent and Never + ## If this isn't provided it defaults to Always when using the image tag / Chart appVersion or + ## IfNotPresent if using a digest # pullPolicy: ## A list of pull secrets to use for this image