Skip to content

Commit a07f5ac

Browse files
fix add missing import in the controller
1 parent fa6cbfb commit a07f5ac

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

pkg/scaffold/v2/controller.go

+1
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

+1-1
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)