diff --git a/charts/dex/Chart.yaml b/charts/dex/Chart.yaml index 1f3fd3b9..52f2504e 100644 --- a/charts/dex/Chart.yaml +++ b/charts/dex/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v2 type: application name: dex -version: 0.22.1 +version: 0.23.0 appVersion: "2.42.0" kubeVersion: ">=1.14.0-0" description: OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors. @@ -21,8 +21,8 @@ maintainers: url: https://sagikazarmark.com annotations: artifacthub.io/changes: | - - kind: changed - description: "Fix Role not respecting namespaceOverride" + - kind: added + description: "Use tpl for dynamic image values and add digest support" artifacthub.io/images: | - name: dex image: ghcr.io/dexidp/dex:v2.42.0 diff --git a/charts/dex/README.md b/charts/dex/README.md index d37a55ae..4b93865b 100644 --- a/charts/dex/README.md +++ b/charts/dex/README.md @@ -1,6 +1,6 @@ # dex -![version: 0.22.1](https://img.shields.io/badge/version-0.22.1-informational?style=flat-square) ![type: application](https://img.shields.io/badge/type-application-informational?style=flat-square) ![app version: 2.42.0](https://img.shields.io/badge/app%20version-2.42.0-informational?style=flat-square) ![kube version: >=1.14.0-0](https://img.shields.io/badge/kube%20version->=1.14.0--0-informational?style=flat-square) [![artifact hub](https://img.shields.io/badge/artifact%20hub-dex-informational?style=flat-square)](https://artifacthub.io/packages/helm/dex/dex) +![version: 0.23.0](https://img.shields.io/badge/version-0.23.0-informational?style=flat-square) ![type: application](https://img.shields.io/badge/type-application-informational?style=flat-square) ![app version: 2.42.0](https://img.shields.io/badge/app%20version-2.42.0-informational?style=flat-square) ![kube version: >=1.14.0-0](https://img.shields.io/badge/kube%20version->=1.14.0--0-informational?style=flat-square) [![artifact hub](https://img.shields.io/badge/artifact%20hub-dex-informational?style=flat-square)](https://artifacthub.io/packages/helm/dex/dex) OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors. @@ -115,6 +115,7 @@ ingress: | image.repository | string | `"ghcr.io/dexidp/dex"` | Name of the image repository to pull the container image from. | | image.pullPolicy | string | `"IfNotPresent"` | [Image pull policy](https://kubernetes.io/docs/concepts/containers/images/#updating-images) for updating already existing images on a node. | | image.tag | string | `""` | Image tag override for the default value (chart appVersion). | +| image.digest | string | `""` | When digest is set to a non-empty value, images will be pulled by digest (regardless of tag value). | | imagePullSecrets | list | `[]` | Reference to one or more secrets to be used when [pulling images](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#create-a-pod-that-uses-your-secret) (from private registries). | | namespaceOverride | string | `""` | A namespace in place of the release namespace for all resources. | | nameOverride | string | `""` | A name in place of the chart name for `app:` labels. | diff --git a/charts/dex/templates/deployment.yaml b/charts/dex/templates/deployment.yaml index be48e86a..607cafdd 100644 --- a/charts/dex/templates/deployment.yaml +++ b/charts/dex/templates/deployment.yaml @@ -57,7 +57,11 @@ spec: - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default (printf "v%s" .Chart.AppVersion) }}" + {{- if .Values.image.digest }} + image: "{{ tpl .Values.image.repository . }}@{{ tpl .Values.image.digest . }}" + {{- else }} + image: "{{ tpl .Values.image.repository . }}:{{ tpl .Values.image.tag . | default (printf "v%s" .Chart.AppVersion) }}" + {{- end }} imagePullPolicy: {{ .Values.image.pullPolicy }} args: - dex diff --git a/charts/dex/values.yaml b/charts/dex/values.yaml index dd88b1af..2515f6ca 100644 --- a/charts/dex/values.yaml +++ b/charts/dex/values.yaml @@ -19,6 +19,9 @@ image: # -- Image tag override for the default value (chart appVersion). tag: "" + # -- When digest is set to a non-empty value, images will be pulled by digest (regardless of tag value). + digest: "" + # -- Reference to one or more secrets to be used when [pulling images](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#create-a-pod-that-uses-your-secret) (from private registries). imagePullSecrets: []