knativeserving

package
v0.0.0-...-2937caa Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MutatingWebhook

func MutatingWebhook(mgr manager.Manager) (webhook.Webhook, error)

Add creates a new KnativeServing Webhook

func PatchResponseFromRaw

func PatchResponseFromRaw(original, current []byte) types.Response

PatchResponseFromRaw takes 2 byte arrays and returns a new response with json patch. The original object should be passed in as raw bytes to avoid the roundtripping problem described in https://github.com/kubernetes-sigs/kubebuilder/issues/510.

func ValidatingWebhook

func ValidatingWebhook(mgr manager.Manager) (webhook.Webhook, error)

Creates a new validating KnativeServing Webhook

Types

type KnativeServingConfigurator

type KnativeServingConfigurator struct {
	// contains filtered or unexported fields
}

KnativeServingConfigurator annotates Kss

func (*KnativeServingConfigurator) Handle

KnativeServingConfigurator adds an annotation to every incoming KnativeServing CR.

func (*KnativeServingConfigurator) InjectClient

func (v *KnativeServingConfigurator) InjectClient(c client.Client) error

InjectClient injects the client.

func (*KnativeServingConfigurator) InjectDecoder

func (v *KnativeServingConfigurator) InjectDecoder(d types.Decoder) error

InjectDecoder injects the decoder.

type KnativeServingValidator

type KnativeServingValidator struct {
	// contains filtered or unexported fields
}

KnativeServingValidator validates KnativeServing CR's

func (*KnativeServingValidator) Handle

What makes us a webhook

func (*KnativeServingValidator) InjectClient

func (v *KnativeServingValidator) InjectClient(c client.Client) error

InjectClient injects the client.

func (*KnativeServingValidator) InjectDecoder

func (v *KnativeServingValidator) InjectDecoder(d types.Decoder) error

InjectDecoder injects the decoder.

Jump to

Keyboard shortcuts

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