mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-28 22:29:32 +00:00
Adds a command-line flag '--disable-helm-controller' that will disable
the server's built-in helm controller. Problem: Testing installation and uninstallation of the Helm Controller on k3s is not possible if the Helm Controller is baked into the k3s server. Solution: The Helm Controller can optionally be disabled, which will allow users to manage its installation manually. Signed-off-by: Joe Kralicky <joe.kralicky@suse.com>
This commit is contained in:
@@ -186,14 +186,17 @@ func coreControllers(ctx context.Context, sc *Context, config *Config) error {
|
||||
servicelb.DefaultLBImage = config.ControlConfig.SystemDefaultRegistry + "/" + servicelb.DefaultLBImage
|
||||
}
|
||||
|
||||
helm.Register(ctx,
|
||||
sc.Apply,
|
||||
sc.Helm.Helm().V1().HelmChart(),
|
||||
sc.Helm.Helm().V1().HelmChartConfig(),
|
||||
sc.Batch.Batch().V1().Job(),
|
||||
sc.Auth.Rbac().V1().ClusterRoleBinding(),
|
||||
sc.Core.Core().V1().ServiceAccount(),
|
||||
sc.Core.Core().V1().ConfigMap())
|
||||
if !config.ControlConfig.DisableHelmController {
|
||||
helm.Register(ctx,
|
||||
sc.Apply,
|
||||
sc.Helm.Helm().V1().HelmChart(),
|
||||
sc.Helm.Helm().V1().HelmChartConfig(),
|
||||
sc.Batch.Batch().V1().Job(),
|
||||
sc.Auth.Rbac().V1().ClusterRoleBinding(),
|
||||
sc.Core.Core().V1().ServiceAccount(),
|
||||
sc.Core.Core().V1().ConfigMap())
|
||||
}
|
||||
|
||||
if err := servicelb.Register(ctx,
|
||||
sc.K8s,
|
||||
sc.Apply,
|
||||
|
||||
Reference in New Issue
Block a user