Hi I would like to schedule a deployment. I have ...
# fleet
t
Hi I would like to schedule a deployment. I have a helm chart with helm values. values similar to this:
list:
- namespace: test-dind-1
name: dev-container-gpu
startDate: 2025-02-04 14:00 +0100
endDate: 2025-02-04 14:10 +0100
Then i have a deployment looking similar to this:
{{- range .Values.list }}
{{- $pattern := "2006-01-02 15:04 -0700" }}
{{- $startDate:= toDate $pattern .startDate | unixEpoch | float64 -}}
{{- $endDate:= toDate $pattern .endDate | unixEpoch | float64 -}}
{{- $now := now | unixEpoch | float64 -}}
{{- if and (gt $now  $startDate) (lt $now  $endDate) }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .name }}
And it works as long as I make a git-change or force update on the repo inside fleet. But if I just leave it it won't recompile the template so it can notice that it has to deploy/undeploy. Is there something I can change for this to work? I'm using Rancher 2.8.3 and fleet version seems to be: rancher/fleet:v0.9.13