-
Notifications
You must be signed in to change notification settings - Fork 885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Namespaces should not be synced in all clusters #2512
Comments
Yes, just like @XiShanYongYe-Chang mentioned above. The Karmada's By the way, system-reserved namespaces won't be synced.
Is there any particular reason that this behavior is unacceptable in your case? |
Thanks @RainbowMango for your response. Yes there is a reason why this behavior is annoying to me. Here is my case, but I think that it can be quite common. |
@fredgate I got you! That makes sense to me. The default behavior shouldn't be annoying. I added an agenda to the next community meeting. If no objections we can do it in the next release(should be included in v1.4.0). But before that, I suggest you can configure the controllers to disable it explicitly. Just a reminder, we are speaking Chinese in this meeting, I guess you speaking English, so if you'd like to get involved, you are welcome to propose a meeting time to this issue, and we are going to start the English meeting soon(probably this Month).
Good to know that, and glad that Karmada helps. Do you mean you are using Karmada in production? |
It would be perfect.
It seems to me that if i disable the namespace controller in karmada manager, it has no effect other than not propagate namespaces in all clusters. So it can be a work around.
We use Flux to manage each of our production clusters with GitOps. |
Sure, please send a PR for it, we appreciate that.
I didn't understand, I think after you disable the namespace controller, you need to propagate the namespace by creating the |
I will test a change in the Karmada helm chart, and then I will submit a PR. I will add a value to choose controllers. Could you tell me what are the default controllers executed by the karmada manager. I will test to disable the namespace controller and then to add a |
You can get the whole controller list from: karmada/cmd/controller-manager/app/controllermanager.go Lines 173 to 186 in 62a4b43
These controllers (except hpa ) are enabled by default(--controllers=<empty> ).If people want to disable one of them, then he/she can set the flag like --controllers=-<controller-name> .If people want to disable more than one controllers, then he/she can set the flag like --controllers=-<one controller>,-<another controller> .
|
No worries, this controller is very simple, with no coupling features with other controllers. |
I just created a PR to configure the controllers with the Helm chart. But I wonder about the usefulness of the namepsace controller. Why unlike other resources, namespaces are synchronized automatically and not when referenced in a |
Thanks a lot, we are woking on the PR.
Good question. The |
Hi @fredgate karmada/pkg/apis/policy/v1alpha1/well_known_constants.go Lines 13 to 21 in 026781f
For example: apiVersion: v1
kind: Namespace
metadata:
name: horen
labels:
namespace.karmada.io/skip-auto-propagation: "true" |
@fredgate |
/close |
@RainbowMango: Closing this issue. In response to this:
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. |
What would you like to be added:
The cluster controller of karmada should not automatically create a new namespace in all the clusters. It should process like others resources.
Why is this needed:
Sometimes we want that some namspaces be created only in some clusters.
The namespaces should be created only if there is a
ClusterPropagationPolicy
referencing it, and the target clusters should be determined from it.The text was updated successfully, but these errors were encountered: