From 4afdbdb3fa990dd6aff1d4c1c191d0b29d20ca3f Mon Sep 17 00:00:00 2001 From: Kim-Norman Sahm Date: Thu, 7 Nov 2024 13:58:30 +0100 Subject: [PATCH] fix hardcoded migrate image (#38) --- .../templates/move-api-key-to-secret.yaml | 2 +- charts/gpu-metrics-exporter/values.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/charts/gpu-metrics-exporter/templates/move-api-key-to-secret.yaml b/charts/gpu-metrics-exporter/templates/move-api-key-to-secret.yaml index 38c29d4..2b8177c 100644 --- a/charts/gpu-metrics-exporter/templates/move-api-key-to-secret.yaml +++ b/charts/gpu-metrics-exporter/templates/move-api-key-to-secret.yaml @@ -13,7 +13,7 @@ spec: serviceAccountName: {{ include "gpu-metrics-exporter.serviceAccountName" . }} containers: - name: migrate - image: alpine/k8s:1.31.0 + image: "{{.Values.migrate.image.repository}}:{{.Values.migrate.image.tag}}" command: - /bin/sh - -c diff --git a/charts/gpu-metrics-exporter/values.yaml b/charts/gpu-metrics-exporter/values.yaml index 6cb58b5..70cc36a 100644 --- a/charts/gpu-metrics-exporter/values.yaml +++ b/charts/gpu-metrics-exporter/values.yaml @@ -44,3 +44,9 @@ gke: - matchExpressions: - key: cloud.google.com/gke-accelerator operator: Exists + +migrate: + image: + repository: alpine/k8s + pullPolicy: IfNotPresent + tag: 1.31.0 \ No newline at end of file