kubernetesk8s.io/kubernetes/pkg/kubelet/runtimeclass Index | Files | Directories

package runtimeclass

import "k8s.io/kubernetes/pkg/kubelet/runtimeclass"

Index

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager caches RuntimeClass API objects, and provides accessors to the Kubelet.

func NewManager

func NewManager(client dynamic.Interface) *Manager

NewManager returns a new RuntimeClass Manager. Run must be called before the manager can be used.

func (*Manager) LookupRuntimeHandler

func (m *Manager) LookupRuntimeHandler(runtimeClassName *string) (string, error)

LookupRuntimeHandler returns the RuntimeHandler string associated with the given RuntimeClass name (or the default of "" for nil). If the RuntimeClass is not found, it returns an apierrors.NotFound error.

func (*Manager) Run

func (m *Manager) Run(stopCh <-chan struct{})

Run starts syncing the RuntimeClass cache with the apiserver.

Source Files

runtimeclass_manager.go

Directories

PathSynopsis
pkg/kubelet/runtimeclass/testing
Version
v1.12.7
Published
Mar 22, 2019
Platform
js/wasm
Imports
8 packages
Last checked
6 minutes ago

Tools for package owners.