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.
Click to show internal directories.
Click to hide internal directories.