Commit 491d1003 authored by Brad Davidson's avatar Brad Davidson Committed by Brad Davidson

Use const for kube-system namespace

parent 5e4edcb5
......@@ -17,6 +17,7 @@ import (
"github.com/rancher/k3s/pkg/version"
"github.com/rancher/wrangler-api/pkg/generated/controllers/core"
"github.com/sirupsen/logrus"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
func (c *Cluster) newListener(ctx context.Context) (net.Listener, http.Handler, error) {
......@@ -84,5 +85,5 @@ func tlsStorage(ctx context.Context, dataDir string, runtime *config.ControlRunt
cache := memory.NewBacked(fileStorage)
return kubernetes.New(ctx, func() *core.Factory {
return runtime.Core
}, "kube-system", ""+version.Program+"-serving", cache)
}, metav1.NamespaceSystem, version.Program+"-serving", cache)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment