Skip to content

Commit f028e4c

Browse files
deads2kbertinatto
authored andcommitted
UPSTREAM: <carry>: kube-apiserver: add our immortal namespaces directly to admission plugin
OpenShift-Rebase-Source: dd3aeca
1 parent f00fd58 commit f028e4c

File tree

1 file changed

+10
-1
lines changed
  • staging/src/k8s.io/apiserver/pkg/admission/plugin/namespace/lifecycle

1 file changed

+10
-1
lines changed

staging/src/k8s.io/apiserver/pkg/admission/plugin/namespace/lifecycle/admission.go

+10-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,16 @@ const (
5454
// Register registers a plugin
5555
func Register(plugins *admission.Plugins) {
5656
plugins.Register(PluginName, func(config io.Reader) (admission.Interface, error) {
57-
return NewLifecycle(sets.NewString(metav1.NamespaceDefault, metav1.NamespaceSystem, metav1.NamespacePublic))
57+
return NewLifecycle(sets.NewString(metav1.NamespaceDefault, metav1.NamespaceSystem, metav1.NamespacePublic,
58+
// user specified configuration that cannot be rebuilt
59+
"openshift-config",
60+
// cluster generated configuration that cannot be rebuilt (etcd encryption keys)
61+
"openshift-config-managed",
62+
// the CVO which is the root we use to rebuild all the rest
63+
"openshift-cluster-version",
64+
// contains a namespaced list of all nodes in the cluster (yeah, weird. they do it for multi-tenant management I think?)
65+
"openshift-machine-api",
66+
))
5867
})
5968
}
6069

0 commit comments

Comments
 (0)