cert-manager-webhook-coredns-etcd

command module
v0.0.0-...-016ebf4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

README

[WIP] cert-manager-webhook-coredns-etcd

A webhook for performing DNS01 validation against CoreDNS backended by etcd.

TODO

  • ensure that (Cluster)Issuer can talk to APIService/Service

Building

docker build -t cert-manager-webhook-coredns-etcd .

Deploying

helm upgrade --install \
  cert-manager-webhook-coredns-etcd \
  -n pair-system \
  --set image.repository=cert-manager-webhook-coredns-etcd \
  --set image.pullPolicy=Never \
  --set groupName=$SHARINGIO_PAIR_BASE_DNS_NAME \
  deploy/cert-manager-webhook-coredns-etcd/

Running the test suite

All DNS providers must run the DNS01 provider conformance testing suite, else they will have undetermined behaviour when used with cert-manager.

It is essential that you configure and run the test suite when creating a DNS01 webhook.

An example Go test file has been provided in main_test.go.

You can run the test suite with:

$ TEST_ZONE_NAME=example.com. make test

The example file has a number of areas you must fill in and replace with your own options in order for tests to pass.

Debug

Show all ClusterRoles for cert-manager (and misc)

kubectl get clusterrole $(kubectl get clusterrole | grep cert-manager | awk '{print $1}' | xargs) -o yaml | less

Show all keys in etcd

etcdctl --endpoints "etcd-client.pair-system:2379" get / --prefix --keys-only

Testing

envsubst < ./letsencrypt-coredns-staging.yaml | kubectl apply -f -

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL