consider default a system namespace to be managed by the namespace controller

Change-Id: I08d68c18234404c1258aa003211d82e2e72dadb1
This commit is contained in:
Antonio Ojea
2023-03-01 10:23:08 +00:00
parent eecfaf658e
commit 6e78e3279a
3 changed files with 15 additions and 4 deletions

View File

@@ -47,7 +47,7 @@ type Controller struct {
// NewController creates a new Controller to ensure system namespaces exist.
func NewController(clientset kubernetes.Interface, namespaceInformer coreinformers.NamespaceInformer) *Controller {
systemNamespaces := []string{metav1.NamespaceSystem, metav1.NamespacePublic, v1.NamespaceNodeLease}
systemNamespaces := []string{metav1.NamespaceSystem, metav1.NamespacePublic, v1.NamespaceNodeLease, metav1.NamespaceDefault}
interval := 1 * time.Minute
return &Controller{