gpusharingconfigmap

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RegularContainer = "RegularContainer"

	InitContainer = "InitContainer"
)

Variables

This section is empty.

Functions

func AddDataConfigField

func AddDataConfigField(data map[string]string, key, value string)

func ExtractCapabilitiesConfigMapName

func ExtractCapabilitiesConfigMapName(pod *v1.Pod, containerIndex int, containerType ContainerType) (string, error)

func ExtractDirectEnvVarsConfigMapName

func ExtractDirectEnvVarsConfigMapName(pod *v1.Pod, containerIndex int, containerType ContainerType) (string, error)

func SetGpuCapabilitiesConfigMapName

func SetGpuCapabilitiesConfigMapName(pod *v1.Pod, containerIndex int, containerType ContainerType) string

func UpsertJobConfigMap

func UpsertJobConfigMap(ctx context.Context,
	kubeClient client.Client, pod *v1.Pod, configMapName string, data map[string]string) (err error)

Types

type ContainerType

type ContainerType string

Jump to

Keyboard shortcuts

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