bratislava / cert-manager-webhook-websupport

A cert-manager webhook to perform DNS01 challenge through websupport DNS API
European Union Public License 1.2
4 stars 1 forks source link

Observed a panic: runtime error: index out of range [0] with length 0 #9

Closed Laykou closed 1 year ago

Laykou commented 1 year ago

Postupoval som podla README a deployol som websupport-webhook (Dockerfile som si vybuildovatl a pushol na softpoint/websupport-webhook ktory je public.

Potom som si nastavil DNS smerovanie pre *.test na IPcku Kubernetes gateway v MS Azure, a nasadil Cert:

apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
  name: letsencrypt-ey-bpm-wildcard-cert
spec:
  secretName: wildcard.test.ey-bpm.com-tls
  dnsNames:
    - "*.test.ey-bpm.com"
  issuerRef:
    name: letsencrypt-ey-bpmn-dns01
    kind: ClusterIssuer
  renewBefore: "720h"

Vyzera to, ze ten webhook sa pokusi upravit DNS zaznam, ale potom to spadne a dostavam nasledujuci error:

I0421 11:20:17.324735       1 main.go:146] cert-manager/websupport-solver "msg"="Attempting to delete record '_acme-challenge.test.ey-bpm.com.' with content 'ccRHyd19-gk4mLdoBG2LXNJB7Dq93bL_N1IrXxopH2w'"  
E0421 11:20:17.668156       1 runtime.go:76] Observed a panic: runtime error: index out of range [0] with length 0
goroutine 632 [running]:
k8s.io/apiserver/pkg/endpoints/handlers/finisher.finishRequest.func1.1()
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/handlers/finisher/finisher.go:105 +0xaf
panic({0x1cc4b80, 0xc0006d6018})
    /usr/local/go/src/runtime/panic.go:838 +0x207
github.com/bratislava/cert-manager-webhook-websupport/websupport.(*WebsupportError).Error(0xc000545660?)
    /workspace/websupport/client.go:47 +0x33
github.com/jetstack/cert-manager/pkg/acme/webhook/registry/challengepayload.(*REST).callSolver(0xc0005fc760, {{0x0, 0x0}, {0xc00063ac10, 0x7}, {0xc00063ac18, 0x6}, {0xc00063ac20, 0xf}, {0xc000114f60, ...}, ...})
    /go/pkg/mod/github.com/jetstack/cert-manager@v1.6.1/pkg/acme/webhook/registry/challengepayload/challenge_payload.go:98 +0x17a
github.com/jetstack/cert-manager/pkg/acme/webhook/registry/challengepayload.(*REST).Create(0x0?, {0xc0003fb501?, 0xc000681050?}, {0x20d76c8?, 0xc000681050}, 0x20f1fc0?, 0x20f9e88?)
    /go/pkg/mod/github.com/jetstack/cert-manager@v1.6.1/pkg/acme/webhook/registry/challengepayload/challenge_payload.go:66 +0xe5
k8s.io/apiserver/pkg/endpoints/handlers.(*namedCreaterAdapter).Create(0x0?, {0x20f07f0?, 0xc000540750?}, {0xc000256fc0?, 0x20f1fc0?}, {0x20d76c8?, 0xc000681050?}, 0xc000734ab0?, 0x24?)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/handlers/create.go:221 +0x42
k8s.io/apiserver/pkg/endpoints/handlers.createHandler.func1.1()
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/handlers/create.go:153 +0xd8
k8s.io/apiserver/pkg/endpoints/handlers.createHandler.func1.2()
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/handlers/create.go:179 +0x40d
k8s.io/apiserver/pkg/endpoints/handlers/finisher.finishRequest.func1()
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/handlers/finisher/finisher.go:117 +0x8f
created by k8s.io/apiserver/pkg/endpoints/handlers/finisher.finishRequest
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/handlers/finisher/finisher.go:92 +0xde

goroutine 620 [running]:
k8s.io/apiserver/pkg/server/filters.(*timeoutHandler).ServeHTTP.func1.1()
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/server/filters/timeout.go:103 +0xb0
panic({0x1a454c0, 0xc0003926d0})
    /usr/local/go/src/runtime/panic.go:838 +0x207
