Skip to content

Commit

Permalink
Remove use of obsolete operator-sdk
Browse files Browse the repository at this point in the history
Only 2 uses remained:

- Logging the sdk version - not needed since we're no longer using it.
- k8sutil.ResourceExists - small function so just inline it.

As a result, k8s.io/client-go no longer needs to be replaced in the
go.mod.

Signed-off-by: Tom Pantelis <[email protected]>
  • Loading branch information
tpantelis committed Aug 26, 2022
1 parent a4d259b commit 4720ec4
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 523 deletions.
9 changes: 1 addition & 8 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ require (
github.com/openshift/api v0.0.0-20211201215911-5a82bae32e46
github.com/openshift/cluster-dns-operator v0.0.0-20200529200012-f9e4dfc90c57
github.com/operator-framework/operator-lib v0.4.0
github.com/operator-framework/operator-sdk v0.19.0
github.com/pkg/errors v0.9.1
github.com/prometheus-operator/prometheus-operator/pkg/apis/monitoring v0.58.0
github.com/prometheus-operator/prometheus-operator/pkg/client v0.58.0
Expand All @@ -23,7 +22,7 @@ require (
k8s.io/api v0.24.3
k8s.io/apiextensions-apiserver v0.24.3
k8s.io/apimachinery v0.24.3
k8s.io/client-go v12.0.0+incompatible
k8s.io/client-go v0.24.3
k8s.io/utils v0.0.0-20220713171938-56c0de1e6f5e
sigs.k8s.io/controller-runtime v0.12.3
sigs.k8s.io/controller-tools v0.9.2
Expand Down Expand Up @@ -136,9 +135,3 @@ require (
sigs.k8s.io/mcs-api v0.1.0 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
)

// When changing pins, check the dependabot configuration too
// in .github/dependabot.yml

// Pinned to kubernetes-1.24.3
replace k8s.io/client-go => k8s.io/client-go v0.24.3
Loading

0 comments on commit 4720ec4

Please sign in to comment.