From f454d0d7a8067a97e460f9680b46696a0494ea5b Mon Sep 17 00:00:00 2001 From: WrenIX Date: Thu, 29 Feb 2024 20:30:16 +0100 Subject: [PATCH] fix(headscale-ui): update appVersion --- headscale-ui/Chart.yaml | 4 ++-- headscale-ui/README.adoc | 14 ++++++++++++-- headscale-ui/templates/deployment.yaml | 6 ++++-- headscale-ui/values.yaml | 9 ++++++--- 4 files changed, 24 insertions(+), 9 deletions(-) diff --git a/headscale-ui/Chart.yaml b/headscale-ui/Chart.yaml index c5cc590..401120b 100644 --- a/headscale-ui/Chart.yaml +++ b/headscale-ui/Chart.yaml @@ -3,9 +3,9 @@ name: headscale-ui description: A simple Headscale web UI for small-scale deployments. icon: https://raw.githubusercontent.com/gurucomputing/headscale-ui/master/static/favicon.png type: application -version: 0.1.3 +version: 0.1.4 # renovate: image=ghcr.io/gurucomputing/headscale-ui -appVersion: "2023.01.30-beta-1" +appVersion: "2024.02.24-beta1" maintainers: - name: WrenIX url: https://wrenix.eu diff --git a/headscale-ui/README.adoc b/headscale-ui/README.adoc index 01084bd..fbe79ca 100644 --- a/headscale-ui/README.adoc +++ b/headscale-ui/README.adoc @@ -2,9 +2,9 @@ = headscale-ui -image::https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square[Version: 0.1.3] +image::https://img.shields.io/badge/Version-0.1.4-informational?style=flat-square[Version: 0.1.4] image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application] -image::https://img.shields.io/badge/AppVersion-2023.01.30-beta-1-informational?style=flat-square[AppVersion: 2023.01.30-beta-1] +image::https://img.shields.io/badge/AppVersion-2024.02.24-beta1-informational?style=flat-square[AppVersion: 2024.02.24-beta1] == Maintainers .Maintainers @@ -77,6 +77,16 @@ helm uninstall headscale-ui-release | `""` | +| global.image.pullPolicy +| string +| `nil` +| if set it will overwrite all pullPolicy + +| global.image.registry +| string +| `nil` +| if set it will overwrite all registry entries + | image.pullPolicy | string | `"IfNotPresent"` diff --git a/headscale-ui/templates/deployment.yaml b/headscale-ui/templates/deployment.yaml index 99fe1ce..0833241 100644 --- a/headscale-ui/templates/deployment.yaml +++ b/headscale-ui/templates/deployment.yaml @@ -34,8 +34,10 @@ spec: - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" - imagePullPolicy: {{ .Values.image.pullPolicy }} + {{- with .Values.image}} + image: "{{ coalesce $.Values.global.image.registry .registry }}/{{ .repository }}:{{ .tag | default $.Chart.AppVersion }}" + imagePullPolicy: {{ coalesce $.Values.global.image.pullPolicy .pullPolicy }} + {{- end }} ports: - name: http containerPort: {{ .Values.service.port }} diff --git a/headscale-ui/values.yaml b/headscale-ui/values.yaml index 19f2dce..88ad28c 100644 --- a/headscale-ui/values.yaml +++ b/headscale-ui/values.yaml @@ -1,6 +1,9 @@ -# Default values for headscale-ui. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. +global: + image: + # -- if set it will overwrite all registry entries + registry: + # -- if set it will overwrite all pullPolicy + pullPolicy: replicaCount: 1