kubernetesk8s.io/kubernetes/pkg/controlplane/controller/crdregistration Index | Files

package crdregistration

import "k8s.io/kubernetes/pkg/controlplane/controller/crdregistration"

Index

Functions

func NewCRDRegistrationController

func NewCRDRegistrationController(crdinformer crdinformers.CustomResourceDefinitionInformer, apiServiceRegistration AutoAPIServiceRegistration) *crdRegistrationController

NewCRDRegistrationController returns a controller which will register CRD GroupVersions with the auto APIService registration controller so they automatically stay in sync.

Types

type AutoAPIServiceRegistration

type AutoAPIServiceRegistration interface {
	// AddAPIServiceToSync adds an API service to auto-register.
	AddAPIServiceToSync(in *v1.APIService)
	// RemoveAPIServiceToSync removes an API service to auto-register.
	RemoveAPIServiceToSync(name string)
}

AutoAPIServiceRegistration is an interface which callers can re-declare locally and properly cast to for adding and removing APIServices

Source Files

crdregistration_controller.go

Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Imports
14 packages
Last checked
3 hours ago

Tools for package owners.