corev1

package
v0.0.0-...-d88c8b5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package corev1 defines functions which should satisfy one of the following:

- Be used by more than one core component (kube-scheduler, kubelet, kube-apiserver, etc.) - Be used by a core component and another kubernetes project (cluster-autoscaler, descheduler)

And be a scheduling feature.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchNodeSelectorTerms

func MatchNodeSelectorTerms(
	node *v1.Node,
	nodeSelector *v1.NodeSelector,
) (bool, error)

MatchNodeSelectorTerms checks whether the node labels and fields match node selector terms in ORed; nil or empty term matches no objects.

func PodPriority

func PodPriority(pod *v1.Pod) int32

PodPriority returns priority of the given pod.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL