-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]>
- Loading branch information
Showing
3 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
) |