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(v1.24):source=fcb3456b7fb
  • Loading branch information
deads2k authored and soltysh committed Aug 18, 2022
1 parent bc1aeec commit d124623
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 d124623

Please sign in to comment.