Add ready conditon and cleanup finalizer and status patching (#186)

This change adds a ready condition. It also sets a standard for status
fields and documentation. It makes use of helper functions from FluxCD
to better manage patching of finalizers and status.

Signed-off-by: Philip Laine <philip.laine@gmail.com>
This commit is contained in:
Philip Laine
2026-04-21 15:42:11 +02:00
committed by GitHub
parent 1bcd58a7cd
commit af11e31b28
19 changed files with 250 additions and 181 deletions
@@ -11,15 +11,12 @@ import (
// GroupApplyConfiguration represents a declarative configuration of the Group type for use
// with apply.
//
// Group is the Schema for the groups API
// Group is the Schema for the groups API.
type GroupApplyConfiguration struct {
v1.TypeMetaApplyConfiguration `json:",inline"`
// metadata is a standard object metadata
v1.TypeMetaApplyConfiguration `json:",inline"`
*v1.ObjectMetaApplyConfiguration `json:"metadata,omitempty"`
// spec defines the desired state of Group
Spec *GroupSpecApplyConfiguration `json:"spec,omitempty"`
// status defines the observed state of Group
Status *GroupStatusApplyConfiguration `json:"status,omitempty"`
Spec *GroupSpecApplyConfiguration `json:"spec,omitempty"`
Status *GroupStatusApplyConfiguration `json:"status,omitempty"`
}
// Group constructs a declarative configuration of the Group type for use with