From ca9301807e5df0dd5eb4e2341447630499fc1f47 Mon Sep 17 00:00:00 2001 From: bryopsida <8363252+bryopsida@users.noreply.github.com> Date: Sun, 2 Jan 2022 16:12:51 +0000 Subject: [PATCH] move image repo and tag out to values.yaml --- charts/k8s-dev-pod/Chart.yaml | 2 +- charts/k8s-dev-pod/templates/deployment.yaml | 2 +- charts/k8s-dev-pod/values.yaml | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/charts/k8s-dev-pod/Chart.yaml b/charts/k8s-dev-pod/Chart.yaml index 95d4656..c8a5f09 100644 --- a/charts/k8s-dev-pod/Chart.yaml +++ b/charts/k8s-dev-pod/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: k8s-dev-pod description: A Helm chart for deploying a dev environment inside a K8S cluster that is compatible with Visual Studio Code remote targets type: application -version: 0.1.2 +version: 0.1.3 appVersion: "0.1.0" diff --git a/charts/k8s-dev-pod/templates/deployment.yaml b/charts/k8s-dev-pod/templates/deployment.yaml index 35a56c7..45f173d 100644 --- a/charts/k8s-dev-pod/templates/deployment.yaml +++ b/charts/k8s-dev-pod/templates/deployment.yaml @@ -35,7 +35,7 @@ spec: - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} - image: "ghcr.io/bryopsida/k8s-dev-pod:main" + image: "{{ .Values.image.repo }}:{{ .Values.image.tag }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: ssh diff --git a/charts/k8s-dev-pod/values.yaml b/charts/k8s-dev-pod/values.yaml index ff15fc7..66426fe 100644 --- a/charts/k8s-dev-pod/values.yaml +++ b/charts/k8s-dev-pod/values.yaml @@ -1,3 +1,5 @@ image: + repo: ghcr.io/bryopsida/k8s-dev-pod + tag: main pullPolicy: Always homeSize: 20 \ No newline at end of file