@@ -406,22 +406,22 @@ The webhook should perform these conversions independently.
406
406
# ## Write a conversion webhook server
407
407
408
408
Please refer to the implementation of the [custom resource conversion webhook
409
- server](https://github.com/kubernetes/kubernetes/tree/v1.15.0 /test/images/crd-conversion-webhook/main.go)
409
+ server](https://github.com/kubernetes/kubernetes/tree/v1.25.3 /test/images/agnhost /crd-conversion-webhook/main.go)
410
410
that is validated in a Kubernetes e2e test. The webhook handles the
411
411
` ConversionReview` requests sent by the API servers, and sends back conversion
412
412
results wrapped in `ConversionResponse`. Note that the request
413
413
contains a list of custom resources that need to be converted independently without
414
414
changing the order of objects.
415
415
The example server is organized in a way to be reused for other conversions.
416
416
Most of the common code are located in the
417
- [framework file](https://github.com/kubernetes/kubernetes/tree/v1.15.0 /test/images/crd-conversion-webhook/converter/framework.go)
417
+ [framework file](https://github.com/kubernetes/kubernetes/tree/v1.25.3 /test/images/agnhost /crd-conversion-webhook/converter/framework.go)
418
418
that leaves only
419
- [one function](https://github.com/kubernetes/kubernetes/blob /v1.15.0 /test/images/crd-conversion-webhook/converter/example_converter.go#L29-L80)
419
+ [one function](https://github.com/kubernetes/kubernetes/tree /v1.25.3 /test/images/agnhost /crd-conversion-webhook/converter/example_converter.go#L29-L80)
420
420
to be implemented for different conversions.
421
421
422
422
{{< note >}}
423
423
The example conversion webhook server leaves the `ClientAuth` field
424
- [empty](https://github.com/kubernetes/kubernetes/tree/v1.13.0 /test/images/crd-conversion-webhook/config.go#L47-L48),
424
+ [empty](https://github.com/kubernetes/kubernetes/tree/v1.25.3 /test/images/agnhost /crd-conversion-webhook/config.go#L47-L48),
425
425
which defaults to `NoClientCert`. This means that the webhook server does not
426
426
authenticate the identity of the clients, supposedly API servers. If you need
427
427
mutual TLS or other ways to authenticate the clients, see
0 commit comments