diff --git a/miniserve/Chart.yaml b/miniserve/Chart.yaml index e1754e6..678648a 100644 --- a/miniserve/Chart.yaml +++ b/miniserve/Chart.yaml @@ -3,7 +3,7 @@ name: miniserve description: A Helm chart for Kubernetes icon: https://raw.githubusercontent.com/svenstaro/miniserve/master/data/logo.svg type: application -version: "0.4.4" +version: "0.4.5" # renovate: image=docker.io/svenstaro/miniserve appVersion: "0.29.0" maintainers: diff --git a/miniserve/README.md b/miniserve/README.md index 12f4ff9..054d1f8 100644 --- a/miniserve/README.md +++ b/miniserve/README.md @@ -7,7 +7,7 @@ description: "A Helm chart for Kubernetes" # miniserve -![Version: 0.4.4](https://img.shields.io/badge/Version-0.4.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.29.0](https://img.shields.io/badge/AppVersion-0.29.0-informational?style=flat-square) +![Version: 0.4.5](https://img.shields.io/badge/Version-0.4.5-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.29.0](https://img.shields.io/badge/AppVersion-0.29.0-informational?style=flat-square) A Helm chart for Kubernetes @@ -78,9 +78,12 @@ helm uninstall miniserve-release | data.verbose | bool | `false` | Be verbose, includes emitting access logs | | data.webdav.enabled | bool | `false` | If enabled, respond to WebDAV requests (read-only). | | fullnameOverride | string | `""` | | -| image.pullPolicy | string | `"IfNotPresent"` | | -| image.repository | string | `"docker.io/svenstaro/miniserve"` | | -| image.tag | string | `""` | | +| 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"` | This sets the pull policy for images. (could be overwritten by global.image.pullPolicy) | +| image.registry | string | `"docker.io"` | image registry (could be overwritten by global.image.registry) | +| image.repository | string | `"svenstaro/miniserve"` | image repository | +| image.tag | string | `""` | image tag - Overrides the image tag whose default is the chart appVersion. | | imagePullSecrets | list | `[]` | | | ingress.annotations | object | `{}` | | | ingress.className | string | `""` | | @@ -105,7 +108,7 @@ helm uninstall miniserve-release | podAnnotations | object | `{}` | | | podLabels | object | `{}` | | | podSecurityContext | object | `{}` | | -| replicaCount | int | `1` | | +| replicaCount | int | `1` | replicas | | resources.limits.memory | string | `"256Mi"` | | | resources.requests.cpu | string | `"80m"` | | | resources.requests.memory | string | `"128Mi"` | | diff --git a/miniserve/templates/deployment.yaml b/miniserve/templates/deployment.yaml index 959665b..73984b4 100644 --- a/miniserve/templates/deployment.yaml +++ b/miniserve/templates/deployment.yaml @@ -35,8 +35,10 @@ spec: - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - image: "{{ .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 }} envFrom: - configMapRef: name: {{ include "miniserve.fullname" . }} diff --git a/miniserve/templates/tests/test-connection.yaml b/miniserve/templates/tests/test-connection.yaml deleted file mode 100644 index e2bb60e..0000000 --- a/miniserve/templates/tests/test-connection.yaml +++ /dev/null @@ -1,15 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: "{{ include "miniserve.fullname" . }}-test-connection" - labels: - {{- include "miniserve.labels" . | nindent 4 }} - annotations: - "helm.sh/hook": test -spec: - containers: - - name: wget - image: busybox - command: ['wget'] - args: ['{{ include "miniserve.fullname" . }}:{{ .Values.service.port }}'] - restartPolicy: Never diff --git a/miniserve/values.yaml b/miniserve/values.yaml index bd1afe9..85dbe4a 100644 --- a/miniserve/values.yaml +++ b/miniserve/values.yaml @@ -1,13 +1,22 @@ -# Default values for web-static. -# 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: + +# -- replicas replicaCount: 1 image: - repository: "docker.io/svenstaro/miniserve" + # -- image registry (could be overwritten by global.image.registry) + registry: docker.io + # -- image repository + repository: "svenstaro/miniserve" + # -- This sets the pull policy for images. (could be overwritten by global.image.pullPolicy) pullPolicy: IfNotPresent - # Overrides the image tag whose default is the chart appVersion. + # -- image tag - Overrides the image tag whose default is the chart appVersion. tag: "" imagePullSecrets: []