k8s.io/apiserver/pkg/endpoints/handlers/finisher.(*result).Return(0xc0004cb330?)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/handlers/finisher/finisher.go:53 +0xbc
k8s.io/apiserver/pkg/endpoints/handlers/finisher.finishRequest({0x20f07f0, 0xc000540750}, 0xc00063c1e0, 0x45d964b800, 0x1efe410)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/handlers/finisher/finisher.go:126 +0x174
k8s.io/apiserver/pkg/endpoints/handlers/finisher.FinishRequest(...)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/handlers/finisher/finisher.go:84
k8s.io/apiserver/pkg/endpoints/handlers.createHandler.func1({0x20ee1e8, 0xc00000ed10}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/handlers/create.go:163 +0x1c52
k8s.io/apiserver/pkg/endpoints.restfulCreateResource.func1(0xc000680e10, 0xc0003d5260)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/installer.go:1186 +0xcb
k8s.io/apiserver/pkg/endpoints/metrics.InstrumentRouteFunc.func1(0xc000680e10, 0xc0003d5260)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/metrics/metrics.go:484 +0x2e2
github.com/emicklei/go-restful.(*Container).dispatch(0xc00074d9e0, {0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/github.com/emicklei/go-restful@v2.9.5+incompatible/container.go:288 +0x8c8
github.com/emicklei/go-restful.(*Container).Dispatch(...)
    /go/pkg/mod/github.com/emicklei/go-restful@v2.9.5+incompatible/container.go:199
k8s.io/apiserver/pkg/server.director.ServeHTTP({{0x1e072d6?, 0x0?}, 0xc00074d9e0?, 0xc000156e70?}, {0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/server/handler.go:146 +0x606
k8s.io/apiserver/pkg/endpoints/filterlatency.trackCompleted.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filterlatency/filterlatency.go:103 +0x1a5
net/http.HandlerFunc.ServeHTTP(0x20f07f0?, {0x7f4ca4a07a98?, 0xc000128688?}, 0xc00055e540?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filters.WithAuthorization.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filters/authorization.go:64 +0x498
net/http.HandlerFunc.ServeHTTP(0xc000830990?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x1?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filterlatency.trackStarted.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filterlatency/filterlatency.go:79 +0x178
net/http.HandlerFunc.ServeHTTP(0x0?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x0?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filterlatency.trackCompleted.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filterlatency/filterlatency.go:103 +0x1a5
net/http.HandlerFunc.ServeHTTP(0xc000717840?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x40d7e7?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/server/filters.WithPriorityAndFairness.func1.8()
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/server/filters/priority-and-fairness.go:247 +0xf6
k8s.io/apiserver/pkg/util/flowcontrol.(*configController).Handle.func2()
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/util/flowcontrol/apf_filter.go:181 +0x1e7
k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset.(*request).Finish.func1(0xc0001f6c00?, 0xc0007c0990?, 0x40d7e7?)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/util/flowcontrol/fairqueuing/queueset/queueset.go:338 +0x65
k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset.(*request).Finish(0xc000058af0?, 0xc?)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/util/flowcontrol/fairqueuing/queueset/queueset.go:339 +0x45
k8s.io/apiserver/pkg/util/flowcontrol.(*configController).Handle(0xc0000ded80, {0x20f07f0?, 0xc0007411d0}, {0xc0005eadc0?, {0x20f0e80?, 0xc0007175c0?}, {0x0?}}, 0xc0005533e0, 0x1?, 0xc0004a6e60)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/util/flowcontrol/apf_filter.go:171 +0x902
k8s.io/apiserver/pkg/server/filters.WithPriorityAndFairness.func1({0x7f4ca4a07a98?, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/server/filters/priority-and-fairness.go:250 +0xd5d
net/http.HandlerFunc.ServeHTTP(0xc0008307e0?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x1?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filterlatency.trackStarted.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filterlatency/filterlatency.go:79 +0x178
net/http.HandlerFunc.ServeHTTP(0x0?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x0?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filterlatency.trackCompleted.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filterlatency/filterlatency.go:103 +0x1a5
net/http.HandlerFunc.ServeHTTP(0xc000712d80?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x1000000000000?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filters.WithImpersonation.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filters/impersonation.go:50 +0x21c
net/http.HandlerFunc.ServeHTTP(0xc0008306c0?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x1?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filterlatency.trackStarted.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filterlatency/filterlatency.go:79 +0x178
net/http.HandlerFunc.ServeHTTP(0x0?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x0?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filterlatency.trackCompleted.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filterlatency/filterlatency.go:103 +0x1a5
net/http.HandlerFunc.ServeHTTP(0xc0008305a0?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x1?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filterlatency.trackStarted.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filterlatency/filterlatency.go:79 +0x178
net/http.HandlerFunc.ServeHTTP(0x0?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x0?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filterlatency.trackCompleted.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filterlatency/filterlatency.go:103 +0x1a5
net/http.HandlerFunc.ServeHTTP(0x20f07f0?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x20cd780?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filters.withAuthentication.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filters/authentication.go:80 +0x8b9
net/http.HandlerFunc.ServeHTTP(0x20f07b8?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x20cd778?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filterlatency.trackStarted.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1800)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filterlatency/filterlatency.go:88 +0x46b
net/http.HandlerFunc.ServeHTTP(0x8da0c0?, {0x7f4ca4a07a98?, 0xc000128688?}, 0xc00081c780?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/server/filters.(*timeoutHandler).ServeHTTP.func1()
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/server/filters/timeout.go:108 +0xa2
created by k8s.io/apiserver/pkg/server/filters.(*timeoutHandler).ServeHTTP
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/server/filters/timeout.go:94 +0x2cc

goroutine 630 [running]:
k8s.io/apimachinery/pkg/util/runtime.logPanic({0x1a454c0?, 0xc000392ce0})
    /go/pkg/mod/k8s.io/apimachinery@v0.22.3/pkg/util/runtime/runtime.go:74 +0x99
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0xc000455070, 0x1, 0x17954a6?})
    /go/pkg/mod/k8s.io/apimachinery@v0.22.3/pkg/util/runtime/runtime.go:48 +0x75
panic({0x1a454c0, 0xc000392ce0})
    /usr/local/go/src/runtime/panic.go:838 +0x207
k8s.io/apiserver/pkg/server/filters.(*timeoutHandler).ServeHTTP(0xc000752480, {0x20ee2a8?, 0xc000564980}, 0xdf8475800?)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/server/filters/timeout.go:114 +0x452
k8s.io/apiserver/pkg/endpoints/filters.withRequestDeadline.func1({0x20ee2a8, 0xc000564980}, 0xc0005f1700)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filters/request_deadline.go:101 +0x494
net/http.HandlerFunc.ServeHTTP(0x0?, {0x20ee2a8?, 0xc000564980?}, 0x0?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/server/filters.WithWaitGroup.func1({0x20ee2a8?, 0xc000564980}, 0xc0005f1700)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/server/filters/waitgroup.go:59 +0x177
net/http.HandlerFunc.ServeHTTP(0x20f07f0?, {0x20ee2a8?, 0xc000564980?}, 0x20cd778?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filters.WithWarningRecorder.func1({0x20ee2a8?, 0xc000564980}, 0xc0005f1600)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filters/warning.go:35 +0x2bb
net/http.HandlerFunc.ServeHTTP(0x1c77a80?, {0x20ee2a8?, 0xc000564980?}, 0xd?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filters.WithCacheControl.func1({0x20ee2a8, 0xc000564980}, 0x0?)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filters/cachecontrol.go:31 +0x126
net/http.HandlerFunc.ServeHTTP(0x20f07f0?, {0x20ee2a8?, 0xc000564980?}, 0x20cd778?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/server/httplog.WithLogging.func1({0x20e3ef8?, 0xc00000ece0}, 0xc0005f1500)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/server/httplog/httplog.go:103 +0x518
net/http.HandlerFunc.ServeHTTP(0x20f07f0?, {0x20e3ef8?, 0xc00000ece0?}, 0x20cd778?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filters.WithRequestInfo.func1({0x20e3ef8, 0xc00000ece0}, 0xc0005f1400)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filters/requestinfo.go:39 +0x316
net/http.HandlerFunc.ServeHTTP(0x20f07f0?, {0x20e3ef8?, 0xc00000ece0?}, 0x203000?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filters.withRequestReceivedTimestampWithClock.func1({0x20e3ef8, 0xc00000ece0}, 0xc0005f1300)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filters/request_received_time.go:38 +0x27e
net/http.HandlerFunc.ServeHTTP(0x160?, {0x20e3ef8?, 0xc00000ece0?}, 0x0?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/server/filters.withPanicRecovery.func1({0x20e3ef8?, 0xc00000ece0?}, 0xc000764b00?)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/server/filters/wrap.go:74 +0xb1
net/http.HandlerFunc.ServeHTTP(0x1c77a80?, {0x20e3ef8?, 0xc00000ece0?}, 0x8?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filters.withAuditID.func1({0x20e3ef8, 0xc00000ece0}, 0xc0006d3f00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filters/with_auditid.go:66 +0x40d
net/http.HandlerFunc.ServeHTTP(0xc00037fca0?, {0x20e3ef8?, 0xc00000ece0?}, 0x24?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/server.(*APIServerHandler).ServeHTTP(0x0?, {0x20e3ef8?, 0xc00000ece0?}, 0xc0002b0fe8?)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/server/handler.go:189 +0x2b
net/http.serverHandler.ServeHTTP({0x6f78c0?}, {0x20e3ef8, 0xc00000ece0}, 0xc0006d3f00)
    /usr/local/go/src/net/http/server.go:2916 +0x43b
net/http.initALPNRequest.ServeHTTP({{0x20f07f0?, 0xc0007aa7b0?}, 0xc0002b0e00?, {0xc0001b6a80?}}, {0x20e3ef8, 0xc00000ece0}, 0xc0006d3f00)
    /usr/local/go/src/net/http/server.go:3523 +0x245
golang.org/x/net/http2.(*serverConn).runHandler(0x20dfc88?, 0x3035698?, 0x0?, 0x0?)
    /go/pkg/mod/golang.org/x/net@v0.0.0-20210805182204-aaa1db679c0d/http2/server.go:2158 +0x78
created by golang.org/x/net/http2.(*serverConn).processHeaders
    /go/pkg/mod/golang.org/x/net@v0.0.0-20210805182204-aaa1db679c0d/http2/server.go:1888 +0x52b
E0421 11:20:17.668203       1 wrap.go:58] "apiserver panic'd" method="POST" URI="/apis/cert-manager.io/v1alpha1/websupport-solver" audit-ID="9eb0b550-e875-47b9-b497-ba4ec636a36b"
http2: panic serving 172.24.112.72:50126: runtime error: index out of range [0] with length 0
goroutine 632 [running]:
k8s.io/apiserver/pkg/endpoints/handlers/finisher.finishRequest.func1.1()
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/handlers/finisher/finisher.go:105 +0xaf
panic({0x1cc4b80, 0xc0006d6018})
    /usr/local/go/src/runtime/panic.go:838 +0x207
github.com/bratislava/cert-manager-webhook-websupport/websupport.(*WebsupportError).Error(0xc000545660?)
    /workspace/websupport/client.go:47 +0x33
github.com/jetstack/cert-manager/pkg/acme/webhook/registry/challengepayload.(*REST).callSolver(0xc0005fc760, {{0x0, 0x0}, {0xc00063ac10, 0x7}, {0xc00063ac18, 0x6}, {0xc00063ac20, 0xf}, {0xc000114f60, ...}, ...})
    /go/pkg/mod/github.com/jetstack/cert-manager@v1.6.1/pkg/acme/webhook/registry/challengepayload/challenge_payload.go:98 +0x17a
github.com/jetstack/cert-manager/pkg/acme/webhook/registry/challengepayload.(*REST).Create(0x0?, {0xc0003fb501?, 0xc000681050?}, {0x20d76c8?, 0xc000681050}, 0x20f1fc0?, 0x20f9e88?)
    /go/pkg/mod/github.com/jetstack/cert-manager@v1.6.1/pkg/acme/webhook/registry/challengepayload/challenge_payload.go:66 +0xe5
k8s.io/apiserver/pkg/endpoints/handlers.(*namedCreaterAdapter).Create(0x0?, {0x20f07f0?, 0xc000540750?}, {0xc000256fc0?, 0x20f1fc0?}, {0x20d76c8?, 0xc000681050?}, 0xc000734ab0?, 0x24?)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/handlers/create.go:221 +0x42
k8s.io/apiserver/pkg/endpoints/handlers.createHandler.func1.1()
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/handlers/create.go:153 +0xd8
k8s.io/apiserver/pkg/endpoints/handlers.createHandler.func1.2()
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/handlers/create.go:179 +0x40d
k8s.io/apiserver/pkg/endpoints/handlers/finisher.finishRequest.func1()
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/handlers/finisher/finisher.go:117 +0x8f
created by k8s.io/apiserver/pkg/endpoints/handlers/finisher.finishRequest
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/handlers/finisher/finisher.go:92 +0xde

goroutine 620 [running]:
k8s.io/apiserver/pkg/server/filters.(*timeoutHandler).ServeHTTP.func1.1()
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/server/filters/timeout.go:103 +0xb0
panic({0x1a454c0, 0xc0003926d0})
    /usr/local/go/src/runtime/panic.go:838 +0x207
k8s.io/apiserver/pkg/endpoints/handlers/finisher.(*result).Return(0xc0004cb330?)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/handlers/finisher/finisher.go:53 +0xbc
k8s.io/apiserver/pkg/endpoints/handlers/finisher.finishRequest({0x20f07f0, 0xc000540750}, 0xc00063c1e0, 0x45d964b800, 0x1efe410)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/handlers/finisher/finisher.go:126 +0x174
k8s.io/apiserver/pkg/endpoints/handlers/finisher.FinishRequest(...)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/handlers/finisher/finisher.go:84
k8s.io/apiserver/pkg/endpoints/handlers.createHandler.func1({0x20ee1e8, 0xc00000ed10}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/handlers/create.go:163 +0x1c52
k8s.io/apiserver/pkg/endpoints.restfulCreateResource.func1(0xc000680e10, 0xc0003d5260)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/installer.go:1186 +0xcb
k8s.io/apiserver/pkg/endpoints/metrics.InstrumentRouteFunc.func1(0xc000680e10, 0xc0003d5260)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/metrics/metrics.go:484 +0x2e2
github.com/emicklei/go-restful.(*Container).dispatch(0xc00074d9e0, {0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/github.com/emicklei/go-restful@v2.9.5+incompatible/container.go:288 +0x8c8
github.com/emicklei/go-restful.(*Container).Dispatch(...)
    /go/pkg/mod/github.com/emicklei/go-restful@v2.9.5+incompatible/container.go:199
k8s.io/apiserver/pkg/server.director.ServeHTTP({{0x1e072d6?, 0x0?}, 0xc00074d9e0?, 0xc000156e70?}, {0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/server/handler.go:146 +0x606
k8s.io/apiserver/pkg/endpoints/filterlatency.trackCompleted.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filterlatency/filterlatency.go:103 +0x1a5
net/http.HandlerFunc.ServeHTTP(0x20f07f0?, {0x7f4ca4a07a98?, 0xc000128688?}, 0xc00055e540?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filters.WithAuthorization.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filters/authorization.go:64 +0x498
net/http.HandlerFunc.ServeHTTP(0xc000830990?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x1?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filterlatency.trackStarted.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filterlatency/filterlatency.go:79 +0x178
net/http.HandlerFunc.ServeHTTP(0x0?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x0?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filterlatency.trackCompleted.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filterlatency/filterlatency.go:103 +0x1a5
net/http.HandlerFunc.ServeHTTP(0xc000717840?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x40d7e7?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/server/filters.WithPriorityAndFairness.func1.8()
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/server/filters/priority-and-fairness.go:247 +0xf6
k8s.io/apiserver/pkg/util/flowcontrol.(*configController).Handle.func2()
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/util/flowcontrol/apf_filter.go:181 +0x1e7
k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset.(*request).Finish.func1(0xc0001f6c00?, 0xc0007c0990?, 0x40d7e7?)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/util/flowcontrol/fairqueuing/queueset/queueset.go:338 +0x65
k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset.(*request).Finish(0xc000058af0?, 0xc?)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/util/flowcontrol/fairqueuing/queueset/queueset.go:339 +0x45
k8s.io/apiserver/pkg/util/flowcontrol.(*configController).Handle(0xc0000ded80, {0x20f07f0?, 0xc0007411d0}, {0xc0005eadc0?, {0x20f0e80?, 0xc0007175c0?}, {0x0?}}, 0xc0005533e0, 0x1?, 0xc0004a6e60)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/util/flowcontrol/apf_filter.go:171 +0x902
k8s.io/apiserver/pkg/server/filters.WithPriorityAndFairness.func1({0x7f4ca4a07a98?, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/server/filters/priority-and-fairness.go:250 +0xd5d
net/http.HandlerFunc.ServeHTTP(0xc0008307e0?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x1?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filterlatency.trackStarted.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filterlatency/filterlatency.go:79 +0x178
net/http.HandlerFunc.ServeHTTP(0x0?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x0?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filterlatency.trackCompleted.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filterlatency/filterlatency.go:103 +0x1a5
net/http.HandlerFunc.ServeHTTP(0xc000712d80?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x1000000000000?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filters.WithImpersonation.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filters/impersonation.go:50 +0x21c
net/http.HandlerFunc.ServeHTTP(0xc0008306c0?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x1?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filterlatency.trackStarted.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filterlatency/filterlatency.go:79 +0x178
net/http.HandlerFunc.ServeHTTP(0x0?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x0?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filterlatency.trackCompleted.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filterlatency/filterlatency.go:103 +0x1a5
net/http.HandlerFunc.ServeHTTP(0xc0008305a0?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x1?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filterlatency.trackStarted.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filterlatency/filterlatency.go:79 +0x178
net/http.HandlerFunc.ServeHTTP(0x0?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x0?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filterlatency.trackCompleted.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filterlatency/filterlatency.go:103 +0x1a5
net/http.HandlerFunc.ServeHTTP(0x20f07f0?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x20cd780?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filters.withAuthentication.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1a00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filters/authentication.go:80 +0x8b9
net/http.HandlerFunc.ServeHTTP(0x20f07b8?, {0x7f4ca4a07a98?, 0xc000128688?}, 0x20cd778?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filterlatency.trackStarted.func1({0x7f4ca4a07a98, 0xc000128688}, 0xc0005f1800)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filterlatency/filterlatency.go:88 +0x46b
net/http.HandlerFunc.ServeHTTP(0x8da0c0?, {0x7f4ca4a07a98?, 0xc000128688?}, 0xc00081c780?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/server/filters.(*timeoutHandler).ServeHTTP.func1()
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/server/filters/timeout.go:108 +0xa2
created by k8s.io/apiserver/pkg/server/filters.(*timeoutHandler).ServeHTTP
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/server/filters/timeout.go:94 +0x2cc

goroutine 630 [running]:
golang.org/x/net/http2.(*serverConn).runHandler.func1()
    /go/pkg/mod/golang.org/x/net@v0.0.0-20210805182204-aaa1db679c0d/http2/server.go:2151 +0x125
panic({0x1a454c0, 0xc000392ce0})
    /usr/local/go/src/runtime/panic.go:838 +0x207
k8s.io/apimachinery/pkg/util/runtime.HandleCrash({0xc000455070, 0x1, 0x17954a6?})
    /go/pkg/mod/k8s.io/apimachinery@v0.22.3/pkg/util/runtime/runtime.go:55 +0xd8
panic({0x1a454c0, 0xc000392ce0})
    /usr/local/go/src/runtime/panic.go:838 +0x207
k8s.io/apiserver/pkg/server/filters.(*timeoutHandler).ServeHTTP(0xc000752480, {0x20ee2a8?, 0xc000564980}, 0xdf8475800?)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/server/filters/timeout.go:114 +0x452
k8s.io/apiserver/pkg/endpoints/filters.withRequestDeadline.func1({0x20ee2a8, 0xc000564980}, 0xc0005f1700)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filters/request_deadline.go:101 +0x494
net/http.HandlerFunc.ServeHTTP(0x0?, {0x20ee2a8?, 0xc000564980?}, 0x0?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/server/filters.WithWaitGroup.func1({0x20ee2a8?, 0xc000564980}, 0xc0005f1700)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/server/filters/waitgroup.go:59 +0x177
net/http.HandlerFunc.ServeHTTP(0x20f07f0?, {0x20ee2a8?, 0xc000564980?}, 0x20cd778?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filters.WithWarningRecorder.func1({0x20ee2a8?, 0xc000564980}, 0xc0005f1600)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filters/warning.go:35 +0x2bb
net/http.HandlerFunc.ServeHTTP(0x1c77a80?, {0x20ee2a8?, 0xc000564980?}, 0xd?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filters.WithCacheControl.func1({0x20ee2a8, 0xc000564980}, 0x0?)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filters/cachecontrol.go:31 +0x126
net/http.HandlerFunc.ServeHTTP(0x20f07f0?, {0x20ee2a8?, 0xc000564980?}, 0x20cd778?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/server/httplog.WithLogging.func1({0x20e3ef8?, 0xc00000ece0}, 0xc0005f1500)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/server/httplog/httplog.go:103 +0x518
net/http.HandlerFunc.ServeHTTP(0x20f07f0?, {0x20e3ef8?, 0xc00000ece0?}, 0x20cd778?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filters.WithRequestInfo.func1({0x20e3ef8, 0xc00000ece0}, 0xc0005f1400)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filters/requestinfo.go:39 +0x316
net/http.HandlerFunc.ServeHTTP(0x20f07f0?, {0x20e3ef8?, 0xc00000ece0?}, 0x203000?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filters.withRequestReceivedTimestampWithClock.func1({0x20e3ef8, 0xc00000ece0}, 0xc0005f1300)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filters/request_received_time.go:38 +0x27e
net/http.HandlerFunc.ServeHTTP(0x160?, {0x20e3ef8?, 0xc00000ece0?}, 0x0?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/server/filters.withPanicRecovery.func1({0x20e3ef8?, 0xc00000ece0?}, 0xc000764b00?)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/server/filters/wrap.go:74 +0xb1
net/http.HandlerFunc.ServeHTTP(0x1c77a80?, {0x20e3ef8?, 0xc00000ece0?}, 0x8?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/endpoints/filters.withAuditID.func1({0x20e3ef8, 0xc00000ece0}, 0xc0006d3f00)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/endpoints/filters/with_auditid.go:66 +0x40d
net/http.HandlerFunc.ServeHTTP(0xc00037fca0?, {0x20e3ef8?, 0xc00000ece0?}, 0x24?)
    /usr/local/go/src/net/http/server.go:2084 +0x2f
k8s.io/apiserver/pkg/server.(*APIServerHandler).ServeHTTP(0x0?, {0x20e3ef8?, 0xc00000ece0?}, 0xc0002b0fe8?)
    /go/pkg/mod/k8s.io/apiserver@v0.22.3/pkg/server/handler.go:189 +0x2b
net/http.serverHandler.ServeHTTP({0x6f78c0?}, {0x20e3ef8, 0xc00000ece0}, 0xc0006d3f00)
    /usr/local/go/src/net/http/server.go:2916 +0x43b
net/http.initALPNRequest.ServeHTTP({{0x20f07f0?, 0xc0007aa7b0?}, 0xc0002b0e00?, {0xc0001b6a80?}}, {0x20e3ef8, 0xc00000ece0}, 0xc0006d3f00)
    /usr/local/go/src/net/http/server.go:3523 +0x245
golang.org/x/net/http2.(*serverConn).runHandler(0x20dfc88?, 0x3035698?, 0x0?, 0x0?)
    /go/pkg/mod/golang.org/x/net@v0.0.0-20210805182204-aaa1db679c0d/http2/server.go:2158 +0x78
created by golang.org/x/net/http2.(*serverConn).processHeaders
    /go/pkg/mod/golang.org/x/net@v0.0.0-20210805182204-aaa1db679c0d/http2/server.go:1888 +0x52b
W0421 11:26:43.833638       1 warnings.go:70] flowcontrol.apiserver.k8s.io/v1beta1 FlowSchema is deprecated in v1.23+, unavailable in v1.26+; use flowcontrol.apiserver.k8s.io/v1beta2 FlowSchema
W0421 11:26:47.832460       1 warnings.go:70] flowcontrol.apiserver.k8s.io/v1beta1 PriorityLevelConfiguration is deprecated in v1.23+, unavailable in v1.26+; use flowcontrol.apiserver.k8s.io/v1beta2 PriorityLevelConfiguration
Laykou commented 1 year ago

@vidriduch Pozreli by ste sa prosim na tento error, ci sa vam zda, ze som ja musel urobit nejaku chybu v konfiguraciach, alebo to moze byt nejaky bug v Go webhook kode?

Dakujem velmi pekne

Laykou commented 1 year ago

Nasiel som chybu v Kubernetes konfiguraciach u nas, secretoch, este inak pomenovat + nastavit DNS.

Napokon to vsetko pekne fungovalo podla tohto navodu, takze zatvaram, a super praca ze totok existuje pre websupport.sk! :)