crdmanager

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2026 License: BSD-3-Clause Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL