importer

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ManagedClusterConditionImported = "ManagedClusterImportSucceeded"
)

Variables

This section is empty.

Functions

func ApplyKlusterlet

func ApplyKlusterlet(
	ctx context.Context,
	client operatorclient.Interface,
	recorder events.Recorder,
	required *operatorv1.Klusterlet) (*operatorv1.Klusterlet, bool, error)

func NewImporter

func NewImporter(
	renders []KlusterletConfigRenderer,
	clusterClient clusterclientset.Interface,
	clusterInformer clusterinformerv1.ManagedClusterInformer,
	providers []cloudproviders.Interface,
	recorder events.Recorder) factory.Controller

NewImporter creates an auto import controller

Types

type Importer

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

type KlusterletConfigRenderer

type KlusterletConfigRenderer func(
	ctx context.Context, config *chart.KlusterletChartConfig) (*chart.KlusterletChartConfig, error)

KlusterletConfigRenderer renders the config for klusterlet chart.

func RenderBootstrapHubKubeConfig

func RenderBootstrapHubKubeConfig(
	kubeClient kubernetes.Interface, apiServerURL, bootstrapSA string) KlusterletConfigRenderer

func RenderImage

func RenderImage(image string) KlusterletConfigRenderer

func RenderImagePullSecret

func RenderImagePullSecret(kubeClient kubernetes.Interface, namespace string) KlusterletConfigRenderer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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