Skip to content

Commit

Permalink
Replace deprecated method use for CR v0.15.0
Browse files Browse the repository at this point in the history
This change replaces deprecated method usage with the new standards
defined by controller-runtime v0.15.0.

The changes are noted in the release notes:
https://github.com/kubernetes-sigs/controller-runtime/releases/tag/v0.15.0

Specifically we are changing:
    1. Usage of options.Namespace replaced by options.Cache.Namespaces
    2. Usage of MultiNamespacedCacheBuilder replaced by
       options.Cache{Namespaces} struct.
    3. wait.ErrWaitTimeout replaced by wait.Interrupted(err)

Signed-off-by: Brendan Shephard <bshephar@redhat.com>
  • Loading branch information
bshephar committed Jul 6, 2023
1 parent 1b91307 commit 5e09267
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/plugins/hybrid/v1alpha/scaffolds/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ import (
"sigs.k8s.io/kubebuilder/v3/pkg/plugins"

kustomizev2 "sigs.k8s.io/kubebuilder/v3/pkg/plugins/common/kustomize/v2"
<<<<<<< HEAD
golangv4 "sigs.k8s.io/kubebuilder/v3/pkg/plugins/golang/v4/scaffolds"
=======
golangv3 "sigs.k8s.io/kubebuilder/v3/pkg/plugins/golang/v3/scaffolds"
>>>>>>> 6410ccf (Bump controller-runtime and k8s.io deps)
)

const (
Expand Down

0 comments on commit 5e09267

Please sign in to comment.