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

package crdregistration

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

Index

Functions

func NewAutoRegistrationController

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

NewAutoRegistrationController returns a controller which will register TPR GroupVersions with the auto APIService registration controller so they automatically stay in sync. In order to stay sane with both TPR and CRD present, we have a single controller that manages both. When choosing whether to have an APIService, we simply iterate through both.

Types

type AutoAPIServiceRegistration

type AutoAPIServiceRegistration interface {
	// AddAPIServiceToSync adds an API service to auto-register.
	AddAPIServiceToSync(in *apiregistration.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.8.1
Published
Oct 11, 2017
Platform
js/wasm
Imports
15 packages
Last checked
3 minutes ago

Tools for package owners.