volcano icon indicating copy to clipboard operation
volcano copied to clipboard

Add controller switch params.

Open Monokaix opened this issue 1 year ago • 6 comments

What would you like to be added:

Add a switch params in vc-controller to determine which controller is enabled and which is disabled.

Why is this needed:

some times we do not need start all controllers like jobflow and jobtemplate, so we can disable them to reduce unnecessary memory and cpu consuming.

Monokaix avatar May 24 '24 04:05 Monokaix

We can refer to: https://github.com/kubernetes/kubernetes/blob/8361522b40cc8b569efdd6ee2456fa514071cad1/staging/src/k8s.io/controller-manager/app/helper.go#L60

Monokaix avatar May 24 '24 04:05 Monokaix

/good-first-issue

Monokaix avatar May 24 '24 04:05 Monokaix

@Monokaix: This request has been marked as suitable for new contributors.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed by commenting with the /remove-good-first-issue command.

In response to this:

/good-first-issue

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

volcano-sh-bot avatar May 24 '24 04:05 volcano-sh-bot

/assign

googs1025 avatar May 24 '24 04:05 googs1025

hey @Monokaix I would also like to ask if this option should be put into the flags?

*: Start all controllers by default. +job,queue: Only start the job and queue controllers. -job,queue: Do not start the job and queue controllers.

flag.StringVar(&controllerGates, "controller-gates", "*", "Specify controller gates. Use '*' for all controllers, '+controller1,controller2' to start specific controllers, and '-controller1,controller2' to stop specific controllers.")

googs1025 avatar May 24 '24 04:05 googs1025

hey @Monokaix I would also like to ask if this option should be put into the flags?

*: Start all controllers by default. +job,queue: Only start the job and queue controllers. -job,queue: Do not start the job and queue controllers.

flag.StringVar(&controllerGates, "controller-gates", "*", "Specify controller gates. Use '*' for all controllers, '+controller1,controller2' to start specific controllers, and '-controller1,controller2' to stop specific controllers.")

It's ok : )

Monokaix avatar May 24 '24 06:05 Monokaix