Skip to content

Commit

Permalink
refactor(operator): use a common label (jivaapi) to reference jiva api (
Browse files Browse the repository at this point in the history
#171)

resolves #169

Signed-off-by: Abhishek Singh Baghel <abhib@microsoft.com>
  • Loading branch information
abhisheksinghbaghel authored Dec 10, 2021
1 parent b8b205d commit 3bd622d
Show file tree
Hide file tree
Showing 8 changed files with 90 additions and 90 deletions.
4 changes: 2 additions & 2 deletions cmd/manager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
// to ensure that exec-entrypoint and run can make use of them.
_ "k8s.io/client-go/plugin/pkg/client/auth"

api "github.com/openebs/jiva-operator/pkg/apis/openebs/v1"
jivaAPI "github.com/openebs/jiva-operator/pkg/apis/openebs/v1"
"github.com/openebs/jiva-operator/pkg/controllers"
"github.com/openebs/jiva-operator/version"
"github.com/sirupsen/logrus"
Expand All @@ -48,7 +48,7 @@ var (
func init() {
utilruntime.Must(clientgoscheme.AddToScheme(scheme))

utilruntime.Must(api.AddToScheme(scheme))
utilruntime.Must(jivaAPI.AddToScheme(scheme))
// +kubebuilder:scaffold:scheme
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/addtoscheme_openebs_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ limitations under the License.
package apis

import (
api "github.com/openebs/jiva-operator/pkg/apis/openebs/v1"
jivaAPI "github.com/openebs/jiva-operator/pkg/apis/openebs/v1"
)

func init() {
// Register the types with the Scheme so the components can map objects to GroupVersionKinds and back
AddToSchemes = append(AddToSchemes, api.SchemeBuilder.AddToScheme)
AddToSchemes = append(AddToSchemes, jivaAPI.SchemeBuilder.AddToScheme)
}
Loading

0 comments on commit 3bd622d

Please sign in to comment.