kubernetesk8s.io/kubernetes/pkg/controlplane/controller/legacytokentracking Index | Files

package legacytokentracking

import "k8s.io/kubernetes/pkg/controlplane/controller/legacytokentracking"

Index

Constants

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

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.

Source Files

controller.go

Version
v1.27.7
Published
Oct 18, 2023
Platform
linux/amd64
Imports
19 packages
Last checked
23 seconds ago

Tools for package owners.