You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have forked this repo to implement a custom solver for desec, but found myself unable to deploy a working instance on my up-to-date Debian system. The issue has been pinpointed as the go version used for implementing the hook, as an updated version will necessitate an update in the Dockerfile as well. The same problem was encountered by another user in #27
Steps to reproduce:
Install a version of go > 1.19 on a development machine
Implement a hook
Run go module init
Run go mod tidy
Extract go version from go.mod file and update the Dockerfile's FROM reference with it, i.e. set FROM golang:1.21-alpine3.18 AS build_dep
Build docker image for hook
Deploy hook
Expected Result:
The hook is deployed and the relevant cert-manager resources are up and running.
Actual Result:
The webhook pod does not start and ends in a CrashLoopBackOff state. Reviewing its logs, the following error shows up: cert-manager: error executing command" err="error installing APIGroup for solvers: unable to get openapi models: OpenAPIV3 config must not be nil
Outcome:
Developers are forced to use either one of two ugly workarounds:
Install an old and outdated version of go (i.e. v1.19) on your system before you start implementing a hook
Diff your go.mod and go.sum files to those of another hook implemented in go v1.19, merging the newly added lines of your project into the existing lines of another working project, leaving the FROM reference in the Dockerfile at go v1.19
The text was updated successfully, but these errors were encountered:
Thank you for raising this @irreleph4nt ! I'm going to close in favour of #27 since that has a bunch of discussion - any fix for #27 will make sure this builds using go 1.21 (since that's what we're generally using to develop other cert-manager subprojects).
I have forked this repo to implement a custom solver for desec, but found myself unable to deploy a working instance on my up-to-date Debian system. The issue has been pinpointed as the go version used for implementing the hook, as an updated version will necessitate an update in the Dockerfile as well. The same problem was encountered by another user in #27
Steps to reproduce:
FROM golang:1.21-alpine3.18 AS build_dep
Expected Result:
The hook is deployed and the relevant cert-manager resources are up and running.
Actual Result:
The webhook pod does not start and ends in a CrashLoopBackOff state. Reviewing its logs, the following error shows up:
cert-manager: error executing command" err="error installing APIGroup for solvers: unable to get openapi models: OpenAPIV3 config must not be nil
Outcome:
Developers are forced to use either one of two ugly workarounds:
The text was updated successfully, but these errors were encountered: