Documentation
¶
Index ¶
- Constants
- func ApplyKlusterlet(ctx context.Context, client operatorclient.Interface, recorder events.Recorder, ...) (*operatorv1.Klusterlet, bool, error)
- func NewImporter(renders []KlusterletConfigRenderer, clusterClient clusterclientset.Interface, ...) factory.Controller
- type Importer
- type KlusterletConfigRenderer
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 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
Click to show internal directories.
Click to hide internal directories.