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 NewCRDConversionWebhook ¶ added in v0.33.6
func NewWebhooks ¶
func NewWebhooks() []knativeinjection.ControllerConstructor
func Start ¶
func Start(ctx context.Context, cfg *rest.Config, ctors ...knativeinjection.ControllerConstructor)
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.
Click to show internal directories.
Click to hide internal directories.