Documentation
¶
Index ¶
- Variables
- func GetBoolValueOrDefault(ptr *bool, defaultValue bool) bool
- func GetInt32ValueOrDefault(ptr *int32, defaultValue int32) int32
- func GetStringValueOrDefault(ptr *string, defaultValue string) string
- func SetK8sVersionGreaterOrEqual(config *rest.Config, targetMajor, targetMinor int)
- func UnmarshalAppSpecificConfig(appCompType string, rawProperties runtime.RawExtension) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
var (
IsV1Supported bool
)
Functions ¶
func GetBoolValueOrDefault ¶
GetBoolValueOrDefault returns the value of a bool pointer or a default value.
func GetInt32ValueOrDefault ¶
GetInt32ValueOrDefault returns the value of an int32 pointer or a default value.
func GetStringValueOrDefault ¶
GetStringValueOrDefault returns the value of a string pointer or a default value.
func SetK8sVersionGreaterOrEqual ¶
SetK8sVersionGreaterOrEqual 检测集群版本是否 ≥ 目标版本(如 "1.21")
func UnmarshalAppSpecificConfig ¶
func UnmarshalAppSpecificConfig(appCompType string, rawProperties runtime.RawExtension) (interface{}, error)
--- Configuration Unmarshalling Helper --- Unmarshals raw ApplicationComponent.Properties based on the component type string into the correct specific Go configuration struct pointer. Returns the unmarshalled struct pointer (as interface{}) or nil if no properties are provided. Returns error if unmarshalling fails for the given type or type is unknown.
Types ¶
This section is empty.