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 (
// SetupKeyApplyConfiguration represents a declarative configuration of the SetupKey type for use
// with apply.
//
// SetupKey is the Schema for the setupkeys API
// SetupKey is the Schema for the setupkeys API.
type SetupKeyApplyConfiguration 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 SetupKey
Spec *SetupKeySpecApplyConfiguration `json:"spec,omitempty"`
// status defines the observed state of SetupKey
Status *SetupKeyStatusApplyConfiguration `json:"status,omitempty"`
Spec *SetupKeySpecApplyConfiguration `json:"spec,omitempty"`
Status *SetupKeyStatusApplyConfiguration `json:"status,omitempty"`
}
// SetupKey constructs a declarative configuration of the SetupKey type for use with