Commit Graph

490 Commits

Author SHA1 Message Date
phantooom b9929128b3 fix: when matchClusters is empty controller will crash
Signed-off-by: phantooom <xiaorui.zou@gmail.com>
2021-09-23 13:25:08 +08:00
karmada-bot d67637c7f9
Merge pull request #723 from Garrybest/pr_pod
add resource pod in cluster.status.resourceSummary
2021-09-22 11:35:25 +08:00
dddddai 30a8b34ac7 get member workload from cache
Signed-off-by: dddddai <dddwq@foxmail.com>
2021-09-20 21:49:49 +08:00
dddddai aeafb96d89 use cluster lister instead of map to implement scheduler cache
Signed-off-by: dddddai <dddwq@foxmail.com>
2021-09-18 16:51:24 +08:00
Garrybest a5774944b5 add scheduler estimator client
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-09-18 11:32:32 +08:00
karmada-bot c3cf3a3053
Merge pull request #732 from ESonata/update-aliases
update import-aliases
2021-09-16 12:18:17 +08:00
esto a6165e47f9 update import-aliases
Signed-off-by: esto <1291156784@qq.com>
2021-09-15 15:13:14 +08:00
changzhen 37ca30ad8f unify version command
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-09-14 22:08:11 +08:00
Garrybest 1ed38bffe9 add resource pod in cluster.status.resourceSummary
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-09-14 11:32:14 +08:00
karmada-bot 5dc26481cd
Merge pull request #718 from Garrybest/pr_ksetest
add test of karmada-scheduler-estimator
2021-09-13 15:05:14 +08:00
Garrybest 35b02bc497 add scheduler estimator test
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-09-12 13:45:00 +08:00
RainbowMango 239d94b37a Introduced version command to karmada-controller-manager
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-09-11 15:27:32 +08:00
karmada-bot fba0ba8f5a
Merge pull request #700 from Garrybest/pr_kre
Add karmada-scheduler-estimator component
2021-09-11 09:54:09 +08:00
Garrybest 5411290137 add karmada-scheduler-estimator
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-09-10 16:14:19 +08:00
changzhen aca03f146c fix bug: update binding object with replicas and replicaRequirements
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-09-09 17:01:27 +08:00
karmada-bot 4c2c7d5c94
Merge pull request #707 from mrlihanbo/rb-status-bugfix
cleanup status after work object gone
2021-09-08 16:54:05 +08:00
karmada-bot 08ddb58cfd
Merge pull request #699 from kerthcet/cleanup/refactor-getScheduleType
refactor func getScheduleType
2021-09-08 14:50:05 +08:00
changzhen 88c2446b50 support kubectl karmada plugin
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-09-08 11:15:57 +08:00
kerthcet b21bee487d refactor func getScheduleType
Signed-off-by: kerthcet <kerthcet@gmail.com>
2021-09-08 11:08:13 +08:00
lihanbo 3da0a0c117 fix bug of aggregating status to resourcebinding
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-09-07 21:00:07 +08:00
karmada-bot f380abf288
Merge pull request #657 from Garrybest/pr_estimator
add node claim into ReplicaRequirements
2021-09-07 09:13:03 +08:00
Garrybest 4f8215e071 add node claim into ReplicaRequirements
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-09-06 15:31:42 +08:00
karmada-bot fb6f3bfe43
Merge pull request #446 from mrlihanbo/reschedule
fix bug of choosing candidate clusters when failover schedule
2021-09-06 11:49:02 +08:00
changzhen e7841639e7 set default weightPreference when WeightPreference is not set
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-09-02 20:22:21 +08:00
karmada-bot e6efe45d89
Merge pull request #685 from ESonata/cleanup
Cleanup cyclomatic complexity with function getScheduleType
2021-09-02 10:52:57 +08:00
esto 0903703234 Cleanup cyclomatic complexity with function getScheduleType
Signed-off-by: esto <1291156784@qq.com>
2021-09-01 19:51:13 +08:00
karmada-bot b1e5f1e5de
Merge pull request #684 from mrlihanbo/bugfix
cleanup label from resource template after PP is removed
2021-09-01 15:11:57 +08:00
karmada-bot 3c3127ab2b
Merge pull request #682 from CKchen0726/fix_comment_mistake
fix comment mistake in pkg/controllers/cluster/cluster_controller.go
2021-09-01 10:53:56 +08:00
karmada-bot 2586dc1d8f
Merge pull request #623 from phantooom/divide-panic
fix panic: when the summary weight is zero
2021-09-01 10:31:56 +08:00
karmada-bot dbc87457f4
Merge pull request #638 from Garrybest/pr_proto
add replica estimator proto struct definition with generated files and scripts
2021-09-01 09:43:56 +08:00
CKchen0726 de4d4d6bf2 fix comment mistake in pkg/controllers/cluster/cluster_controller.go
Signed-off-by: CKchen0726 <chenchangkuan@huawei.com>
2021-09-01 09:12:31 +08:00
phantooom bf90394a0f fix: when ReplicaSchedulingPolicy all the staticWeightRule weight is 0, calculateReplicas func divide by 0
Signed-off-by: phantooom <xiaorui.zou@gmail.com>
2021-08-31 22:34:56 +08:00
Garrybest efa2f0d106 estimator proto struct definition
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-08-31 20:04:02 +08:00
lihanbo d572c5d80c fix bug of removing labels from resource bingding
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-08-31 19:31:08 +08:00
karmada-bot 9336af6316
Merge pull request #647 from XiShanYongYe-Chang/refactor-imageoverride
refactor imageoverride: use converted resouce to extract json patches
2021-08-31 17:38:55 +08:00
karmada-bot 2b615642ca
Merge pull request #579 from pigletfly/fix-rb-status
Retry conflict errors when aggregating binding status
2021-08-30 17:50:52 +08:00
pigletfly a2f78ab794 Fix update rb status
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-08-30 17:14:17 +08:00
changzhen 3abbacfe83 refactor imageoverride: use converted resouce to extract json patches
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-08-28 18:21:27 +08:00
karmada-bot 546324f381
Merge pull request #649 from XiShanYongYe-Chang/move-ensureWork
move helper.EnsureWork() to pkg/controllers/binding package
2021-08-28 14:51:48 +08:00
karmada-bot b906919d47
Merge pull request #658 from XiShanYongYe-Chang/flake-654
fix use controller-runtime client resulting cache delay in detector
2021-08-27 19:40:46 +08:00
karmada-bot 8ec3a67094
Merge pull request #656 from mrlihanbo/weight_validation
added validation rules to StaticClusterWeight
2021-08-26 16:04:45 +08:00
karmada-bot c42ca39041
Merge pull request #639 from RainbowMango/pr_nominate_reviewers
nominate owners
2021-08-26 09:11:44 +08:00
changzhen eacfb492b1 fix use controller-runtime client resulting cache delay
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-08-25 15:12:15 +08:00
lihanbo 223af35f8d added validation rules to StaticClusterWeight
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-08-25 12:03:49 +08:00
karmada-bot 2cfab7b24d
Merge pull request #630 from just1900/master
remove health data explicitly when a cluster is being deleted
2021-08-25 10:01:42 +08:00
karmada-bot 5081eedb0a
Merge pull request #601 from qianjun1993/delete-policy
keep ResourceBinding when removing PropagationPolicy
2021-08-25 09:16:41 +08:00
karmada-bot 497ab01cd9
Merge pull request #645 from Garrybest/pr_lease
stop the lease controller when cluster does not exist
2021-08-24 19:44:40 +08:00
karmada-bot 06818af310
Merge pull request #637 from Garrybest/pr_estimator
move ReplicaResourceRequirements and Replicas into ResourceBindingSpec
2021-08-24 15:40:46 +08:00
changzhen 7299d8c091 move helper.EnsureWork() to pkg/controllers/binding
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-08-24 15:34:27 +08:00
junqian bf7f4bf097 stop remove ClusterResourceBindings labeled with policy
Signed-off-by: junqian <junqian@tencent.com>
2021-08-24 15:08:39 +08:00
Garrybest 16c1723fb4 stop the lease controller when cluster does not exist
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-08-24 14:48:17 +08:00
karmada-bot ac86b9050c
Merge pull request #646 from XiShanYongYe-Chang/retain-pod
retain necessary fields in Pod object
2021-08-24 09:10:40 +08:00
karmada-bot cd6c309b2c
Merge pull request #626 from lfbear/pr_sa_secrets
Remove the automatic generation secrets in ServiceAccount
2021-08-23 20:35:38 +08:00
changzhen a4bc72c03c retain necessary fields in Pod object
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-08-23 20:26:29 +08:00
Garrybest e3f0b9b611 clean up AddPodRequest
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-08-22 11:25:37 +08:00
RainbowMango ef1e4c22fd nominate reviewers
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-08-21 16:17:58 +08:00
Garrybest 5af53ce908 move ReplicaResourceRequirements and Replicas into ResourceBindingSpec
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-08-21 10:43:33 +08:00
changzhen cb329fd99c Cleanup cyclomatic complexity with function JoinCluster
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-08-20 19:43:21 +08:00
just1900 9b0050c800 feat(cluster): remove health data explicitly when a cluster is being deleted
Signed-off-by: just1900 <legendj228@gmail.com>
2021-08-20 15:34:00 +08:00
betaincao c8e8a6269d add command and args override policy
Signed-off-by: betaincao <betaincao@gmail.com>
2021-08-19 17:00:29 +08:00
lfbear 27bda0c530 remove the automatic generation secrets in ServiceAccount
Signed-off-by: lfbear <lfbear@gmail.com>
2021-08-19 16:35:18 +08:00
RainbowMango f824427351 Move QPS and Burst to cluster status controller.
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-08-19 11:44:24 +08:00
lihanbo d5a595d766 reflect status of job/service/ingress to resource template
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-08-18 17:40:00 +08:00
karmada-bot 67ded1f9ed
Merge pull request #590 from Garrybest/informer-manager
informer-manager: stop the informer before deleting the cluster
2021-08-16 19:48:25 +08:00
Garrybest 1452fa57e3 modify usage of informer-manager
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-08-16 17:16:42 +08:00
Garrybest 34ca79166d modify informer-manager to fix #384
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-08-16 17:16:15 +08:00
RainbowMango fc5d191ba7 Fix misleading logs from cluster status controller
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-08-16 12:14:22 +08:00
lihanbo 8689c3d7e9 fix bug of choosing candidate clusters when failover schedule
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-08-14 17:49:05 +08:00
karmada-bot e8bc6afb1a
Merge pull request #595 from pigletfly/add-rb-status
Add applied result in aggregated status
2021-08-14 10:27:21 +08:00
karmada-bot ccf6e7404a
Merge pull request #600 from lfbear/pr_image_op4daemonset
Add image override support for DaemonSet
2021-08-14 08:31:21 +08:00
pigletfly 4df1ae6806 Add applied result in aggregated status
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-08-13 23:17:38 +08:00
karmada-bot f2ac7afd5d
Merge pull request #592 from mrlihanbo/bugfix-job
Support propagation and retain Job resource
2021-08-13 18:25:20 +08:00
lfbear 8b2bec26ea add imageoverride support for DaemonSet
Signed-off-by: lfbear <lfbear@gmail.com>
2021-08-13 14:42:39 +08:00
karmada-bot 8effddd3bb
Merge pull request #591 from RainbowMango/pr_fix_k8s_dependency
cleanup: use component-helpers instead of k/k
2021-08-13 09:32:19 +08:00
wawa0210 3d6637fc32
Delete the extra getClusterHealthStatus logic and use the wait.Poll framework directly
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
2021-08-12 11:41:40 +08:00
lihanbo 8e90d2c93f fix bug of distributing job
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-08-11 19:47:03 +08:00
karmada-bot 90fdd649aa
Merge pull request #594 from XiShanYongYe-Chang/cluster-api-v4
Add cluster lifecycle management using the cluster-api
2021-08-11 16:47:33 +08:00
karmada-bot 4c2c18966d
Merge pull request #582 from weilaaa/feature/skip-disabled-gvr
skip disabled gvr when new informers
2021-08-11 09:29:14 +08:00
changzhen 60e53a1f02 add cluster lifecycle management using the cluster-api
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-08-10 17:55:07 +08:00
Jackson f3889bcc2d
cluster unschedulable support for schedulers (#464)
* use taint to support cordon and uncordon a cluster for karmadactl

Signed-off-by: algebra2k <jackson.cloudnative@gmail.com>

* fix lint error

Signed-off-by: algebra2k <jackson.cloudnative@gmail.com>
2021-08-10 10:15:15 +08:00
RainbowMango 0d0b2cd7a6 replace k/k with component-helpers
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-08-09 15:29:11 +08:00
karmada-bot 2cefb24ecf
Merge pull request #576 from Garrybest/enhance-lease
Leader election: clean up and add leader election to agent
2021-08-09 14:31:12 +08:00
karmada-bot 8088121b82
Merge pull request #586 from weilaaa/fix/remove-duplicated-constants
remove duplicated constants in binding.go
2021-08-09 09:31:12 +08:00
changzhen 7a11781b14 add cluster-api schemes
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-08-07 17:45:41 +08:00
karmada-bot b9641fdd56
Merge pull request #578 from Iceber/unlock-multi-cluster-manager
informermanager: cleanup lock operation
2021-08-07 11:16:08 +08:00
weilaaa 32d051ceae remove duplicated constants in binding.go
Signed-off-by: weilaaa <weilanidaye@gmail.com>
2021-08-06 10:55:03 +08:00
weilaaa 7a980fa842 skip disabled gvr when new informers
Signed-off-by: weilaaa <weilanidaye@gmail.com>
2021-08-06 10:26:19 +08:00
pigletfly 8edb376966 Move labels to apis
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-08-06 00:03:00 +08:00
karmada-bot 08f3ef9995
Merge pull request #577 from XiShanYongYe-Chang/secret-ownerreference
Fix an bug when add secret ownerreference with cluster
2021-08-05 22:56:07 +08:00
karmada-bot 91cf835872
Merge pull request #561 from XiShanYongYe-Chang/fix-cluster-fail-rescheduling
Fix an error in cluster fault rescheduling
2021-08-03 22:02:03 +08:00
changzhen db441697e8 add toleration match in rescheduling
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-08-03 16:40:57 +08:00
Iceber Gu 6b86b6ee9c informermanager: aviod prelonged RLock of the RWMutex
Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
2021-08-03 14:15:53 +08:00
changzhen 0d82edcebe fix an bug when add secret ownerreference with cluster
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-08-03 09:26:06 +08:00
karmada-bot 33a214b639
Merge pull request #560 from XiShanYongYe-Chang/fix-pvc-update
Retain pvc volumeName when updating
2021-08-03 09:19:02 +08:00
Garrybest 87937a0830 clean up leader election
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-08-02 21:31:05 +08:00
changzhen 7a35aa069d fix an issue in cluster fault rescheduling
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-07-31 15:12:29 +08:00
Garrybest 9d62d21da0 fix bug: score plugin does not work
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-07-31 10:13:54 +08:00
karmada-bot 056b1cb3c0
Merge pull request #509 from Garrybest/work-fix
Generate work name by hash code
2021-07-29 17:18:55 +08:00
Garrybest 4924021f31 generate work name by hash
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-07-29 14:55:56 +08:00
RainbowMango 7607dce76e sync observed generation
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-07-28 20:39:03 +08:00