[Risk Mitigation] Create cleanup script for removing redundant ClusterRoleBinding which were previously labeled with managed-by: reconciler
#558
Labels
area/control-plane
Related to all activities around Kyma Control Plane
kind/feature
Categorizes issue or PR as related to a new feature.
Description
After migration from provisioner to KIM is completed, we have to remove redundant
ClusterRoleBindings
which were initially managed by reconciler (marked by themanaged-by: provisioner
label).This is the follow-up action of #556 to remove replaced
ClusterRoleBindings
.Before the deletion of a
ClusterRoleBinding
happens, following conditions have to be fulfilled:ClusterRoleBinding
exists which is managed by KIM:ClusterRoleBinding
exists which is managed by KIM, check inRuntimeCR
if the referencedUser
in CRB is still member of the administrator list.AC:
ClusterRoleBinding
with labelmanaged-by: provisioner
are removed from SKR if one of the conditions is fulfilled:ClusterRoleBinding
is provided by KIMRuntimeCR
)Reasons
Remove redundant
ClusterRoleBindings
from SKRs.Attachments
The text was updated successfully, but these errors were encountered: