Skip to content

Commit 74d8c16

Browse files
authored
Merge pull request #39 from cert-manager/upgrade_deps
Upgrade all dependencies
2 parents 2a7fde6 + 72f4035 commit 74d8c16

14 files changed

+91
-125
lines changed

controllers/certificaterequest_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434
utilerrors "k8s.io/apimachinery/pkg/util/errors"
3535
"k8s.io/client-go/tools/record"
3636
"k8s.io/utils/clock"
37-
"k8s.io/utils/pointer"
37+
"k8s.io/utils/ptr"
3838
ctrl "sigs.k8s.io/controller-runtime"
3939
"sigs.k8s.io/controller-runtime/pkg/builder"
4040
"sigs.k8s.io/controller-runtime/pkg/client"
@@ -98,7 +98,7 @@ func (r *CertificateRequestReconciler) Reconcile(ctx context.Context, req ctrl.R
9898
if err := r.Client.Status().Patch(ctx, &cr, patch, &client.SubResourcePatchOptions{
9999
PatchOptions: client.PatchOptions{
100100
FieldManager: r.FieldOwner,
101-
Force: pointer.Bool(true),
101+
Force: ptr.To(true),
102102
},
103103
}); err != nil {
104104
if err := client.IgnoreNotFound(err); err != nil {

controllers/certificaterequest_controller_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import (
3434
"k8s.io/apimachinery/pkg/types"
3535
"k8s.io/client-go/tools/record"
3636
clocktesting "k8s.io/utils/clock/testing"
37+
"k8s.io/utils/ptr"
3738
"sigs.k8s.io/controller-runtime/pkg/client"
3839
"sigs.k8s.io/controller-runtime/pkg/client/fake"
3940
"sigs.k8s.io/controller-runtime/pkg/reconcile"
@@ -43,7 +44,6 @@ import (
4344
"github.com/cert-manager/issuer-lib/controllers/signer"
4445
"github.com/cert-manager/issuer-lib/internal/kubeutil"
4546
"github.com/cert-manager/issuer-lib/internal/tests/errormatch"
46-
"github.com/cert-manager/issuer-lib/internal/tests/ptr"
4747
"github.com/cert-manager/issuer-lib/internal/testsetups/simple/api"
4848
"github.com/cert-manager/issuer-lib/internal/testsetups/simple/testutil"
4949
)
@@ -976,7 +976,7 @@ func TestCertificateRequestReconcilerReconcile(t *testing.T) {
976976

977977
assert.Equal(t, tc.expectedResult, res)
978978
assert.Equal(t, tc.expectedStatusPatch, crsPatch)
979-
ptr.Default(tc.validateError, *errormatch.NoError())(t, err)
979+
ptr.Deref(tc.validateError, *errormatch.NoError())(t, err)
980980

981981
allEvents := chanToSlice(fakeRecorder.Events)
982982
if len(tc.expectedEvents) == 0 {

controllers/certificatesigningrequest_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import (
3636
utilerrors "k8s.io/apimachinery/pkg/util/errors"
3737
"k8s.io/client-go/tools/record"
3838
"k8s.io/utils/clock"
39-
"k8s.io/utils/pointer"
39+
"k8s.io/utils/ptr"
4040
ctrl "sigs.k8s.io/controller-runtime"
4141
"sigs.k8s.io/controller-runtime/pkg/builder"
4242
"sigs.k8s.io/controller-runtime/pkg/client"
@@ -93,7 +93,7 @@ func (r *CertificateSigningRequestReconciler) Reconcile(ctx context.Context, req
9393
if err := r.Client.Status().Patch(ctx, &cr, patch, &client.SubResourcePatchOptions{
9494
PatchOptions: client.PatchOptions{
9595
FieldManager: r.FieldOwner,
96-
Force: pointer.Bool(true),
96+
Force: ptr.To(true),
9797
},
9898
}); err != nil {
9999
if err := client.IgnoreNotFound(err); err != nil {

controllers/certificatesigningrequest_controller_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import (
3636
"k8s.io/apimachinery/pkg/types"
3737
"k8s.io/client-go/tools/record"
3838
clocktesting "k8s.io/utils/clock/testing"
39+
"k8s.io/utils/ptr"
3940
"sigs.k8s.io/controller-runtime/pkg/client"
4041
"sigs.k8s.io/controller-runtime/pkg/client/fake"
4142
"sigs.k8s.io/controller-runtime/pkg/reconcile"
@@ -45,7 +46,6 @@ import (
4546
"github.com/cert-manager/issuer-lib/controllers/signer"
4647
"github.com/cert-manager/issuer-lib/internal/kubeutil"
4748
"github.com/cert-manager/issuer-lib/internal/tests/errormatch"
48-
"github.com/cert-manager/issuer-lib/internal/tests/ptr"
4949
"github.com/cert-manager/issuer-lib/internal/testsetups/simple/api"
5050
"github.com/cert-manager/issuer-lib/internal/testsetups/simple/testutil"
5151
)
@@ -809,7 +809,7 @@ func TestCertificateSigningRequestReconcilerReconcile(t *testing.T) {
809809

810810
assert.Equal(t, tc.expectedResult, res)
811811
assert.Equal(t, tc.expectedStatusPatch, crsPatch)
812-
ptr.Default(tc.validateError, *errormatch.NoError())(t, err)
812+
ptr.Deref(tc.validateError, *errormatch.NoError())(t, err)
813813

814814
allEvents := chanToSlice(fakeRecorder.Events)
815815
if len(tc.expectedEvents) == 0 {
@@ -937,7 +937,7 @@ func TestCertificateSigningRequestMatchIssuerType(t *testing.T) {
937937

938938
assert.Equal(t, tc.expectedIssuerType, issuerType)
939939
assert.Equal(t, tc.expectedIssuerName, issuerName)
940-
if !ptr.Default(tc.expectedError, *errormatch.NoError())(t, err) {
940+
if !ptr.Deref(tc.expectedError, *errormatch.NoError())(t, err) {
941941
t.Fail()
942942
}
943943
})

controllers/issuer_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
utilerrors "k8s.io/apimachinery/pkg/util/errors"
3131
"k8s.io/client-go/tools/record"
3232
"k8s.io/utils/clock"
33-
"k8s.io/utils/pointer"
33+
"k8s.io/utils/ptr"
3434
ctrl "sigs.k8s.io/controller-runtime"
3535
"sigs.k8s.io/controller-runtime/pkg/builder"
3636
"sigs.k8s.io/controller-runtime/pkg/client"
@@ -85,7 +85,7 @@ func (r *IssuerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res
8585
if err := r.Client.Status().Patch(ctx, cr, patch, &client.SubResourcePatchOptions{
8686
PatchOptions: client.PatchOptions{
8787
FieldManager: r.FieldOwner,
88-
Force: pointer.Bool(true),
88+
Force: ptr.To(true),
8989
},
9090
}); err != nil {
9191
if err := client.IgnoreNotFound(err); err != nil {

controllers/issuer_controller_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import (
3434
"k8s.io/apimachinery/pkg/types"
3535
"k8s.io/client-go/tools/record"
3636
clocktesting "k8s.io/utils/clock/testing"
37+
"k8s.io/utils/ptr"
3738
"sigs.k8s.io/controller-runtime/pkg/client"
3839
"sigs.k8s.io/controller-runtime/pkg/client/fake"
3940
"sigs.k8s.io/controller-runtime/pkg/reconcile"
@@ -42,7 +43,6 @@ import (
4243
"github.com/cert-manager/issuer-lib/api/v1alpha1"
4344
"github.com/cert-manager/issuer-lib/controllers/signer"
4445
"github.com/cert-manager/issuer-lib/internal/tests/errormatch"
45-
"github.com/cert-manager/issuer-lib/internal/tests/ptr"
4646
"github.com/cert-manager/issuer-lib/internal/testsetups/simple/api"
4747
"github.com/cert-manager/issuer-lib/internal/testsetups/simple/testutil"
4848
)
@@ -421,7 +421,7 @@ func TestSimpleIssuerReconcilerReconcile(t *testing.T) {
421421

422422
assert.Equal(t, tc.expectedResult, res)
423423
assert.Equal(t, tc.expectedStatusPatch, crsPatch)
424-
ptr.Default(tc.validateError, *errormatch.NoError())(t, err)
424+
ptr.Deref(tc.validateError, *errormatch.NoError())(t, err)
425425

426426
allEvents := chanToSlice(fakeRecorder.Events)
427427
if len(tc.expectedEvents) == 0 {

go.mod

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ module github.com/cert-manager/issuer-lib
33
go 1.19
44

55
require (
6-
github.com/cert-manager/cert-manager v1.12.2
6+
github.com/cert-manager/cert-manager v1.12.3
77
github.com/go-logr/logr v1.2.4
88
github.com/stretchr/testify v1.8.4
9-
go.uber.org/zap v1.24.0
9+
go.uber.org/zap v1.25.0
1010
golang.org/x/sync v0.3.0
11-
k8s.io/api v0.27.3
12-
k8s.io/apiextensions-apiserver v0.27.3
13-
k8s.io/apimachinery v0.27.3
14-
k8s.io/client-go v0.27.3
11+
k8s.io/api v0.27.4
12+
k8s.io/apiextensions-apiserver v0.27.4
13+
k8s.io/apimachinery v0.27.4
14+
k8s.io/client-go v0.27.4
1515
k8s.io/klog/v2 v2.100.1
16-
k8s.io/utils v0.0.0-20230505201702-9f6742963106
17-
sigs.k8s.io/controller-runtime v0.15.0
16+
k8s.io/utils v0.0.0-20230726121419-3b25d923346b
17+
sigs.k8s.io/controller-runtime v0.15.1
1818
)
1919

2020
require (
@@ -57,8 +57,7 @@ require (
5757
github.com/prometheus/procfs v0.9.0 // indirect
5858
github.com/spf13/cobra v1.7.0 // indirect
5959
github.com/spf13/pflag v1.0.5 // indirect
60-
go.uber.org/atomic v1.10.0 // indirect
61-
go.uber.org/multierr v1.8.0 // indirect
60+
go.uber.org/multierr v1.10.0 // indirect
6261
golang.org/x/crypto v0.6.0 // indirect
6362
golang.org/x/net v0.10.0 // indirect
6463
golang.org/x/oauth2 v0.5.0 // indirect
@@ -72,7 +71,7 @@ require (
7271
gopkg.in/inf.v0 v0.9.1 // indirect
7372
gopkg.in/yaml.v2 v2.4.0 // indirect
7473
gopkg.in/yaml.v3 v3.0.1 // indirect
75-
k8s.io/component-base v0.27.3 // indirect
74+
k8s.io/component-base v0.27.4 // indirect
7675
k8s.io/kube-aggregator v0.27.2 // indirect
7776
k8s.io/kube-openapi v0.0.0-20230515203736-54b630e78af5 // indirect
7877
sigs.k8s.io/gateway-api v0.7.0 // indirect

go.sum

Lines changed: 22 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ github.com/Azure/go-ntlmssp v0.0.0-20220621081337-cb9428e4ac1e/go.mod h1:chxPXzS
55
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
66
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
77
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
8-
github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8=
98
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
9+
github.com/benbjohnson/clock v1.3.0 h1:ip6w0uFQkncKQ979AypyG0ER7mqUSBdKLOgAle/AT8A=
1010
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
1111
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
1212
github.com/blang/semver/v4 v4.0.0 h1:1PFHFE6yCCTv8C1TeyNNarDzntLi7wMI5i/pzqYIsAM=
1313
github.com/blang/semver/v4 v4.0.0/go.mod h1:IbckMUScFkM3pff0VJDNKRiT6TG/YpiHIM2yvyW5YoQ=
1414
github.com/buger/jsonparser v1.1.1/go.mod h1:6RYKKt7H4d4+iWqouImQ9R2FZql3VbhNgx27UK13J/0=
1515
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
16-
github.com/cert-manager/cert-manager v1.12.2 h1:lJ7Xn0VhmBA4uOZb5dlSZzepu38ez73okOqgE24x8YM=
17-
github.com/cert-manager/cert-manager v1.12.2/go.mod h1:ql0msU88JCcQSceN+PFjEY8U+AMe13y06vO2klJk8bs=
16+
github.com/cert-manager/cert-manager v1.12.3 h1:3gZkP7hHI2CjgX5qZ1Tm98YbHVXB2NGAZPVbOLb3AjU=
17+
github.com/cert-manager/cert-manager v1.12.3/go.mod h1:/RYHUvK9cxuU5dbRyhb7g6am9jCcZc8huF3AnADE+nA=
1818
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
1919
github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
2020
github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
@@ -147,7 +147,7 @@ github.com/prometheus/common v0.42.0/go.mod h1:xBwqVerjNdUDjgODMpudtOMwlOwf2SaTr
147147
github.com/prometheus/procfs v0.9.0 h1:wzCHvIvM5SxWqYvwgVL7yJY8Lz3PKn49KQtpgMYJfhI=
148148
github.com/prometheus/procfs v0.9.0/go.mod h1:+pB4zwohETzFnmlpe6yd2lSc+0/46IYZRB/chUwxUZY=
149149
github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ=
150-
github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ=
150+
github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M=
151151
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
152152
github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
153153
github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I=
@@ -175,15 +175,14 @@ github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9dec
175175
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
176176
go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI=
177177
go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
178-
go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ=
179-
go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0=
180178
go.uber.org/goleak v1.1.11/go.mod h1:cwTWslyiVhfpKIDGSZEM2HlOvcqm+tG4zioyIeLoqMQ=
181179
go.uber.org/goleak v1.2.1 h1:NBol2c7O1ZokfZ0LEU9K6Whx/KnwvepVetCUhtKja4A=
182180
go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU=
183-
go.uber.org/multierr v1.8.0 h1:dg6GjLku4EH+249NNmoIciG9N/jURbDG+pFlTkhzIC8=
184-
go.uber.org/multierr v1.8.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak=
185-
go.uber.org/zap v1.24.0 h1:FiJd5l1UOLj0wCgbSE0rwwXHzEdAZS6hiiSnxJN/D60=
181+
go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ=
182+
go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
186183
go.uber.org/zap v1.24.0/go.mod h1:2kMP+WWQ8aoFoedH3T2sq6iJ2yDWpHbP0f6MQbS9Gkg=
184+
go.uber.org/zap v1.25.0 h1:4Hvk6GtkucQ790dqmj7l1eEnRdKm3k3ZUrUMS2d5+5c=
185+
go.uber.org/zap v1.25.0/go.mod h1:JIAUzQIH94IC4fOJQm7gMmBJP5k7wQfdcnYdPoEXJYk=
187186
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
188187
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
189188
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
@@ -312,32 +311,31 @@ gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
312311
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
313312
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
314313
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
315-
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
316314
gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
317315
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
318316
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
319317
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
320318
honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
321-
k8s.io/api v0.27.3 h1:yR6oQXXnUEBWEWcvPWS0jQL575KoAboQPfJAuKNrw5Y=
322-
k8s.io/api v0.27.3/go.mod h1:C4BNvZnQOF7JA/0Xed2S+aUyJSfTGkGFxLXz9MnpIpg=
323-
k8s.io/apiextensions-apiserver v0.27.3 h1:xAwC1iYabi+TDfpRhxh4Eapl14Hs2OftM2DN5MpgKX4=
324-
k8s.io/apiextensions-apiserver v0.27.3/go.mod h1:BH3wJ5NsB9XE1w+R6SSVpKmYNyIiyIz9xAmBl8Mb+84=
325-
k8s.io/apimachinery v0.27.3 h1:Ubye8oBufD04l9QnNtW05idcOe9Z3GQN8+7PqmuVcUM=
326-
k8s.io/apimachinery v0.27.3/go.mod h1:XNfZ6xklnMCOGGFNqXG7bUrQCoR04dh/E7FprV6pb+E=
327-
k8s.io/client-go v0.27.3 h1:7dnEGHZEJld3lYwxvLl7WoehK6lAq7GvgjxpA3nv1E8=
328-
k8s.io/client-go v0.27.3/go.mod h1:2MBEKuTo6V1lbKy3z1euEGnhPfGZLKTS9tiJ2xodM48=
329-
k8s.io/component-base v0.27.3 h1:g078YmdcdTfrCE4fFobt7qmVXwS8J/3cI1XxRi/2+6k=
330-
k8s.io/component-base v0.27.3/go.mod h1:JNiKYcGImpQ44iwSYs6dysxzR9SxIIgQalk4HaCNVUY=
319+
k8s.io/api v0.27.4 h1:0pCo/AN9hONazBKlNUdhQymmnfLRbSZjd5H5H3f0bSs=
320+
k8s.io/api v0.27.4/go.mod h1:O3smaaX15NfxjzILfiln1D8Z3+gEYpjEpiNA/1EVK1Y=
321+
k8s.io/apiextensions-apiserver v0.27.4 h1:ie1yZG4nY/wvFMIR2hXBeSVq+HfNzib60FjnBYtPGSs=
322+
k8s.io/apiextensions-apiserver v0.27.4/go.mod h1:KHZaDr5H9IbGEnSskEUp/DsdXe1hMQ7uzpQcYUFt2bM=
323+
k8s.io/apimachinery v0.27.4 h1:CdxflD4AF61yewuid0fLl6bM4a3q04jWel0IlP+aYjs=
324+
k8s.io/apimachinery v0.27.4/go.mod h1:XNfZ6xklnMCOGGFNqXG7bUrQCoR04dh/E7FprV6pb+E=
325+
k8s.io/client-go v0.27.4 h1:vj2YTtSJ6J4KxaC88P4pMPEQECWMY8gqPqsTgUKzvjk=
326+
k8s.io/client-go v0.27.4/go.mod h1:ragcly7lUlN0SRPk5/ZkGnDjPknzb37TICq07WhI6Xc=
327+
k8s.io/component-base v0.27.4 h1:Wqc0jMKEDGjKXdae8hBXeskRP//vu1m6ypC+gwErj4c=
328+
k8s.io/component-base v0.27.4/go.mod h1:hoiEETnLc0ioLv6WPeDt8vD34DDeB35MfQnxCARq3kY=
331329
k8s.io/klog/v2 v2.100.1 h1:7WCHKK6K8fNhTqfBhISHQ97KrnJNFZMcQvKp7gP/tmg=
332330
k8s.io/klog/v2 v2.100.1/go.mod h1:y1WjHnz7Dj687irZUWR/WLkLc5N1YHtjLdmgWjndZn0=
333331
k8s.io/kube-aggregator v0.27.2 h1:jfHoPip+qN/fn3OcrYs8/xMuVYvkJHKo0H0DYciqdns=
334332
k8s.io/kube-aggregator v0.27.2/go.mod h1:mwrTt4ESjQ7A6847biwohgZWn8P/KzSFHegEScbSGY4=
335333
k8s.io/kube-openapi v0.0.0-20230515203736-54b630e78af5 h1:azYPdzztXxPSa8wb+hksEKayiz0o+PPisO/d+QhWnoo=
336334
k8s.io/kube-openapi v0.0.0-20230515203736-54b630e78af5/go.mod h1:kzo02I3kQ4BTtEfVLaPbjvCkX97YqGve33wzlb3fofQ=
337-
k8s.io/utils v0.0.0-20230505201702-9f6742963106 h1:EObNQ3TW2D+WptiYXlApGNLVy0zm/JIBVY9i+M4wpAU=
338-
k8s.io/utils v0.0.0-20230505201702-9f6742963106/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
339-
sigs.k8s.io/controller-runtime v0.15.0 h1:ML+5Adt3qZnMSYxZ7gAverBLNPSMQEibtzAgp0UPojU=
340-
sigs.k8s.io/controller-runtime v0.15.0/go.mod h1:7ngYvp1MLT+9GeZ+6lH3LOlcHkp/+tzA/fmHa4iq9kk=
335+
k8s.io/utils v0.0.0-20230726121419-3b25d923346b h1:sgn3ZU783SCgtaSJjpcVVlRqd6GSnlTLKgpAAttJvpI=
336+
k8s.io/utils v0.0.0-20230726121419-3b25d923346b/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
337+
sigs.k8s.io/controller-runtime v0.15.1 h1:9UvgKD4ZJGcj24vefUFgZFP3xej/3igL9BsOUTb/+4c=
338+
sigs.k8s.io/controller-runtime v0.15.1/go.mod h1:7ngYvp1MLT+9GeZ+6lH3LOlcHkp/+tzA/fmHa4iq9kk=
341339
sigs.k8s.io/gateway-api v0.7.0 h1:/mG8yyJNBifqvuVLW5gwlI4CQs0NR/5q4BKUlf1bVdY=
342340
sigs.k8s.io/gateway-api v0.7.0/go.mod h1:Xv0+ZMxX0lu1nSSDIIPEfbVztgNZ+3cfiYrJsa2Ooso=
343341
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo=

internal/tests/errormatch/error_match.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,13 @@ import (
2020
"testing"
2121

2222
"github.com/stretchr/testify/assert"
23-
24-
"github.com/cert-manager/issuer-lib/internal/tests/ptr"
23+
"k8s.io/utils/ptr"
2524
)
2625

2726
type Matcher func(t testing.TB, err error) bool
2827

2928
func newMatcherPtr(matcher Matcher) *Matcher {
30-
return ptr.New(matcher)
29+
return ptr.To(matcher)
3130
}
3231

3332
func NoError() *Matcher {

internal/tests/ptr/ptr.go

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)