func (k *Konfiguration) SetHealthiness(ctx context.Context, cl client.Client, status metav1.ConditionStatus, statusMeta *StatusMeta) error {
	switch len(k.Spec.HealthChecks) {
	case 0:
		apimeta.RemoveStatusCondition(k.GetStatusConditions(), HealthyCondition)
	default:
		meta.SetResourceCondition(k, HealthyCondition, status, statusMeta.Reason, trimString(statusMeta.Message, MaxConditionMessageLength))
	}
	return k.patchStatus(ctx, cl, k.Status)
}
SetHealthiness sets the healthiness of this Konfiguration.
package v1beta1
import (
	"context"
	"github.com/fluxcd/pkg/apis/meta"
	apimeta "k8s.io/apimachinery/pkg/api/meta"
	metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
	"sigs.k8s.io/controller-runtime/pkg/client"
)
const MaxConditionMessageLength int = 20000
type StatusMeta struct {
	Revision, Reason, Message string
}
func NewStatusMeta(revision, reason, message string) *StatusMeta {
	return &StatusMeta{Revision: revision, Reason: reason, Message: message}
}
func (k *Konfiguration) GetStatusConditions() *[]metav1.Condition {
	return &k.Status.Conditions
}
func (k *Konfiguration) SetProgressing(ctx context.Context, cl client.Client) error {
	meta.SetResourceCondition(k, meta.ReadyCondition, metav1.ConditionUnknown, meta.ProgressingReason, "reconciliation in progress")
	return k.patchStatus(ctx, cl, k.Status)
}