runtime

package
v1.85.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// NodeTypeAffinityKey is the label key for the custom node type
	NodeTypeAffinityKey = "radix-nodetype"
	// NodeTypeTolerationKey is the taint key for the custom node type
	NodeTypeTolerationKey = "radix-nodetype"
)

Variables

This section is empty.

Functions

func GetArchitectureFromRuntime

func GetArchitectureFromRuntime(runtime *radixv1.Runtime) (string, bool)

GetArchitectureFromRuntime returns architecture from Runtime. If Runtime is nil or Runtime.Architecture is empty then defaults.DefaultNodeSelectorArchitecture is returned with false flag

func GetArchitectureFromRuntimeOrDefault

func GetArchitectureFromRuntimeOrDefault(runtime *radixv1.Runtime) string

GetArchitectureFromRuntimeOrDefault returns architecture from Runtime.

Types

type NodeType

type NodeType struct {
	// Architecture is the architecture of the node type
	Architecture radixv1.RuntimeArchitecture `json:"architecture,omitempty"`
	// Deprecated is the deprecation information of the node type
	Deprecated *NodeTypeDeprecation `json:"deprecated,omitempty"`
}

NodeType holds information about a node type attributes

type NodeTypeDeprecation

type NodeTypeDeprecation struct {
	// Message is the deprecation message
	Message string `json:"message,omitempty"`
	// ReplacedBy is the node type that replaces this node type
	ReplacedBy string `json:"replacedBy,omitempty"`
}

NodeTypeDeprecation holds information about deprecation of a node type

Jump to

Keyboard shortcuts

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