Skip to content

Commit

Permalink
move to initalize Kluster with namespace by coincidence :(
Browse files Browse the repository at this point in the history
  • Loading branch information
BugRoger committed Sep 18, 2017
1 parent b4e84cc commit d8175b7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/controller/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,6 @@ func NewKubernikusOperator(options *KubernikusOperatorOptions) *KubernikusOperat
options.AuthProjectDomain,
)

o.Clients.Satellites = kube.NewSharedClientFactory(
o.Clients.Kubernetes.Core().Secrets(options.Namespace),
o.Factories.Kubernikus.Kubernikus().V1().Klusters().Informer(),
)

for _, k := range options.Controllers {
switch k {
case "groundctl":
Expand All @@ -166,6 +161,11 @@ func NewKubernikusOperator(options *KubernikusOperatorOptions) *KubernikusOperat
}
}

o.Clients.Satellites = kube.NewSharedClientFactory(
o.Clients.Kubernetes.Core().Secrets(options.Namespace),
o.Factories.Kubernikus.Kubernikus().V1().Klusters().Informer(),
)

return o
}

Expand Down

0 comments on commit d8175b7

Please sign in to comment.