Skip to content

Commit

Permalink
Merge pull request karmada-io#19 from XiShanYongYe-Chang/update-toler…
Browse files Browse the repository at this point in the history
…ate-forever-with-serviceexport-crd

Update tolerate forever with serviceexport crd
  • Loading branch information
karmada-bot authored Aug 6, 2024
2 parents 38032a6 + 38fba26 commit d519399
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion pkg/controllers/crdinstallation/crd_installation_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
clusterv1alpha1 "github.com/karmada-io/karmada/pkg/apis/cluster/v1alpha1"
policyv1alpha1 "github.com/karmada-io/karmada/pkg/apis/policy/v1alpha1"
"github.com/karmada-io/karmada/pkg/sharedcli/ratelimiterflag"
corev1 "k8s.io/api/core/v1"
"k8s.io/apimachinery/pkg/api/equality"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -144,7 +145,20 @@ func clusterPropagationPolicy(clusters []string) *policyv1alpha1.ClusterPropagat
Placement: policyv1alpha1.Placement{
ClusterAffinity: &policyv1alpha1.ClusterAffinity{
ClusterNames: clusters,
}}}}
},
ClusterTolerations: []corev1.Toleration{
{
Key: clusterv1alpha1.TaintClusterNotReady,
Operator: corev1.TolerationOpExists,
Effect: corev1.TaintEffectNoExecute,
},
{
Key: clusterv1alpha1.TaintClusterUnreachable,
Operator: corev1.TolerationOpExists,
Effect: corev1.TaintEffectNoExecute,
},
},
}}}
}

// SetupWithManager creates a controller and register to controller manager.
Expand Down

0 comments on commit d519399

Please sign in to comment.