-
Notifications
You must be signed in to change notification settings - Fork 919
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
can let Karmada only auto generate Resource Binding but not work? #3375
Comments
If work is not created, resources will not be synchronized in the member cluster. Can you share your use case? |
@XiShanYongYe-Chang Thanks for you help! Here is our user case: Currently we consider use webhook to listen update events with resource template and update op first then allow the update by karmada scheduling continue. Hope you can give us a better proposal. Thanks a lot! |
Or is there any way to force update overriders in op before resourceBinding update works. |
Sorry, I don't understand your use case. Do you need to modify op every time you modify a resource template? |
This is part of our demo op: apiVersion: policy.karmada.io/v1alpha1
kind: OverridePolicy
spec:
overrideRules:
- targetCluster:
clusterNames:
- zone-x
overriders:
plaintext:
- path: /spec/strategy/canary/steps
operator: add
value:
- properties:
delay: "-1"
pull: "false"
type: Fort
- properties:
delay: "-1"
pull: "true"
type: Fort
- properties:
delay: "-1"
maxUnavailable: "0"
replicas: 50%
timeout: "5"
type: Batch
- properties:
delay: "-1"
maxUnavailable: "0"
replicas: 100%
timeout: "5"
type: Batch
- targetCluster:
clusterNames:
- zone-z
overriders:
plaintext:
- path: /spec/strategy/canary/steps
operator: add
value:
- properties:
delay: "-1"
pull: ""
type: Fort
- properties:
delay: "-1"
pull: ""
type: Fort
- properties:
delay: "-1"
maxUnavailable: "0"
replicas: 50%
timeout: "5"
type: Batch
- properties:
delay: "-1"
maxUnavailable: "0"
replicas: 100%
timeout: "5"
type: Batch We need to specify Is it not suitable to put |
Maybe you can use this field to do that: karmada/pkg/apis/policy/v1alpha1/propagation_types.go Lines 94 to 104 in 7f9dd0f
|
Maybe we can talk in slack or wechat. |
Agreed. Where to join karmada's wechat group? |
Refer to the bottom of this link: https://mp.weixin.qq.com/s?__biz=MzIzNzU5NTYzMA==&mid=2247497323&idx=1&sn=4dd7eb1966c7923a3317d036a385fd52#rd |
Ok. I've requested.Thx! |
What's the behavior if updating op and resources at the same time?Will it still ensure the new-updated policies be adopted first? |
For apiserver, there is no real |
Sry for my expression. |
@XiShanYongYe-Chang I've read the source code related to |
I've requested and hope to help to approve soon. Thanks a lot! |
|
Just add me: 15251838160 |
After deeply communicating with @XiShanYongYe-Chang,we found that By the way, I suggest to change |
The original purpose of |
Is there a config can support this:
Let Karmada auto generate Resource Binding but not create work.
Like Part of
--skipped-propagating-apis
Environment:
The text was updated successfully, but these errors were encountered: