Skip to content

Commit d5ff1ae

Browse files
committed
update kubebuilder-declarative-pattern
1 parent 88828f0 commit d5ff1ae

File tree

4 files changed

+15
-19
lines changed

4 files changed

+15
-19
lines changed

pkg/plugins/golang/declarative/v1/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import (
3232
const (
3333
// kbDeclarativePattern is the sigs.k8s.io/kubebuilder-declarative-pattern version
3434
kbDeclarativePatternForV2 = "v0.0.0-20200522144838-848d48e5b073"
35-
kbDeclarativePatternForV3V4 = "18dbaf5fcd851e6adc3f2f8a8facb669a1420797"
35+
kbDeclarativePatternForV3V4 = "9a410556b95de526e12acfe0d6f56fd35c0b0135"
3636
)
3737

3838
var _ plugin.CreateAPISubcommand = &createAPISubcommand{}

testdata/project-v4-config/cmd/main.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ import (
2020
"flag"
2121
"os"
2222

23-
"sigs.k8s.io/controller-runtime/examples/configfile/custom/v1alpha1"
24-
"sigs.k8s.io/controller-runtime/pkg/config"
25-
2623
// Import all Kubernetes client auth plugins (e.g. Azure, GCP, OIDC, etc.)
2724
// to ensure that exec-entrypoint and run can make use of them.
2825
_ "k8s.io/client-go/plugin/pkg/client/auth"
@@ -68,8 +65,7 @@ func main() {
6865
var err error
6966
options := ctrl.Options{Scheme: scheme}
7067
if configFile != "" {
71-
ctrlConfig := v1alpha1.CustomControllerManagerConfiguration{}
72-
options, err = options.AndFrom(config.File().AtPath(configFile).OfKind(&ctrlConfig))
68+
options, err = options.AndFrom(ctrl.ConfigFile().AtPath(configFile))
7369
if err != nil {
7470
setupLog.Error(err, "unable to load the config file")
7571
os.Exit(1)

testdata/project-v4-config/config/manager/controller_manager_config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ webhook:
1616
port: 9443
1717
leaderElection:
1818
leaderElect: true
19-
resourceNamespace: testproject.org
2019
resourceName: 89f7a333.testproject.org
2120
# leaderElectionReleaseOnCancel defines if the leader should step down volume
2221
# when the Manager ends. This requires the binary to immediately end when the

testdata/project-v4-declarative-v1/go.mod

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ require (
99
k8s.io/apimachinery v0.27.2
1010
k8s.io/client-go v0.27.2
1111
sigs.k8s.io/controller-runtime v0.15.0
12-
sigs.k8s.io/kubebuilder-declarative-pattern v0.13.0-beta.1.0.20230113160225-18dbaf5fcd85
12+
sigs.k8s.io/kubebuilder-declarative-pattern v0.13.0-beta.1.0.20230604223042-9a410556b95d
1313
)
1414

1515
require (
@@ -20,7 +20,7 @@ require (
2020
github.com/cespare/xxhash/v2 v2.2.0 // indirect
2121
github.com/chai2010/gettext-go v1.0.2 // indirect
2222
github.com/davecgh/go-spew v1.1.1 // indirect
23-
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
23+
github.com/emicklei/go-restful/v3 v3.10.2 // indirect
2424
github.com/emirpasic/gods v1.12.0 // indirect
2525
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
2626
github.com/evanphx/json-patch/v5 v5.6.0 // indirect
@@ -34,21 +34,21 @@ require (
3434
github.com/go-git/go-git/v5 v5.1.0 // indirect
3535
github.com/go-logr/zapr v1.2.4 // indirect
3636
github.com/go-openapi/jsonpointer v0.19.6 // indirect
37-
github.com/go-openapi/jsonreference v0.20.1 // indirect
37+
github.com/go-openapi/jsonreference v0.20.2 // indirect
3838
github.com/go-openapi/swag v0.22.3 // indirect
3939
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 // indirect
4040
github.com/gogo/protobuf v1.3.2 // indirect
4141
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
4242
github.com/golang/protobuf v1.5.3 // indirect
4343
github.com/google/btree v1.0.1 // indirect
44-
github.com/google/gnostic v0.5.7-v3refs // indirect
44+
github.com/google/gnostic v0.6.9 // indirect
4545
github.com/google/go-cmp v0.5.9 // indirect
4646
github.com/google/gofuzz v1.2.0 // indirect
4747
github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect
4848
github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect
4949
github.com/google/uuid v1.3.0 // indirect
5050
github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 // indirect
51-
github.com/imdario/mergo v0.3.12 // indirect
51+
github.com/imdario/mergo v0.3.15 // indirect
5252
github.com/inconshreveable/mousetrap v1.0.1 // indirect
5353
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
5454
github.com/jonboulle/clockwork v0.2.2 // indirect
@@ -70,7 +70,7 @@ require (
7070
github.com/pkg/errors v0.9.1 // indirect
7171
github.com/prometheus/client_golang v1.15.1 // indirect
7272
github.com/prometheus/client_model v0.4.0 // indirect
73-
github.com/prometheus/common v0.42.0 // indirect
73+
github.com/prometheus/common v0.43.0 // indirect
7474
github.com/prometheus/procfs v0.9.0 // indirect
7575
github.com/russross/blackfriday/v2 v2.1.0 // indirect
7676
github.com/sergi/go-diff v1.1.0 // indirect
@@ -84,7 +84,7 @@ require (
8484
go.uber.org/zap v1.24.0 // indirect
8585
golang.org/x/crypto v0.1.0 // indirect
8686
golang.org/x/net v0.10.0 // indirect
87-
golang.org/x/oauth2 v0.5.0 // indirect
87+
golang.org/x/oauth2 v0.8.0 // indirect
8888
golang.org/x/sys v0.8.0 // indirect
8989
golang.org/x/term v0.8.0 // indirect
9090
golang.org/x/text v0.9.0 // indirect
@@ -99,16 +99,17 @@ require (
9999
gopkg.in/yaml.v3 v3.0.1 // indirect
100100
k8s.io/api v0.27.2 // indirect
101101
k8s.io/apiextensions-apiserver v0.27.2 // indirect
102-
k8s.io/cli-runtime v0.26.0 // indirect
102+
k8s.io/cli-runtime v0.26.3 // indirect
103103
k8s.io/component-base v0.27.2 // indirect
104-
k8s.io/klog/v2 v2.90.1 // indirect
104+
k8s.io/klog/v2 v2.100.1 // indirect
105105
k8s.io/kube-openapi v0.0.0-20230501164219-8b0f38b5fd1f // indirect
106-
k8s.io/kubectl v0.26.0 // indirect
107-
k8s.io/utils v0.0.0-20230209194617-a36077c30491 // indirect
106+
k8s.io/kubectl v0.26.3 // indirect
107+
k8s.io/utils v0.0.0-20230505201702-9f6742963106 // indirect
108108
sigs.k8s.io/cli-utils v0.33.0 // indirect
109109
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
110-
sigs.k8s.io/kubebuilder-declarative-pattern/applylib v0.0.0-20221111030210-e034bc5469a5 // indirect
110+
sigs.k8s.io/kubebuilder-declarative-pattern/applylib v0.0.0-20230420203711-4abaa68e1923 // indirect
111111
sigs.k8s.io/kustomize/api v0.12.1 // indirect
112+
sigs.k8s.io/kustomize/kstatus v0.0.2-0.20200509233124-065f70705d4d // indirect
112113
sigs.k8s.io/kustomize/kyaml v0.13.9 // indirect
113114
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
114115
sigs.k8s.io/yaml v1.3.0 // indirect

0 commit comments

Comments
 (0)