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 ¶
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
Click to show internal directories.
Click to hide internal directories.