Skip to content

Commit

Permalink
Rename controller packages to controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
Artyom Lukianov committed Apr 4, 2019
1 parent 3a55980 commit f4a13fb
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 15 deletions.
4 changes: 2 additions & 2 deletions cmd/machine-healthcheck/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/golang/glog"
mapiv1 "github.com/openshift/cluster-api/pkg/apis/machine/v1beta1"
"github.com/openshift/machine-api-operator/pkg/apis/healthchecking/v1alpha1"
"github.com/openshift/machine-api-operator/pkg/controller"
"github.com/openshift/machine-api-operator/pkg/controllers"
sdkVersion "github.com/operator-framework/operator-sdk/version"
_ "k8s.io/client-go/plugin/pkg/client/auth/gcp"
"sigs.k8s.io/controller-runtime/pkg/client/config"
Expand Down Expand Up @@ -48,7 +48,7 @@ func main() {
}

// Setup all Controllers
if err := controller.AddToManager(mgr); err != nil {
if err := controllers.AddToManager(mgr); err != nil {
glog.Fatal(err)
}

Expand Down
12 changes: 0 additions & 12 deletions pkg/controller/add_controllers.go

This file was deleted.

10 changes: 10 additions & 0 deletions pkg/controllers/add_disruption.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package controllers

import (
"github.com/openshift/machine-api-operator/pkg/controllers/disruption"
)

func init() {
// AddToManagerFuncs is a list of functions to create controllers and add them to a manager.
AddToManagerFuncs = append(AddToManagerFuncs, disruption.Add)
}
10 changes: 10 additions & 0 deletions pkg/controllers/add_machinehealthcheck.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package controllers

import (
"github.com/openshift/machine-api-operator/pkg/controllers/machinehealthcheck"
)

func init() {
// AddToManagerFuncs is a list of functions to create controllers and add them to a manager.
AddToManagerFuncs = append(AddToManagerFuncs, machinehealthcheck.Add)
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package controller
package controllers

import (
"sigs.k8s.io/controller-runtime/pkg/manager"
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit f4a13fb

Please sign in to comment.