-
Notifications
You must be signed in to change notification settings - Fork 821
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
GracefulEvictionTasks of ClusterRole never execute #4951
Comments
Not only CLusterRole, but also ConfigMap, you can also test ConfigMap by following yaml: resource.yamlapiVersion: v1
kind: ConfigMap
metadata:
name: demo-test
labels:
app: test
data:
test-key: "test-value"
---
apiVersion: policy.karmada.io/v1alpha1
kind: ClusterPropagationPolicy
metadata:
name: default-pp
spec:
placement:
clusterTolerations:
- effect: NoSchedule
key: workload-rebalancer-test
operator: Exists
tolerationSeconds: 0
clusterAffinity:
clusterNames:
- member1
- member2
replicaScheduling:
replicaDivisionPreference: Weighted
replicaSchedulingType: Divided
weightPreference:
dynamicWeight: AvailableReplicas
resourceSelectors:
- apiVersion: v1
kind: ConfigMap
name: demo-test
namespace: default |
/assign |
First of all, let's come to the conclusion that this is not a bug. There are two reasons for the problem described in the issue. First, We don't have a default InterpretHealth resource interpretation behavior for ClusterRole/ConfigMap resources, so the cluster in the |
Can we close it now? |
yes, thanks! |
What happened:
I propagated a
ClusterRole
to member1 and member2 cluster, the bound Policy specified theclusterTolerations
asThen I modified member1 cluster object and add a
NoSchedule
taint to member1 cluster object asThe the binding of it generated a
gracefulEvictionTasks
.However, the
gracefulEvictionTasks
will never be cleared.What you expected to happen:
The
gracefulEvictionTasks
of its binding should be cleared whenfailover-eviction-timeout
timeup.Notes: binding of a
Deployment
would works normal, but binding ofClusterRole
/ConfigMap
not.How to reproduce it (as minimally and precisely as possible):
1)modify controller-manager launch params
failover-eviction-timeout
.2)write following
ClusterRole
yaml to local fileresource.yaml
.resource.yaml
3)run following commands by steps.
4)check its ClusterResourecBinding and found
gracefulEvictionTasks
will never be removed.Anything else we need to know?:
Environment:
kubectl-karmada version
orkarmadactl version
): latestThe text was updated successfully, but these errors were encountered: