Affected by GO-2022-0617
and 13 other vulnerabilities
GO-2022-0617 : WITHDRAWN: Potential proxy IP restriction bypass in Kubernetes in k8s.io/kubernetes
GO-2022-0983 : kubectl ANSI escape characters not filtered in k8s.io/kubernetes
GO-2023-1628 : Kubernetes vulnerable to path traversal in k8s.io/kubernetes
GO-2023-1629 : Kubernetes vulnerable to validation bypass in k8s.io/kubernetes
GO-2023-1864 : Kubelet vulnerable to bypass of seccomp profile enforcement in k8s.io/kubernetes
GO-2023-1891 : kube-apiserver vulnerable to policy bypass in k8s.io/kubernetes
GO-2023-1892 : Kubernetes mountable secrets policy bypass in k8s.io/kubernetes
GO-2023-2341 : Kubernetes Improper Input Validation vulnerability in k8s.io/kubernetes
GO-2024-2994 : Kubernetes sets incorrect permissions on Windows containers logs in k8s.io/kubernetes
GO-2024-3277 : Kubernetes Nil pointer dereference in KCM after v1 HPA patch request in k8s.io/kubernetes
GO-2025-3465 : Node Denial of Service via kubelet Checkpoint API in k8s.io/kubernetes
GO-2025-3521 : Kubernetes GitRepo Volume Inadvertent Local Repository Access in k8s.io/kubernetes
GO-2025-3522 : Kubernetes allows Command Injection affecting Windows nodes via nodes/*/logs/query API in k8s.io/kubernetes
GO-2025-3547 : Kubernetes kube-apiserver Vulnerable to Race Condition in k8s.io/kubernetes
Discover Packages
k8s.io/kubernetes
pkg
controller
ttlafterfinished
package
Version:
v1.22.14-rc.0
Opens a new window with list of versions in this module.
Published: Aug 17, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 23
Opens a new window with list of imports.
Imported by: 18
Opens a new window with list of known importers.
Documentation Source Files Directories Index Constants Variables Functions Types type Controller New(jobInformer, client) (tc) Run(workers, stopCh)
Documentation
¶
type Controller struct {
}
Controller watches for changes of Jobs API objects. Triggered by Job creation
and updates, it enqueues Jobs that have non-nil `.spec.ttlSecondsAfterFinished`
to the `queue`. The Controller has workers who consume `queue`, check whether
the Job TTL has expired or not; if the Job TTL hasn't expired, it will add the
Job to the queue after the TTL is expected to expire; if the TTL has expired, the
worker will send requests to the API server to delete the Jobs accordingly.
This is implemented outside of Job controller for separation of concerns, and
because it will be extended to handle other finishable resource types.
func New (jobInformer batchinformers.JobInformer, client clientset.Interface) *Controller
New creates an instance of Controller
func (tc *Controller) Run(workers int , stopCh <-chan struct {})
Run starts the workers to clean up Jobs.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.