Documentation ¶
Index ¶
- Constants
- func CreateK8sCR(ctx context.Context, c client.Client, newObject client.Object, ...) (err error)
- func DoesK8SResourceExist(ctx context.Context, c client.Client, name, namespace string, ...) (resourceExists bool, err error)
- func ExtractDataFromConfigMap[T any](cm *corev1.ConfigMap, key string) (T, error)
- func GetConfigmap(ctx context.Context, c client.Client, name, namespace string) (*corev1.ConfigMap, error)
- func SetStatusCondition(existingConditions *[]metav1.Condition, ...)
- func UpdateK8sCRStatus(ctx context.Context, c client.Client, object client.Object) error
Constants ¶
View Source
const ( UPDATE = "Update" PATCH = "Patch" )
Resource operations
Variables ¶
This section is empty.
Functions ¶
func CreateK8sCR ¶
func CreateK8sCR(ctx context.Context, c client.Client, newObject client.Object, ownerObject client.Object, operation string) (err error)
CreateK8sCR creates/updates/patches an object.
func DoesK8SResourceExist ¶
func GetConfigmap ¶
func SetStatusCondition ¶
func SetStatusCondition(existingConditions *[]metav1.Condition, conditionType hwmgmtv1alpha1.ConditionType, conditionReason hwmgmtv1alpha1.ConditionReason, conditionStatus metav1.ConditionStatus, message string)
SetStatusCondition is a convenience wrapper for meta.SetStatusCondition that takes in the types defined here and converts them to strings
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.