webhooks

package
v0.36.6 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 32 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConversionResource = map[schema.GroupKind]conversion.GroupKindConversion{
		v1beta1.SchemeGroupVersion.WithKind("NodePool").GroupKind(): {
			DefinitionName: "nodepools.karpenter.sh",
			HubVersion:     "v1",
			Zygotes: map[string]conversion.ConvertibleObject{
				"v1":      &v1.NodePool{},
				"v1beta1": &v1beta1.NodePool{},
			},
		},
		v1beta1.SchemeGroupVersion.WithKind("NodeClaim").GroupKind(): {
			DefinitionName: "nodeclaims.karpenter.sh",
			HubVersion:     "v1",
			Zygotes: map[string]conversion.ConvertibleObject{
				"v1":      &v1.NodeClaim{},
				"v1beta1": &v1beta1.NodeClaim{},
			},
		},
	}
)

Functions

func HealthProbe

func HealthProbe(ctx context.Context) healthz.Checker

func NewCRDConversionWebhook added in v0.33.6

func NewCRDConversionWebhook(ctx context.Context, _ configmap.Watcher) *controller.Impl

func NewCRDValidationWebhook

func NewCRDValidationWebhook(ctx context.Context, _ configmap.Watcher) *controller.Impl

func NewConfigValidationWebhook

func NewConfigValidationWebhook(ctx context.Context, _ configmap.Watcher) *controller.Impl

func Start

Start copies the relevant portions for starting the webhooks from sharedmain.MainWithConfig https://github.com/knative/pkg/blob/0f52db700d63/injection/sharedmain/main.go#L227

func ValidateConversionEnabled added in v0.33.8

func ValidateConversionEnabled(ctx context.Context, kubeclient client.Client)

Types

This section is empty.

Jump to

Keyboard shortcuts

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