legacytokentracking

package
v1.26.6 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 19 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ConfigMapName    = "kube-apiserver-legacy-service-account-token-tracking"
	ConfigMapDataKey = "since"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller maintains a timestamp value configmap `kube-apiserver-legacy-service-account-token-tracking` in `kube-system` to indicates if the tracking for legacy tokens is enabled in the cluster. For HA clusters, the configmap will be eventually created after all controller instances have enabled the feature. When disabling this feature, existing configmap will be deleted.

func NewController

func NewController(cs kubernetes.Interface) *Controller

NewController returns a Controller struct.

func (*Controller) Run

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

Run starts the controller sync loop.

Jump to

Keyboard shortcuts

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