Skip to content

Commit

Permalink
Adjust the project's directory structure
Browse files Browse the repository at this point in the history
  • Loading branch information
rainzm committed May 22, 2020
1 parent 8abac21 commit 958333e
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion controllers/ansibleplaybook_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (
"yunion.io/x/pkg/utils"

onecloudv1 "yunion.io/x/onecloud-service-operator/api/v1"
"yunion.io/x/onecloud-service-operator/provider"
"yunion.io/x/onecloud-service-operator/pkg/provider"
)

const (
Expand All @@ -48,6 +48,8 @@ type AnsiblePlaybookReconciler struct {
client.Client
Log logr.Logger
Scheme *runtime.Scheme
// Enable intensive information collection during the reconcile process
Dense bool
}

// +kubebuilder:rbac:groups=onecloud.yunion.io,resources=ansibleplaybooks,verbs=get;list;watch;create;update;patch;delete
Expand Down
2 changes: 1 addition & 1 deletion controllers/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"

onecloudv1 "yunion.io/x/onecloud-service-operator/api/v1"
"yunion.io/x/onecloud-service-operator/provider"
"yunion.io/x/onecloud-service-operator/pkg/provider"
)

func dealErr(ctx context.Context, logger logr.Logger, sclient client.StatusClient, re onecloudv1.IResource,
Expand Down
4 changes: 2 additions & 2 deletions controllers/virtualmachine_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (
"yunion.io/x/pkg/utils"

onecloudv1 "yunion.io/x/onecloud-service-operator/api/v1"
"yunion.io/x/onecloud-service-operator/provider"
"yunion.io/x/onecloud-service-operator/util"
"yunion.io/x/onecloud-service-operator/pkg/provider"
"yunion.io/x/onecloud-service-operator/pkg/util"
)

// VirtualMachineReconciler reconciles a VirtualMachine object
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
onecloudutils "yunion.io/x/pkg/utils"

onecloudv1 "yunion.io/x/onecloud-service-operator/api/v1"
"yunion.io/x/onecloud-service-operator/util"
"yunion.io/x/onecloud-service-operator/pkg/util"
)

func (oc OnecloudProvider) VMCreate(ctx context.Context, vm *onecloudv1.VirtualMachine) (onecloudv1.ExternalInfoBase, error) {
Expand Down
File renamed without changes.

0 comments on commit 958333e

Please sign in to comment.