From 4759ce56ee4d1584e683a68450c736990783f540 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Fri, 30 May 2025 21:30:21 -0500 Subject: [PATCH] change method --- .../cl01tl/monitoring/shelly-plug/values.yaml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/clusters/cl01tl/monitoring/shelly-plug/values.yaml b/clusters/cl01tl/monitoring/shelly-plug/values.yaml index 41e5b9a9a..03f51a87f 100644 --- a/clusters/cl01tl/monitoring/shelly-plug/values.yaml +++ b/clusters/cl01tl/monitoring/shelly-plug/values.yaml @@ -6,19 +6,22 @@ shelly-plug: strategy: Recreate revisionHistoryLimit: 3 initContainers: - init-clone-repo: + init-fetch-repo: securityContext: runAsUser: 0 image: repository: alpine/git tag: latest pullPolicy: IfNotPresent - args: - - clone - - '--single-branch' - - '--' - - 'https://github.com/geerlingguy/shelly-plug-prometheus.git' - - '/var/www/html' + command: + - /bin/sh + - -ec + - | + - cd /var/www/html + - git init + - git remote add origin https://github.com/geerlingguy/shelly-plug-prometheus.git + - git fetch origin + - git checkout origin/master -ft resources: requests: cpu: 10m @@ -55,7 +58,7 @@ shelly-plug: retain: true advancedMounts: main: - init-clone-repo: + init-fetch-repo: - path: /var/www/html readOnly: false main: