-
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
Introduce resource conflict resolution strategy to PropagationPolicy #3444
Comments
I think it's useful to provide some update strategies to PropagationPolicy which could reduce user focus on internal objects. |
I might need to ask a few questions to understand the use cases.
I guess the
Do you mean the workaround without the requesting feature? |
Yes, the B/G migration means migrating all existing workload from Blue cluster to Green cluster. In our case, the blue clusters are built using some customized tools, while green clusters are EKS ones. This migration will help us get rid of the old infra and move to AWS managed k8s cluster.
That is because our migration strategy. Some of the critical services will be dump to Green cluster before the migration and they will be the dependencies that propagates by other application.
well..i was trying to say after the feature in place, it will work with other pp strategies to bring more flexibility. |
Thanks. It makes sense to me.
I guess we might need to extend the PropagationPolicy(and ResourceBind as well) by adding a new field to specify the behavior. Am I right? Do you have any ideas on this API change? |
Closed in favor of #3780 🙇♀️ |
What would you like to be added:
/kind api-change
/kind feature
Similar to
karmadactl promote
function, make PropagationPolicy to be able to propagate resources to member clusters where the resources exist, by annotatingwork.karmada.io/conflict-resolution=overwrite
Why is this needed:
To provide the ability to overwrite resources that already exist in the member cluster instead of failure when creating PropagatePolicy.
Use case 1:
When doing Blue/Green migration, the resources that wait to be migrated may already exist in the green cluster. Using overwrite strategy to avoid potential failures and make sure the resources get updated to be consistent with resources in original blue cluster.
Use case 2:
When failover, after promoting resources from legacy clusters, Karmada will be able to propagate resources to backup clusters and overwrite resources. This will make Karmada as single source of truth, but we can get it work with
clusterAffinity
andclusterTolerations
to decide which resources can live as they are or get overwritten in which member clusters.The text was updated successfully, but these errors were encountered: