apiresource

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 30 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 apiextensionsclient.Interface,
	kcpClusterClient kcpclient.Interface,
	autoPublishNegotiatedAPIResource bool,
	negotiatedAPIResourceInformer apiresourceinformer.NegotiatedAPIResourceInformer,
	apiResourceImportInformer apiresourceinformer.APIResourceImportInformer,
	crdInformer apiextensionsinformers.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