crdinstaller

package
v0.12.3 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 22 Imported by: 4

Documentation

Index

Constants

View Source
const (
	LabelHeritage string = "heritage"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CRDsInstaller

type CRDsInstaller struct {
	// contains filtered or unexported fields
}

CRDsInstaller simultaneously installs CRDs from specified directory

func NewCRDsInstaller

func NewCRDsInstaller(client dynamic.Interface, crdFilesPaths []string, options ...InstallerOption) *CRDsInstaller

NewCRDsInstaller creates new installer for CRDs

func (*CRDsInstaller) DeleteCRDs

func (cp *CRDsInstaller) DeleteCRDs(ctx context.Context, crdsToDelete []string) ([]string, error)

func (*CRDsInstaller) GetAppliedGVKs

func (cp *CRDsInstaller) GetAppliedGVKs() []string

func (*CRDsInstaller) GetCRDFromCluster

func (cp *CRDsInstaller) GetCRDFromCluster(ctx context.Context, crdName string) (*apiextensionsv1.CustomResourceDefinition, error)

func (*CRDsInstaller) Run

func (cp *CRDsInstaller) Run(ctx context.Context) error

type InstallerOption

type InstallerOption func(*CRDsInstaller)

func WithExtraLabels

func WithExtraLabels(labels map[string]string) InstallerOption

func WithFileFilter

func WithFileFilter(fn func(path string) bool) InstallerOption

Directories

Path Synopsis
Package openapi holds the CRD validation schema type that the installer applies to the cluster.
Package openapi holds the CRD validation schema type that the installer applies to the cluster.

Jump to

Keyboard shortcuts

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