toolchain required for certmanager build of DNS01 providers ?

25 views
Skip to first unread message

Frederick Isaac

unread,
Oct 9, 2019, 4:55:17 PM10/9/19
to cert-manager-dev
trying to add a DNS01 provider to certmanager v0.10.1

Following the doco here


so far got the code added but the build of certmanager as per the doco is just

./hack/update-codegen.sh

which so far 

needs

1) gazelle
2) kazel
3) buildoze
4) all the deepcopy-gen, client-gen, defaulter-gen, informer0gen, lister-gen (all built by hand by me under vendor/k8s.io/code-generator/cmd/*)

complains that the conversion for my new type in pkg.apis/certmanager/v1alpha1 need adding by hand ??

Maybe I am missing some part of the setup for a correct build environment (centos 7, golang v1.12)

any help much appreciated

Frederick Isaac

unread,
Oct 9, 2019, 7:02:44 PM10/9/19
to cert-manager-dev
got past the conversion errors

had to replicate my changes to

pkg/internal/apis/certmanager/types-issuer.go

not sure if this is the correct thing to do or not (it certainly isn't part of the doco)

now it is just not getting through the bazel-update.sh part of the script

but throwing lots of 

extract err : cannot find package "github.com/jetstack/cert-manager/pkg.issuer/acme/http/solver" etc. etc.

GOPATH seems to be ok but may the bazel_updae is overwriting it ?




Frederick Isaac

unread,
Oct 9, 2019, 7:31:48 PM10/9/19
to cert-manager-dev
err - looking again at the

hack/update-codegen.sh

it has a comment in it that states

this script should be run using bazel run //hack:update-bazel (??) codegen run as update-bazel

doing so doesn't seem to run the code generators though ??

at the very least the DNS01 provider steps need to be updated to clarify some of the things

Reply all
Reply to author
Forward
0 new messages