chore: build
ci-api / test (push) Failing after 14m25s
ci-web / test (push) Failing after 8m17s

This commit is contained in:
Xor290
2026-09-20 16:14:29 +02:00
parent 76b1412968
commit 9e11f01c2c
15 changed files with 65 additions and 359 deletions
+4 -6
View File
@@ -136,7 +136,7 @@ func main() {
metricsClient = nil
}
helmProv, err := demos.NewHelmProvisioner(&cfg, k8sClient, restConfig, metricsClient, "/charts", "helm")
helmProv, err := demos.NewHelmProvisioner(&cfg, k8sClient, restConfig, metricsClient, "/charts", "/charts-vitrine", "helm")
if err != nil {
log.Fatalf("helm provisioner: %v", err)
}
@@ -169,11 +169,10 @@ func main() {
go demoSvc.RunExpirationLoop(context.Background(), 5*time.Minute)
// Projets vitrine (abonnements de 1 à 12 mois) : même cluster, mêmes
// sauvegardes Velero que les démos, mais suspension puis suppression après
// un délai de grâce à l'échéance (voir internal/projects).
// sauvegardes Velero que les démos, mais durée choisie au déploiement puis
// prolongée ; supprimés à l'échéance (voir internal/projects).
projectSvc := projects.NewService(projectStore, helmProv, projects.Config{
Domain: cfg.VitrineDomain,
Grace: time.Duration(cfg.VitrineGraceDays) * 24 * time.Hour,
})
go projectSvc.RunExpirationLoop(context.Background(), 5*time.Minute)
@@ -193,8 +192,7 @@ func main() {
ns = append(ns, d.Namespace)
}
}
// Projets vitrine en ligne (un projet suspendu n'a plus de pods :
// l'alerte « pod absent » serait un faux positif).
// Projets vitrine en ligne.
ps, err := projectSvc.List()
if err != nil {
return nil, err