apiextensions-apiserver: k8s.io/apiextensions-apiserver/test/integration/conversion Index | Files

package conversion

import "k8s.io/apiextensions-apiserver/test/integration/conversion"

Index

Package Files

webhook.go

func NewObjectConverterWebhookHandler Uses

func NewObjectConverterWebhookHandler(t *testing.T, converterFunc ObjectConverterFunc) http.Handler

NewObjectConverterWebhookHandler creates a handler that delegates custom resource conversion to the provided ConverterFunc.

func NewReviewWebhookHandler Uses

func NewReviewWebhookHandler(t *testing.T, v1beta1ConverterFunc V1Beta1ReviewConverterFunc, v1ConverterFunc V1ReviewConverterFunc) http.Handler

NewReviewWebhookHandler creates a handler that delegates the review conversion to the provided ReviewConverterFunc.

func StartConversionWebhookServer Uses

func StartConversionWebhookServer(handler http.Handler) (func(), *apiextensionsv1beta1.WebhookClientConfig, error)

StartConversionWebhookServer starts an http server with the provided handler and returns the WebhookClientConfig needed to configure a CRD to use this conversion webhook as its converter.

type ObjectConverterFunc Uses

type ObjectConverterFunc func(desiredAPIVersion string, customResource runtime.RawExtension) (runtime.RawExtension, error)

ObjectConverterFunc converts a single custom resource to the desiredAPIVersion and returns it or returns an error.

type V1Beta1ReviewConverterFunc Uses

type V1Beta1ReviewConverterFunc func(review *apiextensionsv1beta1.ConversionReview) (*apiextensionsv1beta1.ConversionReview, error)

V1Beta1ReviewConverterFunc converts an entire ConversionReview.

type V1ReviewConverterFunc Uses

type V1ReviewConverterFunc func(review *apiextensionsv1.ConversionReview) (*apiextensionsv1.ConversionReview, error)

V1ReviewConverterFunc converts an entire ConversionReview.

Package conversion imports 15 packages (graph). Updated 2019-08-18. Refresh now. Tools for package owners.