Documentation
¶
Overview ¶
Package crdmanager handles embedding and applying CRDs at operator startup.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CRDManager ¶
type CRDManager struct {
// contains filtered or unexported fields
}
CRDManager embeds and applies CRDs at operator startup using server-side apply.
func NewCRDManager ¶
func NewCRDManager(cli client.Client) *CRDManager
NewCRDManager creates a new CRD manager.
func (*CRDManager) Apply ¶
func (m *CRDManager) Apply(ctx context.Context) error
Apply reads all embedded CRD YAMLs and applies them via server-side apply.
func (*CRDManager) EnsureCRDs ¶
func (m *CRDManager) EnsureCRDs(ctx context.Context) error
EnsureCRDs applies all embedded CRDs and waits for them to become Established.
func (*CRDManager) WaitEstablished ¶
func (m *CRDManager) WaitEstablished(ctx context.Context) error
WaitEstablished polls until all embedded CRDs have the Established condition.
Click to show internal directories.
Click to hide internal directories.