apis

package
v0.0.0-...-2d43aa0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// NvidiaGPUStatusAnnotationKey is the key of the node annotation for GPU status
	NvidiaGPUStatusAnnotationKey = "huawei.com/gpu-status"
	// NvidiaGPUDecisionAnnotationKey is the key of the pod annotation for scheduler GPU decision
	NvidiaGPUDecisionAnnotationKey = "huawei.com/gpu-decision"
	// NvidiaGPUScalarResourceName is the device plugin resource name used for special handling
	NvidiaGPUScalarResourceName = "nvidia.com/gpu"
	// NvidiaGPUMaxUsage is the maximum possible usage of a GPU in millis
	NvidiaGPUMaxUsage = 1000
	//StatusTag is to compare status of resources
	StatusTag = "StatusTag"
)

Variables

View Source
var (
	ErrPodNotFound       = errors.New("PodNotFound")
	ErrContainerNotFound = errors.New("ContainerNotFound")
	ErrPodStartBackOff   = errors.New("PodStartBackOff")
)

error variables

Functions

This section is empty.

Types

type Node

type Node struct {
	Name string
}

Node is object type for node

type RainerCoreConfiguration

type RainerCoreConfiguration struct {

	// IP address for the EdgeStore etcd server
	EdgeStoreAddress string

	// Port for the EdgeStore to server on
	EdgeStorePort int

	// nodesStatusUpdateFrequency is the frequency that EdgeController posts edgenodes
	// status to apiserver. Note: be cautious when changing the constant, it
	// must work with nodeMonitorGracePeriod in nodecontroller.
	NodesStatusUpdateFrequency time.Duration

	// Todo: for now, assume single namespace
	// registerNodeNamespace defines the namespace of the edge nodes to be registered
	RegisterNodeNamespace string
}

RainerCoreConfiguration is configuration object for edge node

type UID

type UID string

UID is string form to represent ID

Directories

Path Synopsis
runtime
cri

Jump to

Keyboard shortcuts

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