apiresource

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: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterNameAndGVRIndexKey

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

Types

type Config

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

func (*Config) New

func (c *Config) New() (*Controller, error)

type Controller

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

func NewController

func NewController(
	apiExtensionsClient apiextensionsclient.Interface,
	kcpClient kcpclient.Interface,
	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) 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