Documentation ¶
Index ¶
Constants ¶
View Source
const ( UNSET triState = iota - 1 FALSE TRUE )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdmissionController ¶
type AdmissionController struct {
// contains filtered or unexported fields
}
func InitAdmissionController ¶
func InitAdmissionController(conf *conf.AdmissionControllerConf, pcCache *PriorityClassCache, nsCache *NamespaceCache) *AdmissionController
func (*AdmissionController) Health ¶
func (c *AdmissionController) Health(w http.ResponseWriter, r *http.Request)
func (*AdmissionController) Serve ¶
func (c *AdmissionController) Serve(w http.ResponseWriter, r *http.Request)
type Informers ¶
type Informers struct { ConfigMap informersv1.ConfigMapInformer PriorityClass schedulinginformersv1.PriorityClassInformer Namespace informersv1.NamespaceInformer // contains filtered or unexported fields }
func NewInformers ¶
func NewInformers(kubeClient client.KubeClient, namespace string) *Informers
type NamespaceCache ¶ added in v1.3.0
func NewNamespaceCache ¶ added in v1.3.0
func NewNamespaceCache(namespaces informersv1.NamespaceInformer) (*NamespaceCache, error)
NewNamespaceCache creates a new cache and registers the handler for the cache with the Informer.
type PriorityClassCache ¶
func NewPriorityClassCache ¶
func NewPriorityClassCache(priorityClasses informersv1.PriorityClassInformer) (*PriorityClassCache, error)
NewPriorityClassCache creates a new cache and registers the handler for the cache with the Informer.
type ValidateConfResponse ¶
type WebhookManager ¶
type WebhookManager interface { // LoadCACertificates is used to load CA certs from K8s secrets and update if needed LoadCACertificates() error // InstallWebhooks is used to install or update webhooks InstallWebhooks() error // GenerateServerCertificate is used to generate a server certificate chain GenerateServerCertificate() (*tls.Certificate, error) // WaitForCertificateExpiration blocks until certificates need to be renewed WaitForCertificateExpiration() }
WebhookManager is used to handle all registration requirements for the webhook, including certificates
func NewWebhookManager ¶
func NewWebhookManager(conf *conf.AdmissionControllerConf) (WebhookManager, error)
NewWebhookManager is used to create a new webhook manager
Source Files ¶
Click to show internal directories.
Click to hide internal directories.