Skip to content

Commit

Permalink
fix: corev1 imports
Browse files Browse the repository at this point in the history
  • Loading branch information
leovct committed May 16, 2024
1 parent 38b9a90 commit 04c2ad6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions operator-v1/internal/controller/foo_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package controller
import (
"context"

corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
ctrl "sigs.k8s.io/controller-runtime"
Expand Down
1 change: 1 addition & 0 deletions operator-v2/internal/controller/foo_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package controller
import (
"context"

corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/types"
ctrl "sigs.k8s.io/controller-runtime"
Expand Down
2 changes: 1 addition & 1 deletion scripts/upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ scaffold_project "$project_name"
cat <<EOF
TODO: Implement the Foo CRD (<FooSpec> and <FooStatus>)
TODO: Implement the controller (RBAC permissions, reconcile and setupWithManager functions)
NOTE: You may need to resolve some imports such as <corev1>
TODO: Resolve imports such as <corev1>
EOF

wait_for_user_confirmation
Expand Down

0 comments on commit 04c2ad6

Please sign in to comment.