Make webhook example compatible with TLS secrets#793
Make webhook example compatible with TLS secrets#793k8s-ci-robot merged 1 commit intokubernetes-csi:masterfrom
Conversation
Kubernetes has a builtin Secret type `kubernetes.io/tls` which uses the keys `tls.crt` and `tls.key`.
|
Welcome @haslersn! |
|
Hi @haslersn. Thanks for your PR. I'm waiting for a kubernetes-csi member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
/assign @deepakkinni |
|
/ok-to-test |
|
/approve |
|
/release-note-none |
|
@haslersn Please add a release note. |
|
/assign |
Should be done now. |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: deepakkinni, haslersn, xing-yang The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
I was trying out deploying the webhook as per the docs and i see a CLBO I suppose there are changes needed in https://github.com/kubernetes-csi/external-snapshotter/blob/master/deploy/kubernetes/webhook-example/create-cert.sh as well |
|
That sounds right, the script should also follow the format of TLS-type secrets. |
|
@deepakkinni does #796 fix your problem? |
Kubernetes has a builtin Secret type
kubernetes.io/tlswhich uses the keystls.crtandtls.key.With this change, when you download the example
webhook.yaml, it's immediately compatible with secrets created e.g. by cert-manager. The downloaded file can be integrated into kustomize projects without further modification or patches./kind documentation