crds

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CRDsFromFileSystem

func CRDsFromFileSystem(fsys fs.FS, path string) ([]*apiextv1.CustomResourceDefinition, error)

CRDsFromFileSystem reads CRDs from the specified filesystem path.

Types

type CRDLabelToClusterMappings

type CRDLabelToClusterMappings map[string]*clusters.Cluster

type CRDList

type CRDList func() ([]*apiextv1.CustomResourceDefinition, error)

type CRDManager

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

func NewCRDManager

func NewCRDManager(mappingLabelName string, crdList CRDList) *CRDManager

func (*CRDManager) AddCRDLabelToClusterMapping

func (m *CRDManager) AddCRDLabelToClusterMapping(labelValue string, cluster *clusters.Cluster)

func (*CRDManager) CreateOrUpdateCRDs

func (m *CRDManager) CreateOrUpdateCRDs(ctx context.Context, log *logging.Logger) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