Skip to content

Commit

Permalink
UPSTREAM: <carry>: kube-apiserver: add our immortal namespaces direct…
Browse files Browse the repository at this point in the history
…ly to admission plugin

OpenShift-Rebase-Source: dd3aeca
  • Loading branch information
deads2k authored and bertinatto committed Mar 6, 2024
1 parent b7c126e commit 8aef509
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,16 @@ const (
// Register registers a plugin
func Register(plugins *admission.Plugins) {
plugins.Register(PluginName, func(config io.Reader) (admission.Interface, error) {
return NewLifecycle(sets.NewString(metav1.NamespaceDefault, metav1.NamespaceSystem, metav1.NamespacePublic))
return NewLifecycle(sets.NewString(metav1.NamespaceDefault, metav1.NamespaceSystem, metav1.NamespacePublic,
// user specified configuration that cannot be rebuilt
"openshift-config",
// cluster generated configuration that cannot be rebuilt (etcd encryption keys)
"openshift-config-managed",
// the CVO which is the root we use to rebuild all the rest
"openshift-cluster-version",
// contains a namespaced list of all nodes in the cluster (yeah, weird. they do it for multi-tenant management I think?)
"openshift-machine-api",
))
})
}

Expand Down

0 comments on commit 8aef509

Please sign in to comment.