Allow k3s to customize apiServerPort on helm-controller

Signed-off-by: Daishan Peng <daishan@acorn.io>
This commit is contained in:
Daishan Peng
2023-06-26 12:02:06 -07:00
committed by Brad Davidson
parent 324f9ad4da
commit ce3443ddf6
3 changed files with 4 additions and 3 deletions

View File

@@ -233,6 +233,7 @@ func coreControllers(ctx context.Context, sc *Context, config *Config) error {
helmchart.Register(ctx,
metav1.NamespaceAll,
helmcommon.Name,
strconv.Itoa(config.ControlConfig.APIServerPort),
k8s,
apply,
util.BuildControllerEventRecorder(k8s, helmcommon.Name, metav1.NamespaceAll),