Skip to content

Commit 5b39563

Browse files
authored
Fix deprecated client-pkg in favor of knative.dev/client/pkg (#365)
* Fix deprecated client-pkg in favor of knative.dev/client/pkg * Fix formatting
1 parent aeb1784 commit 5b39563

File tree

296 files changed

+9017
-9325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

296 files changed

+9017
-9325
lines changed

go.mod

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ go 1.22.7
44

55
require (
66
github.com/hashicorp/golang-lru v1.0.2
7-
github.com/hashicorp/hcl v1.0.0
7+
github.com/hashicorp/hcl v1.0.1-vault-5
88
github.com/mitchellh/go-homedir v1.1.0
99
github.com/spf13/cobra v1.8.1
10-
github.com/spf13/viper v1.13.0
10+
github.com/spf13/viper v1.16.0
1111
gopkg.in/yaml.v2 v2.4.0
1212
gotest.tools/v3 v3.3.0
1313
k8s.io/api v0.31.4
1414
k8s.io/apimachinery v0.31.4
1515
k8s.io/client-go v0.31.4
16-
knative.dev/client-pkg v0.0.0-20250123014150-0acf80a54bc4
16+
knative.dev/client/pkg v0.0.0-20250123014217-178db3230101
1717
knative.dev/hack v0.0.0-20250116150306-c142b4835bc5
1818
knative.dev/networking v0.0.0-20250117155906-67d1c274ba6a
1919
knative.dev/serving v0.44.0
@@ -22,6 +22,7 @@ require (
2222
require (
2323
contrib.go.opencensus.io/exporter/ocagent v0.7.1-0.20200907061046-05415f1de66d // indirect
2424
contrib.go.opencensus.io/exporter/prometheus v0.4.2 // indirect
25+
emperror.dev/errors v0.8.1 // indirect
2526
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 // indirect
2627
github.com/antlr/antlr4/runtime/Go/antlr v1.4.10 // indirect
2728
github.com/beorn7/perks v1.0.1 // indirect
@@ -63,20 +64,19 @@ require (
6364
github.com/kelseyhightower/envconfig v1.4.0 // indirect
6465
github.com/klauspost/compress v1.17.9 // indirect
6566
github.com/liggitt/tabwriter v0.0.0-20181228230101-89fcab3d43de // indirect
66-
github.com/magiconair/properties v1.8.6 // indirect
67+
github.com/magiconair/properties v1.8.7 // indirect
6768
github.com/mailru/easyjson v0.7.7 // indirect
6869
github.com/mitchellh/mapstructure v1.5.0 // indirect
6970
github.com/moby/spdystream v0.4.0 // indirect
70-
github.com/moby/term v0.0.0-20221205130635-1aeaba878587 // indirect
71+
github.com/moby/term v0.5.0 // indirect
7172
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
7273
github.com/modern-go/reflect2 v1.0.2 // indirect
7374
github.com/monochromegane/go-gitignore v0.0.0-20200626010858-205db1a8cc00 // indirect
7475
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
7576
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f // indirect
7677
github.com/opencontainers/go-digest v1.0.0 // indirect
7778
github.com/openzipkin/zipkin-go v0.4.3 // indirect
78-
github.com/pelletier/go-toml v1.9.5 // indirect
79-
github.com/pelletier/go-toml/v2 v2.0.5 // indirect
79+
github.com/pelletier/go-toml/v2 v2.0.9 // indirect
8080
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
8181
github.com/pkg/errors v0.9.1 // indirect
8282
github.com/prometheus/client_golang v1.20.4 // indirect
@@ -87,11 +87,11 @@ require (
8787
github.com/rickb777/date v1.20.0 // indirect
8888
github.com/rickb777/plural v1.4.1 // indirect
8989
github.com/robfig/cron/v3 v3.0.1 // indirect
90-
github.com/spf13/afero v1.9.2 // indirect
91-
github.com/spf13/cast v1.5.0 // indirect
90+
github.com/spf13/afero v1.10.0 // indirect
91+
github.com/spf13/cast v1.5.1 // indirect
9292
github.com/spf13/jwalterweatherman v1.1.0 // indirect
9393
github.com/spf13/pflag v1.0.5 // indirect
94-
github.com/subosito/gotenv v1.4.1 // indirect
94+
github.com/subosito/gotenv v1.6.0 // indirect
9595
github.com/x448/float16 v0.8.4 // indirect
9696
github.com/xlab/treeprint v1.2.0 // indirect
9797
go.opencensus.io v0.24.0 // indirect
@@ -121,7 +121,7 @@ require (
121121
k8s.io/klog/v2 v2.130.1 // indirect
122122
k8s.io/kube-openapi v0.0.0-20240903163716-9e1beecbcb38 // indirect
123123
k8s.io/utils v0.0.0-20240921022957-49e7df575cb6 // indirect
124-
knative.dev/eventing v0.43.0 // indirect
124+
knative.dev/eventing v0.44.0 // indirect
125125
knative.dev/pkg v0.0.0-20250117084104-c43477f0052b // indirect
126126
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
127127
sigs.k8s.io/kustomize/api v0.13.5-0.20230601165947-6ce0bf390ce3 // indirect

go.sum

Lines changed: 39 additions & 32 deletions
Large diffs are not rendered by default.

pkg/command/autoscaling/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import (
2626
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2727
metav1beta1 "k8s.io/apimachinery/pkg/apis/meta/v1beta1"
2828
_ "k8s.io/client-go/plugin/pkg/client/auth/oidc"
29-
"knative.dev/client-pkg/pkg/commands/flags"
30-
hprinters "knative.dev/client-pkg/pkg/printers"
29+
"knative.dev/client/pkg/commands/flags"
30+
hprinters "knative.dev/client/pkg/printers"
3131
"knative.dev/kn-plugin-admin/pkg"
3232
"knative.dev/serving/pkg/autoscaler/config"
3333
"knative.dev/serving/pkg/autoscaler/config/autoscalerconfig"

pkg/command/autoscaling/list_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"gotest.tools/v3/assert"
2424
corev1 "k8s.io/api/core/v1"
2525
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
26-
"knative.dev/client-pkg/pkg/util"
26+
"knative.dev/client/pkg/util"
2727
"knative.dev/kn-plugin-admin/pkg/testutil"
2828
"knative.dev/serving/pkg/autoscaler/config"
2929
)

pkg/command/autoscaling/update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3131
_ "k8s.io/client-go/plugin/pkg/client/auth/oidc"
3232

33-
"knative.dev/client-pkg/pkg/flags"
33+
"knative.dev/client/pkg/flags"
3434

3535
as "knative.dev/serving/pkg/apis/autoscaling"
3636
)

pkg/command/cdc/list.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ import (
2020
"github.com/spf13/cobra"
2121
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2222
metav1beta1 "k8s.io/apimachinery/pkg/apis/meta/v1beta1"
23-
"knative.dev/client-pkg/pkg/commands/flags"
24-
"knative.dev/client-pkg/pkg/printers"
25-
hprinters "knative.dev/client-pkg/pkg/printers"
23+
"knative.dev/client/pkg/commands/flags"
24+
"knative.dev/client/pkg/printers"
25+
hprinters "knative.dev/client/pkg/printers"
2626
"knative.dev/kn-plugin-admin/pkg"
2727
typev1alpha1 "knative.dev/networking/pkg/apis/networking/v1alpha1"
2828
)

pkg/command/domain/human_readable_flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
corev1 "k8s.io/api/core/v1"
2222
metav1beta1 "k8s.io/apimachinery/pkg/apis/meta/v1beta1"
2323

24-
hprinters "knative.dev/client-pkg/pkg/printers"
24+
hprinters "knative.dev/client/pkg/printers"
2525
)
2626

2727
// DomainListHandlers adds print handlers for domain list command

pkg/command/domain/list.go

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

2121
"github.com/spf13/cobra"
2222
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
23-
"knative.dev/client-pkg/pkg/commands/flags"
23+
"knative.dev/client/pkg/commands/flags"
2424
"knative.dev/kn-plugin-admin/pkg"
2525
)
2626

pkg/command/domain/list_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"gotest.tools/v3/assert"
2222
corev1 "k8s.io/api/core/v1"
2323
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
24-
"knative.dev/client-pkg/pkg/util"
24+
"knative.dev/client/pkg/util"
2525

2626
"knative.dev/kn-plugin-admin/pkg/testutil"
2727
)

pkg/command/registry/add.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121

2222
corev1 "k8s.io/api/core/v1"
2323
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
24-
"knative.dev/client-pkg/pkg/commands"
24+
"knative.dev/client/pkg/commands"
2525
"knative.dev/kn-plugin-admin/pkg"
2626

2727
"encoding/json"

0 commit comments

Comments
 (0)