Skip to content

Commit 5a7ccc2

Browse files
umagolpiwowar
andcommitted
Add OpenStack Lightspeed Controller
This patch introduces the existing OpenStack Lightspeed Controller code from openstack-k8s-operators/openstack-operator#1495 Co-authored-by: Lukáš Piwowarski <lpiwowar@redhat.com> Signed-off-by: Lucas Alvares Gomes <lucasagomes@gmail.com>
1 parent 320e37e commit 5a7ccc2

4 files changed

Lines changed: 610 additions & 5 deletions

File tree

cmd/main.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,9 @@ func main() {
144144
os.Exit(1)
145145
}
146146

147+
// Defaults for OpenStackLightspeed
148+
apiv1beta1.SetupDefaults()
149+
147150
if err = (&controller.OpenStackLightspeedReconciler{
148151
Client: mgr.GetClient(),
149152
Scheme: mgr.GetScheme(),

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ module github.com/openstack-lightspeed/operator
33
go 1.22.0
44

55
require (
6+
github.com/go-logr/logr v1.4.2
67
github.com/onsi/ginkgo/v2 v2.20.1
78
github.com/onsi/gomega v1.34.1
89
github.com/openstack-k8s-operators/lib-common/modules/common v0.6.0
10+
k8s.io/api v0.30.1
911
k8s.io/apimachinery v0.30.1
1012
k8s.io/client-go v0.30.1
1113
sigs.k8s.io/controller-runtime v0.18.4
@@ -22,7 +24,6 @@ require (
2224
github.com/evanphx/json-patch/v5 v5.9.0 // indirect
2325
github.com/felixge/httpsnoop v1.0.3 // indirect
2426
github.com/fsnotify/fsnotify v1.7.0 // indirect
25-
github.com/go-logr/logr v1.4.2 // indirect
2627
github.com/go-logr/stdr v1.2.2 // indirect
2728
github.com/go-logr/zapr v1.3.0 // indirect
2829
github.com/go-openapi/jsonpointer v0.21.0 // indirect
@@ -81,7 +82,6 @@ require (
8182
gopkg.in/inf.v0 v0.9.1 // indirect
8283
gopkg.in/yaml.v2 v2.4.0 // indirect
8384
gopkg.in/yaml.v3 v3.0.1 // indirect
84-
k8s.io/api v0.30.1 // indirect
8585
k8s.io/apiextensions-apiserver v0.30.1 // indirect
8686
k8s.io/apiserver v0.30.1 // indirect
8787
k8s.io/component-base v0.30.1 // indirect

0 commit comments

Comments
 (0)