change method

This commit is contained in:
2025-05-30 21:30:21 -05:00
parent 0bfd956a68
commit 4759ce56ee

View File

@@ -6,19 +6,22 @@ shelly-plug:
strategy: Recreate strategy: Recreate
revisionHistoryLimit: 3 revisionHistoryLimit: 3
initContainers: initContainers:
init-clone-repo: init-fetch-repo:
securityContext: securityContext:
runAsUser: 0 runAsUser: 0
image: image:
repository: alpine/git repository: alpine/git
tag: latest tag: latest
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
args: command:
- clone - /bin/sh
- '--single-branch' - -ec
- '--' - |
- 'https://github.com/geerlingguy/shelly-plug-prometheus.git' - cd /var/www/html
- '/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: resources:
requests: requests:
cpu: 10m cpu: 10m
@@ -55,7 +58,7 @@ shelly-plug:
retain: true retain: true
advancedMounts: advancedMounts:
main: main:
init-clone-repo: init-fetch-repo:
- path: /var/www/html - path: /var/www/html
readOnly: false readOnly: false
main: main: