Documentation
¶
Index ¶
- Constants
- func AddDataConfigField(data map[string]string, key, value string)
- func ExtractCapabilitiesConfigMapName(pod *v1.Pod, containerIndex int, containerType ContainerType) (string, error)
- func ExtractDirectEnvVarsConfigMapName(pod *v1.Pod, containerIndex int, containerType ContainerType) (string, error)
- func GenerateCapabilitiesConfigMapData() map[string]string
- func GetDesiredConfigMapNameBC(pod *v1.Pod) (string, error)
- func HandleBCPod(ctx context.Context, kubeClient client.Client, pod *v1.Pod) (string, error)
- func SetGpuCapabilitiesConfigMapName(pod *v1.Pod, containerIndex int, containerType ContainerType) string
- func UpdateBCPod(ctx context.Context, kubeClient client.Client, pod *v1.Pod, ...) error
- func UpsertJobConfigMap(ctx context.Context, kubeClient client.Client, pod *v1.Pod, ...) (err error)
- type ContainerType
Constants ¶
View Source
const ( RunaiConfigMapGpu = "runai-sh-gpu" DesiredConfigMapPrefixKey = "runai/shared-gpu-configmap" )
View Source
const ( RegularContainer = "RegularContainer" InitContainer = "InitContainer" )
Variables ¶
This section is empty.
Functions ¶
func AddDataConfigField ¶
func HandleBCPod ¶
func SetGpuCapabilitiesConfigMapName ¶
func SetGpuCapabilitiesConfigMapName(pod *v1.Pod, containerIndex int, containerType ContainerType) string
func UpdateBCPod ¶
Types ¶
type ContainerType ¶
type ContainerType string
Click to show internal directories.
Click to hide internal directories.