Documentation ¶
Index ¶
- func GetContainerImages(containerLists ...[]v1.Container) []string
- func GetImagePullSecretFromPodSpec(ctx context.Context, k8sClient client.Client, namespace string, ...) (string, error)
- func ParseMatchNodeLabels(labels string) []string
- func PodSpecHasNodeArchitectureSelection(ctx context.Context, podSpec *v1.PodSpec) (string, bool)
- type Handler
- type HandlerMetrics
- type HandlerOption
- func WithArchitecture(arch string) HandlerOption
- func WithDecoder(decoder *admission.Decoder) HandlerOption
- func WithMatchNodeLabels(labels []string) HandlerOption
- func WithMetricsRegistry(reg metrics.RegistererGatherer) HandlerOption
- func WithOS(os string) HandlerOption
- func WithSchedulableArchitectures(archs []string) HandlerOption
- type Registry
- type RegistryFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContainerImages ¶
func ParseMatchNodeLabels ¶
Types ¶
type Handler ¶
type Handler struct { Client client.Client Registry Registry // contains filtered or unexported fields }
func NewHandler ¶
func NewHandler(client client.Client, registry Registry, opts ...HandlerOption) *Handler
type HandlerMetrics ¶
type HandlerMetrics struct { ImagePullSecretFailed *prometheus.CounterVec RegistryErrors *prometheus.CounterVec UpdateSkept *prometheus.CounterVec ArchSelectorInjected *prometheus.CounterVec PreferredArchitectureNotAvailable *prometheus.CounterVec NodeMatchSelector *prometheus.CounterVec }
func NewHandlerMetrics ¶
func NewHandlerMetrics(prefix string) *HandlerMetrics
func (HandlerMetrics) MustRegister ¶
func (m HandlerMetrics) MustRegister(reg metrics.RegistererGatherer)
type HandlerOption ¶
type HandlerOption func(*Handler)
func WithArchitecture ¶
func WithArchitecture(arch string) HandlerOption
func WithDecoder ¶
func WithDecoder(decoder *admission.Decoder) HandlerOption
func WithMatchNodeLabels ¶
func WithMatchNodeLabels(labels []string) HandlerOption
func WithMetricsRegistry ¶
func WithMetricsRegistry(reg metrics.RegistererGatherer) HandlerOption
func WithOS ¶
func WithOS(os string) HandlerOption
func WithSchedulableArchitectures ¶
func WithSchedulableArchitectures(archs []string) HandlerOption
Click to show internal directories.
Click to hide internal directories.