utils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OrgInstaslicePrefix string = "instaslice.redhat.com/"
)

Variables

This section is empty.

Functions

func AppendToInstaSlicePrefix

func AppendToInstaSlicePrefix(suffix string) string

func GenerateFakeCapacity added in v0.0.3

func GenerateFakeCapacity(nodeName string) *instav1.NodeAccelerator

GenerateFakeCapacity returns a fake NodeAccelerator CR for emulated mode.

func GenerateFakeCapacityA100PCIE40GB added in v0.0.3

func GenerateFakeCapacityA100PCIE40GB(nodeName string) *instav1.NodeAccelerator

GenerateFakeCapacityA100PCIE40GB returns capacity for an A100 PCIe 40GB GPU.

func GenerateFakeCapacityA100PCIE80GB added in v0.0.3

func GenerateFakeCapacityA100PCIE80GB(nodeName string) *instav1.NodeAccelerator

GenerateFakeCapacityA100PCIE80GB returns capacity for an A100 PCIe 80GB GPU.

func GenerateFakeCapacityA100SXM440GB added in v0.0.3

func GenerateFakeCapacityA100SXM440GB(nodeName string) *instav1.NodeAccelerator

GenerateFakeCapacityA100SXM440GB returns capacity for an A100 SXM4 40GB GPU.

func GenerateFakeCapacityA100SXM480GB added in v0.0.3

func GenerateFakeCapacityA100SXM480GB(nodeName string) *instav1.NodeAccelerator

GenerateFakeCapacityA100SXM480GB returns capacity for an A100 SXM4 80GB GPU.

func GenerateFakeCapacityA30PCIE24GB added in v0.0.3

func GenerateFakeCapacityA30PCIE24GB(nodeName string) *instav1.NodeAccelerator

GenerateFakeCapacityA30PCIE24GB returns capacity for an A30 24GB GPU.

func GenerateFakeCapacityH100GH20096GB added in v0.0.3

func GenerateFakeCapacityH100GH20096GB(nodeName string) *instav1.NodeAccelerator

GenerateFakeCapacityH100GH20096GB returns capacity for an H100 on GH200 96GB GPU.

func GenerateFakeCapacityH100PCIE80GB added in v0.0.3

func GenerateFakeCapacityH100PCIE80GB(nodeName string) *instav1.NodeAccelerator

GenerateFakeCapacityH100PCIE80GB returns capacity for an H100 PCIe 80GB GPU.

func GenerateFakeCapacityH100PCIE94GB added in v0.0.3

func GenerateFakeCapacityH100PCIE94GB(nodeName string) *instav1.NodeAccelerator

GenerateFakeCapacityH100PCIE94GB returns capacity for an H100 PCIe 94GB GPU.

func GenerateFakeCapacityH100SXM580GB added in v0.0.3

func GenerateFakeCapacityH100SXM580GB(nodeName string) *instav1.NodeAccelerator

GenerateFakeCapacityH100SXM580GB returns capacity for an H100 SXM5 80GB GPU.

func GenerateFakeCapacityH100SXM594GB added in v0.0.3

func GenerateFakeCapacityH100SXM594GB(nodeName string) *instav1.NodeAccelerator

GenerateFakeCapacityH100SXM594GB returns capacity for an H100 SXM5 94GB GPU.

func GenerateFakeCapacityH200SXM5141GB added in v0.0.3

func GenerateFakeCapacityH200SXM5141GB(nodeName string) *instav1.NodeAccelerator

GenerateFakeCapacityH200SXM5141GB returns capacity for an H200 SXM5 141GB GPU.

func GetNonEmptyLines

func GetNonEmptyLines(output string) []string

GetNonEmptyLines converts given command output string into individual objects according to line breakers, and ignores the empty elements in it.

func GetProjectDir

func GetProjectDir() (string, error)

GetProjectDir will return the directory where the project is

func InstallCertManager

func InstallCertManager() error

InstallCertManager installs the cert manager bundle.

func InstallPrometheusOperator

func InstallPrometheusOperator() error

InstallPrometheusOperator installs the prometheus Operator to be used to export the enabled metrics.

func LoadImageToKindClusterWithName

func LoadImageToKindClusterWithName(name string) error

LoadImageToKindCluster loads a local docker image to the kind cluster

func Run

func Run(cmd *exec.Cmd) ([]byte, error)

Run executes the provided command within this context

func UninstallCertManager

func UninstallCertManager() error

UninstallCertManager uninstalls the cert manager

func UninstallPrometheusOperator

func UninstallPrometheusOperator() error

UninstallPrometheusOperator uninstalls the prometheus

Types

This section is empty.

Jump to

Keyboard shortcuts

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