Skip to content

Commit b465099

Browse files
authored
Merge pull request #26 from pluralsh/openapi
Update OpenAPI with plural acme definition
2 parents 3bf5d39 + b885b26 commit b465099

File tree

7 files changed

+14981
-16
lines changed

7 files changed

+14981
-16
lines changed

go.mod

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@ require (
66
github.com/cert-manager/cert-manager v1.11.0
77
github.com/cert-manager/webhook-example v0.0.0-20230119163313-9ea71aef37e6
88
github.com/miekg/dns v1.1.51
9+
github.com/pluralsh/acme v0.0.2
910
github.com/pluralsh/gqlclient v1.3.9
11+
github.com/spf13/cobra v1.6.1
1012
github.com/stretchr/testify v1.8.2
1113
k8s.io/apiextensions-apiserver v0.26.2
14+
k8s.io/apimachinery v0.26.2
15+
k8s.io/apiserver v0.26.2
1216
k8s.io/client-go v0.26.2
17+
k8s.io/component-base v0.26.2
18+
k8s.io/kube-openapi v0.0.0-20230109183929-3758b55a6596
1319
)
1420

1521
require (
@@ -19,7 +25,7 @@ require (
1925
github.com/beorn7/perks v1.0.1 // indirect
2026
github.com/blang/semver/v4 v4.0.0 // indirect
2127
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
22-
github.com/cespare/xxhash/v2 v2.1.2 // indirect
28+
github.com/cespare/xxhash/v2 v2.2.0 // indirect
2329
github.com/coreos/go-semver v0.3.0 // indirect
2430
github.com/coreos/go-systemd/v22 v22.3.2 // indirect
2531
github.com/davecgh/go-spew v1.1.1 // indirect
@@ -62,7 +68,6 @@ require (
6268
github.com/prometheus/procfs v0.8.0 // indirect
6369
github.com/rivo/uniseg v0.2.0 // indirect
6470
github.com/schollz/progressbar/v3 v3.8.6 // indirect
65-
github.com/spf13/cobra v1.6.1 // indirect
6671
github.com/spf13/pflag v1.0.5 // indirect
6772
github.com/stoewer/go-strcase v1.2.0 // indirect
6873
github.com/vektah/gqlparser/v2 v2.5.1 // indirect
@@ -83,15 +88,15 @@ require (
8388
go.uber.org/multierr v1.6.0 // indirect
8489
go.uber.org/zap v1.24.0 // indirect
8590
golang.org/x/crypto v0.5.0 // indirect
86-
golang.org/x/mod v0.7.0 // indirect
91+
golang.org/x/mod v0.8.0 // indirect
8792
golang.org/x/net v0.7.0 // indirect
8893
golang.org/x/oauth2 v0.4.0 // indirect
8994
golang.org/x/sync v0.1.0 // indirect
9095
golang.org/x/sys v0.5.0 // indirect
9196
golang.org/x/term v0.5.0 // indirect
9297
golang.org/x/text v0.7.0 // indirect
9398
golang.org/x/time v0.3.0 // indirect
94-
golang.org/x/tools v0.4.0 // indirect
99+
golang.org/x/tools v0.6.0 // indirect
95100
google.golang.org/appengine v1.6.7 // indirect
96101
google.golang.org/genproto v0.0.0-20221227171554-f9683d7f8bef // indirect
97102
google.golang.org/grpc v1.51.0 // indirect
@@ -101,13 +106,9 @@ require (
101106
gopkg.in/yaml.v2 v2.4.0 // indirect
102107
gopkg.in/yaml.v3 v3.0.1 // indirect
103108
k8s.io/api v0.26.2 // indirect
104-
k8s.io/apimachinery v0.26.2 // indirect
105-
k8s.io/apiserver v0.26.2 // indirect
106-
k8s.io/component-base v0.26.2 // indirect
107109
k8s.io/klog/v2 v2.80.1 // indirect
108110
k8s.io/kms v0.26.2 // indirect
109111
k8s.io/kube-aggregator v0.26.0 // indirect
110-
k8s.io/kube-openapi v0.0.0-20230109183929-3758b55a6596 // indirect
111112
k8s.io/utils v0.0.0-20221128185143-99ec85e7a448 // indirect
112113
sigs.k8s.io/apiserver-network-proxy/konnectivity-client v0.0.35 // indirect
113114
sigs.k8s.io/controller-runtime v0.14.1 // indirect

go.sum

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ github.com/cert-manager/webhook-example v0.0.0-20230119163313-9ea71aef37e6 h1:dN
7070
github.com/cert-manager/webhook-example v0.0.0-20230119163313-9ea71aef37e6/go.mod h1:u2R1CV+HH7OAm6dE5cOh37JRDR58DnB9DYYHI9OjNWs=
7171
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
7272
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
73-
github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE=
7473
github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
74+
github.com/cespare/xxhash/v2 v2.2.0 h1:DC2CZ1Ep5Y4k3ZQ899DldepgrayRUGE6BBZ/cd9Cj44=
75+
github.com/cespare/xxhash/v2 v2.2.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
7576
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
7677
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI=
7778
github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU=
@@ -286,6 +287,8 @@ github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINE
286287
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
287288
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
288289
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
290+
github.com/pluralsh/acme v0.0.2 h1:vpQxUXGPH7TIOZXdRPXQfiwJDExYWKoHTKPu4B/1EY4=
291+
github.com/pluralsh/acme v0.0.2/go.mod h1:Go83DGuFMvznmGc4ILLjrEyFWcoVT9+BjgyZgHTK7HI=
289292
github.com/pluralsh/gqlclient v1.3.9 h1:cJ6Vu+N1pI5z46JS2o13fh4Oc9CbnTljwu3HTTQCPN8=
290293
github.com/pluralsh/gqlclient v1.3.9/go.mod h1:VHjVCSOaD9lzOI3u7tOuaQY7vrLdiAKPSbeihaWYX28=
291294
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
@@ -455,8 +458,9 @@ golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
455458
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
456459
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
457460
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
458-
golang.org/x/mod v0.7.0 h1:LapD9S96VoQRhi/GrNTqeBJFrUjs5UHCAtTlgwA5oZA=
459461
golang.org/x/mod v0.7.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
462+
golang.org/x/mod v0.8.0 h1:LUYupSeNrTNCGzR/hVBk2NHZO4hXcVaW1k4Qx7rjPx8=
463+
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
460464
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
461465
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
462466
golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@@ -637,8 +641,8 @@ golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4f
637641
golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
638642
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
639643
golang.org/x/tools v0.3.0/go.mod h1:/rWhSS2+zyEVwoJf8YAX6L2f0ntZ7Kn/mGgAWcipA5k=
640-
golang.org/x/tools v0.4.0 h1:7mTAgkunk3fr4GAloyyCasadO6h9zSsQZbwvcaIciV4=
641-
golang.org/x/tools v0.4.0/go.mod h1:UE5sM2OK9E/d67R0ANs2xJizIymRP5gJU295PvKXxjQ=
644+
golang.org/x/tools v0.6.0 h1:BOw41kyTf3PuCW1pVQf8+Cyg8pMlkYB1oo9iJ6D/lKM=
645+
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
642646
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
643647
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
644648
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=

main.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ import (
55
"fmt"
66
"os"
77

8-
extapi "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
9-
"k8s.io/client-go/rest"
10-
118
"github.com/cert-manager/cert-manager/pkg/acme/webhook/apis/acme/v1alpha1"
12-
"github.com/cert-manager/cert-manager/pkg/acme/webhook/cmd"
9+
"github.com/pluralsh/plural-certmanager-webhook/pkg/cmd"
1310
"github.com/pluralsh/plural-certmanager-webhook/plural"
11+
extapi "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
12+
"k8s.io/client-go/rest"
1413
)
1514

1615
var GroupName = os.Getenv("GROUP_NAME")

0 commit comments

Comments
 (0)