psc

package
v1.29.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (

	// SvcAttachmentGCError is the service attachment GC error event reason
	SvcAttachmentGCError = "ServiceAttachmentGCError"
	// ServiceAttachmentFinalizer used by the psc controller to ensure Service Attachment CRs
	// are deleted after the corresponding Service Attachments are deleted
	ServiceAttachmentFinalizerKey = "networking.gke.io/service-attachment-finalizer"

	// ServiceAttachmentGCPeriod is the interval at which Service Attachment GC will run
	ServiceAttachmentGCPeriod = 2 * time.Minute
)

Variables

View Source
var (
	ServiceNotFoundError = errors.New("service not in store")
	MismatchedILBIPError = errors.New("Mismatched ILB IP")
)

Functions

func SvcAttachmentKeyFunc

func SvcAttachmentKeyFunc(namespace, name string) string

SvcAttachmentKeyFunc provides the service attachment key used by the svcAttachmentLister

Types

type Controller

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

Controller is a private service connect (psc) controller It watches ServiceAttachment resources and creates, deletes, and manages corresponding GCE Service Attachment resources

func NewController

func NewController(ctx *context.ControllerContext, stopCh <-chan struct{}, logger klog.Logger) *Controller

func (*Controller) Run

func (c *Controller) Run()

Run waits for the initial sync and will process keys in the queue and run GC until signaled

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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