garbage_collection

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OnDeleteServiceAccount

func OnDeleteServiceAccount(client kubernetes.Interface, serviceAccount *v1.ServiceAccount)

delete ClusterRoles and ClusterRoleBindings related to a ServiceAccount. We cannot do it setting an OwnerReference on them and let the Kubernetes garbage collector to do that, due to the fact they (cluster scoped resources) need to be deleted after the deletion of a ServiceAccount (namespaced resource). See https://kubernetes.io/docs/concepts/workloads/controllers/garbage-collection/#owners-and-dependents to have more details on how OwnerReferences are handled by Kubernetes >= 1.20

Types

This section is empty.

Jump to

Keyboard shortcuts

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