chore: build
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user