apiresource

package
v0.5.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterNameAndGVRIndexKey

func GetClusterNameAndGVRIndexKey(clusterName logicalcluster.Name, gvr metav1.GroupVersionResource) string

Types

type Controller

type Controller struct {
	AutoPublishNegotiatedAPIResource bool
	// contains filtered or unexported fields
}

func NewController

func NewController(
	crdClusterClient *apiextensionsclientset.Cluster,
	kcpClusterClient *kcpclient.Cluster,
	autoPublishNegotiatedAPIResource bool,
	negotiatedAPIResourceInformer apiresourceinformer.NegotiatedAPIResourceInformer,
	apiResourceImportInformer apiresourceinformer.APIResourceImportInformer,
	crdInformer crdinfomer.CustomResourceDefinitionInformer,
) (*Controller, error)

func (*Controller) Start

func (c *Controller) Start(ctx context.Context, numThreads int)

type Options

type Options struct {
	AutoPublishAPIs bool
	NumThreads      int
}

Options are the options for the cluster controller

func BindOptions

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

BindOptions binds the apiresource controller options to the flag set.

func DefaultOptions

func DefaultOptions() *Options

DefaultOptions are the default options for the apiresource controller.

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