Update disables list when building with no_stage

The --disable/--no-deploy flags actually turn off some built-in
controllers, in addition to preventing manifests from getting loaded.
Make it clear which controllers can still be disabled even when the
packaged components are ommited by the no_stage build tag.

Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/2483/head
Brad Davidson 4 years ago committed by Brad Davidson
parent ea916030c2
commit 3b8ec74049

@ -0,0 +1,9 @@
// +build no_stage
package cmds
const (
// The coredns and servicelb controllers can still be disabled, even if their manifests
// are missing. Same with CloudController/ccm.
DisableItems = "coredns, servicelb"
)

@ -8,8 +8,6 @@ import (
)
const (
DisableItems = "coredns, servicelb, traefik, local-storage, metrics-server"
defaultSnapshotRentention = 5
defaultSnapshotIntervalHours = 12
)

@ -0,0 +1,10 @@
// +build !no_stage
package cmds
const (
// coredns and servicelb run controllers that are turned off when their manifests are disabled.
// The k3s CloudController also has a bundled manifest and can be disabled via the
// --disable-cloud-controller flag or --disable=ccm, but the latter method is not documented.
DisableItems = "coredns, servicelb, traefik, local-storage, metrics-server"
)
Loading…
Cancel
Save