apiimporter

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterAsOwnerReference

func ClusterAsOwnerReference(obj *clusterv1alpha1.Cluster, controller bool) metav1.OwnerReference

func NewController

func NewController(
	kcpClient kcpclient.Interface,
	clusterInformer clusterinformer.ClusterInformer,
	apiResourceImportInformer apiresourceinformer.APIResourceImportInformer,
	resourcesToSync []string,
) (*clusterctl.ClusterReconciler, error)

Types

type APIImporter

type APIImporter struct {
	SyncedGVRs map[string]metav1.GroupVersionResource
	// contains filtered or unexported fields
}

func (*APIImporter) ImportAPIs

func (i *APIImporter) ImportAPIs()

func (*APIImporter) Stop

func (i *APIImporter) Stop()

type Config

type Config struct {
	*Options
	// contains filtered or unexported fields
}

func (*Config) New

type Options

type Options struct {
	ResourcesToSync []string
}

func BindOptions

func BindOptions(o *Options, fs *pflag.FlagSet) *Options

func DefaultOptions

func DefaultOptions() *Options

func (*Options) Complete

func (o *Options) Complete(kubeconfig clientcmdapi.Config, kcpSharedInformerFactory kcpexternalversions.SharedInformerFactory, crdSharedInformerFactory crdexternalversions.SharedInformerFactory) *Config

func (*Options) Validate

func (o *Options) Validate() error

Jump to

Keyboard shortcuts

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