From 51ab9784cc62861c6aa4edba6c98f6e4ad1c67bc Mon Sep 17 00:00:00 2001 From: danmx Date: Tue, 20 Apr 2021 12:29:27 +0200 Subject: [PATCH] fix(helm): allowing to specify the container image Signed-off-by: danmx --- README.md | 2 ++ chart/Chart.yaml | 2 +- chart/templates/deployment.yaml | 2 +- chart/values.yaml | 4 ++++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b4a20d3..e88213a 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,8 @@ helm install valheim-server valheim-k8s/valheim-k8s \ | `storage.pvc.size` | The size of the persistent volume to be created | `1Gi` | | `networking.serviceType` | The type of service e.g `NodePort`, `LoadBalancer` or `ClusterIP` | `LoadBalancer` | | `nodeSelector` | | `{}` | +| `image.repository` | Specifies container image repository | `lloesche/valheim-server` | +| `image.tag` | Specifies container image tag | `latest` | ## Persistence diff --git a/chart/Chart.yaml b/chart/Chart.yaml index df20c30..8f8c464 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: valheim-k8s description: Basic chart for deploying valheim to a k8s homelab type: application -version: 0.1.0 +version: 0.2.0 appVersion: 1.16.0 \ No newline at end of file diff --git a/chart/templates/deployment.yaml b/chart/templates/deployment.yaml index 379fc98..64bceb1 100644 --- a/chart/templates/deployment.yaml +++ b/chart/templates/deployment.yaml @@ -18,7 +18,7 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} containers: - - image: lloesche/valheim-server:latest + - image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" name: valheim-server env: - name: SERVER_NAME diff --git a/chart/values.yaml b/chart/values.yaml index 2277547..639a0fc 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -4,6 +4,10 @@ password: password resources: {} +image: + repository: lloesche/valheim-server + tag: latest + storage: kind: hostvol hostvol: