Skip to content

Commit 51b5360

Browse files
authored
Merge pull request #1130 from camilamacedo86/fix-import
Fix import
2 parents 702b272 + a07f5ac commit 51b5360

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ generate-vendor: ## Update/generate the vendor by using the path $GOPATH/src/sig
6060
.PHONY: generate-setup
6161
generate-setup: ## Current workarround to generate the testdata with the correct controller-gen version
6262
- rm -rf $(CONTROLLER_GEN_BIN_PATH)
63-
- GO111MODULE=on go get sigs.k8s.io/controller-tools/cmd/[email protected].1
63+
- GO111MODULE=on go get sigs.k8s.io/controller-tools/cmd/[email protected].2
6464

6565
##@ Tests
6666

pkg/scaffold/v2/controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ import (
7474
ctrl "sigs.k8s.io/controller-runtime"
7575
"sigs.k8s.io/controller-runtime/pkg/client"
7676
"github.com/go-logr/logr"
77+
"k8s.io/apimachinery/pkg/runtime"
7778
7879
{{ .Resource.GroupImportSafe }}{{ .Resource.Version }} "{{ .ResourcePackage }}/{{ .Resource.Version }}"
7980
)

testdata/project-v2/controllers/namespace_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ import (
2020
"context"
2121

2222
"github.com/go-logr/logr"
23+
"k8s.io/apimachinery/pkg/runtime"
2324
ctrl "sigs.k8s.io/controller-runtime"
2425
"sigs.k8s.io/controller-runtime/pkg/client"
2526

2627
corev1 "k8s.io/api/core/v1"
27-
"k8s.io/apimachinery/pkg/runtime"
2828
)
2929

3030
// NamespaceReconciler reconciles a Namespace object

0 commit comments

Comments
 (0)