aimruntimeconfig

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRuntimeConfigName = "default"
)

Variables

This section is empty.

Functions

func FetchMergedRuntimeConfig

func FetchMergedRuntimeConfig(ctx context.Context, c client.Client, name, namespace string) controllerutils.FetchResult[*aimv1alpha1.AIMRuntimeConfigCommon]

FetchMergedRuntimeConfig fetches and merges namespace and cluster-scoped runtime configs. Returns a FetchResult containing the merged config.

Behavior:

  • If both namespace and cluster configs exist, they are merged (namespace takes precedence)
  • If only one exists, it is returned
  • If neither exists and name is "default", returns nil config with no error (OK)
  • If neither exists and name is not "default", returns NotFound error

Types

This section is empty.

Jump to

Keyboard shortcuts

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