controller

package
v0.0.0-...-24794f7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenewTokenJobWrapper

func RenewTokenJobWrapper(ctx context.Context, stopChan chan struct{}, cfg *config.Config, clientset k8s.KubernetesClient)

func RevokeTokenJobWrapper

func RevokeTokenJobWrapper(ctx context.Context, stopChan chan struct{}, cfg *config.Config, clientset k8s.KubernetesClient)

Types

type Controller

type Controller struct {
	Cfg       *config.Config
	Clientset *kubernetes.Clientset
	Lock      *resourcelock.LeaseLock
	PodName   string
	// contains filtered or unexported fields
}

func NewController

func NewController(cfg *config.Config, Clientset *kubernetes.Clientset) *Controller

func (*Controller) GetLock

func (c *Controller) GetLock(lockName string)

func (*Controller) RunInjector

func (c *Controller) RunInjector(ctx context.Context, errChan chan<- error, runSuccess chan<- bool)

func (*Controller) RunRenewer

func (c *Controller) RunRenewer(ctx context.Context, metricsSuccess chan<- bool)

func (*Controller) RunRevoker

func (c *Controller) RunRevoker(ctx context.Context, metricsSuccess chan<- bool)

Jump to

Keyboard shortcuts

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