fix: add csi stage & pin git repo version

This commit is contained in:
unteem 2023-04-14 16:03:02 +02:00
parent 30e2ed02f0
commit f42e21a889

View file

@ -22,6 +22,7 @@ import (
"k8s.io/client-go/rest" "k8s.io/client-go/rest"
"libre.sh/cli/pkg/component" "libre.sh/cli/pkg/component"
"libre.sh/cli/pkg/component/crds" "libre.sh/cli/pkg/component/crds"
"libre.sh/cli/pkg/component/csi"
"libre.sh/cli/pkg/component/databases" "libre.sh/cli/pkg/component/databases"
"libre.sh/cli/pkg/component/general" "libre.sh/cli/pkg/component/general"
"libre.sh/cli/pkg/component/minio" "libre.sh/cli/pkg/component/minio"
@ -91,9 +92,9 @@ func NewLibreshModel(manager *ssa.ResourceManager) LibreshModel {
&crds.Model{ &crds.Model{
ScopeModel: &component.ScopeModel{}, ScopeModel: &component.ScopeModel{},
}, },
/* &csi.Model{ &csi.Model{
ScopeModel: &component.ScopeModel{}, ScopeModel: &component.ScopeModel{},
}, */ },
&networking.Model{ &networking.Model{
ScopeModel: &component.ScopeModel{}, ScopeModel: &component.ScopeModel{},
}, },
@ -181,8 +182,7 @@ func initStage(cmd *cobra.Command, args []string) {
gitRepo.Spec = sourcev1.GitRepositorySpec{ gitRepo.Spec = sourcev1.GitRepositorySpec{
URL: "https://forge.liiib.re/libre.sh/libre.sh", URL: "https://forge.liiib.re/libre.sh/libre.sh",
Reference: &sourcev1.GitRepositoryRef{ Reference: &sourcev1.GitRepositoryRef{
// TODO fix when we are prod ready Tag: "v0.1.0",
Branch: "runtime",
}, },
Ignore: &ignore, Ignore: &ignore,
Interval: metav1.Duration{ Interval: metav1.Duration{