Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static manifest with-rbac-webhook.yaml busted #1034

Closed
jbeda opened this issue Nov 1, 2018 · 4 comments · Fixed by #1138
Closed

Static manifest with-rbac-webhook.yaml busted #1034

jbeda opened this issue Nov 1, 2018 · 4 comments · Fixed by #1138
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@jbeda
Copy link

jbeda commented Nov 1, 2018

Describe the bug:

The non-helm version that installs the webhook fails as it doesn't define the CRDs. They don't appear to be included in the manifest.

Expected behaviour:

I would expect the yaml to be applied cleanly.

Steps to reproduce the bug:

cd contrib/manifests/cert-manager
kubectl create namespace cert-manager
kubectl label namespace cert-manager certmanager.k8s.io/disable-validation=true
kubectl apply -f with-rbac-webhook.yaml

You'll get some errors like this:

unable to recognize "with-rbac-webhook.yaml": no matches for kind "Issuer" in version "certmanager.k8s.io/v1alpha1"
unable to recognize "with-rbac-webhook.yaml": no matches for kind "Certificate" in version "certmanager.k8s.io/v1alpha1"
unable to recognize "with-rbac-webhook.yaml": no matches for kind "Issuer" in version "certmanager.k8s.io/v1alpha1"
unable to recognize "with-rbac-webhook.yaml": no matches for kind "Certificate" in version "certmanager.k8s.io/v1alpha1"

Anything else we need to know?:

Environment details::
k8s v1.11.2

/kind bug

@jetstack-bot jetstack-bot added the kind/bug Categorizes issue or PR as related to a bug. label Nov 1, 2018
@jbeda
Copy link
Author

jbeda commented Nov 1, 2018

Also, this static manifest doesn't create the namespace. I had to create it manually. Looks like it is created as part of the non webhook static manifests.

@munnerz
Copy link
Member

munnerz commented Nov 1, 2018 via email

@jbeda
Copy link
Author

jbeda commented Nov 1, 2018

Ah! That makes more sense then.

It is cool for sure and I'll have to try it out some time soon. Very meta to have cert-manager create a cert so that it can talk to k8s.

@munnerz
Copy link
Member

munnerz commented Nov 5, 2018

Yep - the way it's setup right now is a little shakey. We use a CronJob/Job resource that copies the certificate into the ValidatingWebhookConfiguration and APIService resources...

I'm hoping we can come up with a better way to handle this soon, but wanted to unblock the validation work and get it out in some form to gather feedback 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
3 participants