Documentation ¶
Index ¶
- Variables
- func HealthProbe(ctx context.Context) healthz.Checker
- func NewCRDConversionWebhook(ctx context.Context, _ configmap.Watcher) *controller.Impl
- func NewCRDValidationWebhook(ctx context.Context, _ configmap.Watcher) *controller.Impl
- func NewConfigValidationWebhook(ctx context.Context, _ configmap.Watcher) *controller.Impl
- func NewWebhooks() []knativeinjection.ControllerConstructor
- func Start(ctx context.Context, cfg *rest.Config, ...)
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{}, }, }, } )
View Source
var ( Resources = map[schema.GroupVersionKind]resourcesemantics.GenericCRD{ v1beta1.SchemeGroupVersion.WithKind("NodePool"): &v1beta1.NodePool{}, v1beta1.SchemeGroupVersion.WithKind("NodeClaim"): &v1beta1.NodeClaim{}, } )
Functions ¶
func NewCRDConversionWebhook ¶ added in v0.33.6
func NewCRDValidationWebhook ¶
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.