Skip to content

Commit

Permalink
Fix formatting and add missing auto-generated code
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Martín <mmartinv@redhat.com>
  • Loading branch information
mmartinv authored and ahadas committed Jul 2, 2023
1 parent 57dc6c1 commit 9f6a24e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion pkg/apis/forklift/v1beta1/plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ func (p *Plan) VSphereUsesEl9VirtV2v() (bool, error) {
return false, nil
}


// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type PlanList struct {
meta.TypeMeta `json:",inline"`
Expand Down
1 change: 0 additions & 1 deletion pkg/controller/plan/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -1691,7 +1691,6 @@ func (r *Migration) setOpenStackPopulatorLabels(vm *plan.VMStatus, pvcs []core.P
return
}

//
func (r *Migration) setPopulatorPodsWithLabels(vm *plan.VMStatus, migrationID string) {
podList, err := r.kubevirt.GetPodsWithLabels(map[string]string{})
if err != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,16 @@ import (

"github.com/konveyor/forklift-controller/pkg/apis"
api "github.com/konveyor/forklift-controller/pkg/apis/forklift/v1beta1"
liberr "github.com/konveyor/forklift-controller/pkg/lib/error"
"github.com/konveyor/forklift-controller/pkg/forklift-api/webhooks/util"
liberr "github.com/konveyor/forklift-controller/pkg/lib/error"
admissionv1 "k8s.io/api/admission/v1beta1"
"k8s.io/client-go/kubernetes/scheme"
"k8s.io/client-go/rest"
"sigs.k8s.io/controller-runtime/pkg/client"
)


type ProviderAdmitter struct {
client client.Client
client client.Client
provider api.Provider
}

Expand Down Expand Up @@ -58,7 +57,7 @@ func (admitter *ProviderAdmitter) validateVDDK() error {
context.TODO(),
client.ObjectKey{
Namespace: plan.Spec.Provider.Destination.Namespace,
Name: plan.Spec.Provider.Destination.Name,
Name: plan.Spec.Provider.Destination.Name,
},
&destinationProvider)
if err != nil {
Expand Down

0 comments on commit 9f6a24e

Please sign in to comment.