components

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetManagementState

func GetManagementState(obj client.Object, componentKey string) (string, error)

GetManagementState queries a DSC component's management state. componentKey is the lowercase key under spec.components (e.g. "kueue", "kserve"). Returns the state if found, "Removed" if not configured (semantically equivalent), or an error on query failure.

func HasManagementState

func HasManagementState(obj client.Object, componentKey string, states ...string) bool

HasManagementState checks whether a DSC component is configured with a matching management state. With states: returns true if the component's state matches any of the provided values. Without states: returns true always (component exists or defaults to Removed).

Types

This section is empty.

Jump to

Keyboard shortcuts

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