k8s

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CreateAction             EventActionType = "create"
	UpdateAction             EventActionType = "update"
	DeleteAction             EventActionType = "delete"
	MaxNumRequeues           int             = 4
	MaxRawDataExamplesToSend                 = 5
)

Variables

This section is empty.

Functions

func GetGVRFromResource

func GetGVRFromResource(discoveryMapper *restmapper.DeferredDiscoveryRESTMapper, resource string) (schema.GroupVersionResource, error)

func NewKubeConfig added in v0.1.13

func NewKubeConfig() clientcmd.ClientConfig

Types

type Client

type Client struct {
	DiscoveryClient    *discovery.DiscoveryClient
	DynamicClient      dynamic.Interface
	DiscoveryMapper    *restmapper.DeferredDiscoveryRESTMapper
	ApiExtensionClient *apiextensions.ApiextensionsV1Client
}

func NewClient

func NewClient(config *rest.Config) (*Client, error)

type Controller

type Controller struct {
	Resource port.AggregatedResource
	// contains filtered or unexported fields
}

func NewController

func NewController(resource port.AggregatedResource, informer informers.GenericInformer, integrationConfig *port.IntegrationAppConfig, applicationConfig *config.ApplicationConfiguration) *Controller

func (*Controller) RunEventsSync added in v0.4.0

func (c *Controller) RunEventsSync(workers int, stopCh <-chan struct{})

func (*Controller) RunInitialSync added in v0.4.0

func (c *Controller) RunInitialSync() *SyncResult

func (*Controller) Shutdown

func (c *Controller) Shutdown()

func (*Controller) WaitForCacheSync added in v0.1.11

func (c *Controller) WaitForCacheSync(stopCh <-chan struct{}) error

type EventActionType added in v0.1.6

type EventActionType string

type EventItem

type EventItem struct {
	Key        string
	ActionType EventActionType
}

type SyncResult added in v0.4.0

type SyncResult struct {
	EntitiesSet               map[string]interface{}
	RawDataExamples           []interface{}
	ShouldDeleteStaleEntities bool
}

Jump to

Keyboard shortcuts

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