Documentation ¶
Index ¶
- func CreateTwoWayMergePatch[T runtime.Object](original, modified T) ([]byte, error)
- func GetAgentAuthTokenConfig(token string) ([]byte, error)
- func GetAgentAuthTokenFromAgentConfigSecret(secret *corev1.Secret) (string, error)
- func GetAgentAuthTokenFromSecret(secret *corev1.Secret) (string, error)
- func GetMapValues[M ~map[K]V, K comparable, V any](m M) []V
- func IsStatusConditionPresentAndEqual(conditions []metav1.Condition, conditionType string, ...) bool
- func IsStatusConditionPresentAndFalse(conditions []metav1.Condition, conditionType string, generation int64) bool
- func IsStatusConditionPresentAndTrue(conditions []metav1.Condition, conditionType string, generation int64) bool
- func IsStatusNodeConfigConditionPresentAndEqual(conditions []scyllav1alpha1.NodeConfigCondition, ...) bool
- func IsStatusNodeConfigConditionPresentAndFalse(conditions []scyllav1alpha1.NodeConfigCondition, ...) bool
- func IsStatusNodeConfigConditionPresentAndTrue(conditions []scyllav1alpha1.NodeConfigCondition, ...) bool
- func MergeMaps[Key comparable, Value any](maps ...map[Key]Value) map[Key]Value
- func Must[T any](r T, err error) T
- func NormalizeIPs(ips []net.IP) []net.IP
- func ParseIP(s string) (net.IP, error)
- func ParseIPs(ipStrings []string) ([]net.IP, error)
- func ParseTokenFromConfig(data []byte) (string, error)
- func TouchFile(filePath string) error
- func UncachedListFunc(f func(options metav1.ListOptions) (runtime.Object, error)) func(options metav1.ListOptions) (runtime.Object, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTwoWayMergePatch ¶ added in v1.8.0
func GetAgentAuthTokenConfig ¶
func GetMapValues ¶ added in v1.11.0
func GetMapValues[M ~map[K]V, K comparable, V any](m M) []V
func IsStatusConditionPresentAndEqual ¶ added in v1.8.0
func IsStatusConditionPresentAndFalse ¶ added in v1.8.0
func IsStatusConditionPresentAndTrue ¶ added in v1.8.0
func IsStatusNodeConfigConditionPresentAndEqual ¶ added in v1.9.0
func IsStatusNodeConfigConditionPresentAndEqual(conditions []scyllav1alpha1.NodeConfigCondition, conditionType scyllav1alpha1.NodeConfigConditionType, status corev1.ConditionStatus, generation int64) bool
func IsStatusNodeConfigConditionPresentAndFalse ¶ added in v1.9.0
func IsStatusNodeConfigConditionPresentAndFalse(conditions []scyllav1alpha1.NodeConfigCondition, conditionType scyllav1alpha1.NodeConfigConditionType, generation int64) bool
func IsStatusNodeConfigConditionPresentAndTrue ¶ added in v1.9.0
func IsStatusNodeConfigConditionPresentAndTrue(conditions []scyllav1alpha1.NodeConfigCondition, conditionType scyllav1alpha1.NodeConfigConditionType, generation int64) bool
func MergeMaps ¶ added in v1.8.0
func MergeMaps[Key comparable, Value any](maps ...map[Key]Value) map[Key]Value
MergeMaps merges several maps into a new map. If there are conflicting keys, the last one wins and overwrites the value.
func ParseTokenFromConfig ¶ added in v1.10.0
func UncachedListFunc ¶ added in v1.8.0
func UncachedListFunc(f func(options metav1.ListOptions) (runtime.Object, error)) func(options metav1.ListOptions) (runtime.Object, error)
UncachedListFunc wraps a List function and makes sure initial lists avoid watch cache on the apiserver. This is important for caller that need top reason about "happened after" or similar cases.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.