webhooks

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TODO: Remove conversion webhooks once support for the v1beta1 APIs is dropped
	ConversionResource = map[schema.GroupKind]conversion.GroupKindConversion{
		object.GVK(&v1beta1.NodePool{}).GroupKind(): {
			DefinitionName: "nodepools.karpenter.sh",
			HubVersion:     "v1",
			Zygotes: map[string]conversion.ConvertibleObject{
				"v1":      &v1.NodePool{},
				"v1beta1": &v1beta1.NodePool{},
			},
		},
		object.GVK(&v1beta1.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 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

Types

This section is empty.

Jump to

Keyboard shortcuts

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