Commit Graph

361 Commits

Author SHA1 Message Date
karmada-bot b9912a6f22
Merge pull request #546 from qianjun1993/scale-scheduler
Replicas changes with aggregated ReplicaDivisionPreference
2021-07-23 15:41:46 +08:00
changzhen 478a8dfbf3 use resourceBinding lister generated from the SingleClusterInformerManager
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-07-23 14:20:12 +08:00
junqian 65b7f5c8de Replicas changes with aggregated ReplicaDivisionPreference
Signed-off-by: junqian <junqian@tencent.com>
2021-07-23 10:10:37 +08:00
RainbowMango 54801cddca remove inline json tag from status field
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-07-23 09:52:09 +08:00
karmada-bot 69d167e592
Merge pull request #551 from XiShanYongYe-Chang/nil-item
prevent nil key from queue
2021-07-23 09:16:46 +08:00
RainbowMango fd1bdb4cab validate skipped resource
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-07-22 21:48:43 +08:00
karmada-bot e7887f4fb8
Merge pull request #533 from pigletfly/watchedNamespace
controller-manager: introduce --skipped-propagating-namespaces flag
2021-07-22 19:06:46 +08:00
pigletfly 3a29c15a7e Add skipped-propagating-namespaces flag
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-07-22 17:41:50 +08:00
changzhen 8e770944d1 drop nil key
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-07-22 17:38:11 +08:00
karmada-bot 1d911bbf79
Merge pull request #529 from XiShanYongYe-Chang/mcs-e2e
Add e2e test for MCS feature
2021-07-22 14:07:45 +08:00
changzhen 0f1ce4e1d9 add e2e test for MCS feature
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-07-21 16:46:10 +08:00
karmada-bot 135c628019
Merge pull request #515 from qianjun1993/scale-scheduler
Replicas changes with Duplicated ReplicaSchedulingStrategy or Weighte…
2021-07-21 10:35:44 +08:00
RainbowMango 16bb6a2543 stop list propagationpolicies and clusterpropagationpolicies from controller-runtime cache
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-07-20 16:26:55 +08:00
junqian b15854f3cb Replicas changes with Duplicated ReplicaSchedulingStrategy or Weighted ReplicaDivisionPreference
Signed-off-by: junqian <junqian@tencent.com>
2021-07-20 16:17:45 +08:00
changzhen 5154ba4b37 resource's annotation have not been updated after the overridepolicy updated
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-07-16 18:04:40 +08:00
karmada-bot 18681cbbe3
Merge pull request #530 from XiShanYongYe-Chang/cleanup-todo
Replace util.CreateOrUpdateWork with helper.CreateOrUpdateWork
2021-07-16 10:20:37 +08:00
changzhen 1fe244c3d9 refactor util.CreateOrUpdateWork with helper.CreateOrUpdateWork
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-07-15 16:27:19 +08:00
RainbowMango 6aaa003f38 Add more debug logs for failing case.
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-07-15 16:00:46 +08:00
karmada-bot f1ee44bc77
Merge pull request #473 from XiShanYongYe-Chang/cleanup
Cleanup cyclomatic complexity with function EnsureWork
2021-07-14 21:12:33 +08:00
changzhen 12e2585e82 Cleanup cyclomatic complexity with function EnsureWork
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-07-14 20:43:45 +08:00
karmada-bot 9495cf398f
Merge pull request #511 from Garrybest/agent-deploy
fix bugs of agent deployment
2021-07-14 12:20:32 +08:00
Garrybest e7b9de2f22 fix bugs of agent deployment
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-07-14 11:17:13 +08:00
karmada-bot 82d3e6982c
Merge pull request #519 from Garrybest/clean-up
cleanup: use meta.IsStatusConditionTrue
2021-07-12 10:29:31 +08:00
Garrybest 675458ebb2 cleanup: use meta.IsStatusConditionTrue
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-07-09 20:38:20 +08:00
karmada-bot c944e18206
Merge pull request #516 from XiShanYongYe-Chang/agent-suppress
suppress reported work from propagating in agent
2021-07-09 19:07:27 +08:00
karmada-bot 1f8c6a9bba
Merge pull request #508 from XiShanYongYe-Chang/webhook
Mutate policy's ResourceSelectors in webhook
2021-07-09 18:11:28 +08:00
changzhen 0d0e7c333e suppress reported work from propagating in agent
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-07-09 17:27:55 +08:00
RainbowMango d8e2053b35 Suppress reported work from propagating
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-07-09 11:55:30 +08:00
changzhen 1e6c21cc28 mutate policy's ResourceSelectors in webhook
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-07-09 11:02:23 +08:00
karmada-bot e1dfb7707d
Merge pull request #506 from qianjun1993/scheduler
scheduler with weighted ReplicaDivisionPreference
2021-07-09 10:29:28 +08:00
junqian f60a77160c scheduler with weighted ReplicaDivisionPreference
Signed-off-by: junqian <junqian@tencent.com>
2021-07-09 09:52:14 +08:00
karmada-bot 514b5e67db
Merge pull request #388 from pigletfly/add-kind-option
Add skippedPropagatingAPIs option
2021-07-08 22:23:27 +08:00
pigletfly d4bbde279f Add skippedPropagatingAPIs option
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-07-08 19:17:01 +08:00
karmada-bot eb81ba0623
Merge pull request #502 from RainbowMango/pr_api_enablements
refactor utils for checking API enablements
2021-07-08 17:55:26 +08:00
karmada-bot 6db6baf2ac
Merge pull request #503 from qianjun1993/scheduler
scheduler with Duplicated ReplicaSchedulingStrategy
2021-07-08 10:00:25 +08:00
RainbowMango 13aacdfdea refactor utils for checking API enablements
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-07-07 19:47:15 +08:00
karmada-bot b35402c3bd
Merge pull request #496 from qianjun1993/ensureWork
ensure work with given replicas
2021-07-07 15:40:24 +08:00
junqian 228dbaa5ba scheduler with Duplicated ReplicaSchedulingStrategy
Signed-off-by: junqian <junqian@tencent.com>
2021-07-07 15:32:07 +08:00
junqian ffe285ea2a ensure work with given replicas
Signed-off-by: junqian <junqian@tencent.com>
2021-07-07 15:14:23 +08:00
karmada-bot 7a4a5e5f62
Merge pull request #494 from XiShanYongYe-Chang/mcs-controller
Collect endpointslices from executionNamespace to serviceexport namespace
2021-07-07 11:24:25 +08:00
karmada-bot 7f2af48e02
Merge pull request #495 from qianjun1993/detector
add object resource info to binding
2021-07-07 09:15:24 +08:00
changzhen a6c76d2ffa collect endpointslices from executionNamespace to service namespace
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-07-06 22:08:58 +08:00
lihanbo 8e588ac06f resolve AlreadyExists conflict when create resource in member cluster
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-07-06 21:51:54 +08:00
junqian ab4fa71bf2 add object resource info to binding
Signed-off-by: junqian <junqian@tencent.com>
2021-07-06 11:28:11 +08:00
Garrybest 38690cbda6 share informer manager in global
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-07-05 19:31:41 +08:00
karmada-bot d95edbd747
Merge pull request #484 from XiShanYongYe-Chang/mcs
Add ServiceExport controller to report EndpointSlice
2021-07-03 17:15:19 +08:00
changzhen f32bd501e6 add service_export_controller to watch serviceexport and report endpointslices to karmada
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-07-03 16:33:07 +08:00
likakuli 29764f26b7 Fix misleading logs
Signed-off-by: likakuli <1154584512@qq.com>
2021-07-02 17:57:58 +08:00
karmada-bot a83ecff01a
Merge pull request #476 from XiShanYongYe-Chang/cleanup_retainServiceFields
Cleanup cyclomatic complexity with function retainServiceFields
2021-07-02 09:39:17 +08:00
lihanbo a7f950766a resolve the 'AlreadyExist' conflicts in a 'Create' process
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-07-01 08:54:06 +08:00
RainbowMango 831ac18b18 Added mcs API schemes
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-06-28 09:54:56 +08:00
changzhen 47bb9b04d0 Cleanup cyclomatic complexity with function retainServiceFields
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-06-28 09:49:26 +08:00
lihanbo f45147a9ce adopt applying manifest to member cluster when resource with the same name and kind already exists
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-06-26 16:25:10 +08:00
karmada-bot 83b9682fd2
Merge pull request #456 from Garrybest/resource
add ScalarResources in cluster ResourceSummary
2021-06-23 15:56:07 +08:00
Garrybest 24ca29017e add ScalarResources into cluster
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-06-23 15:27:34 +08:00
RainbowMango a81c714afc Enable gocyclo static check
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-06-22 21:38:07 +08:00
Garrybest e08029ade4 use meta.IsStatusConditionTrue in cluster.go
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-06-19 21:27:21 +08:00
karmada-bot fa3ac4888e
Merge pull request #421 from Garrybest/cluster-lifecycle-manager
add cluster lease controller
2021-06-18 17:50:12 +08:00
karmada-bot 3f99da3024
Merge pull request #442 from vincent-pli/no-informer-for-member-cluster-when-applied-faied
No informer for sync status back when k8s resource applied failed to member clusters
2021-06-18 12:51:25 +08:00
pengli b602aaf868 no informer for sync status back when k8s resource applied failed to member cluster
Signed-off-by: pengli <justdoit.pli@gmail.com>
2021-06-18 12:00:28 +08:00
Garrybest b9010cfe9b add cluster lease controller
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-06-16 21:19:43 +08:00
Garrybest 207eb1677f add pending pods resource calculation
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-06-16 21:13:46 +08:00
Garrybest 7bc0d00e61 clean up cluster resource calculation
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-06-15 20:15:04 +08:00
RainbowMango 89f3569147 Making resource selector required
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-06-10 17:15:35 +08:00
lihanbo aa4baa12a2 clean up works when resource binding has been removed
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-06-10 10:00:54 +08:00
huiwq1990 d96ac4e222 remove unused code
Signed-off-by: huiwq1990 <huiwq1990@163.com>
2021-06-07 21:47:14 +08:00
karmada-bot 552e75a2b9
Merge pull request #404 from RainbowMango/pr_fix_Stringer
Change the receiver of Stringer interface implementation
2021-06-05 14:17:45 +08:00
garfcat 02893e1746 fix #402 replicaschedulingpolicy does not take effect
Signed-off-by: garfcat <xiefei_mvp@163.com>
2021-06-03 20:41:57 +08:00
RainbowMango 0f7c9f7738 Change Stringer interface implementation from pointer receiver to value receiver.
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-06-02 15:45:15 +08:00
changzhen 5473488c04 fix golangci-lint: Implicit memory aliasing in for loop(G601)
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-06-01 16:42:57 +08:00
Hongcai Ren 6fa33a1071
Cleanup resource bindings when cluster propagation policy has been removed (#380)
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-05-27 19:11:32 +08:00
changzhen 4ae750b65d add UT of imageOverrider
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-05-26 18:16:44 +08:00
changzhen fa9a2ea662 ImageOverrider Implementation
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-05-26 18:16:44 +08:00
lihanbo 7e1e7b9726 add e2e test for scheduling base on cluster provider/region
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-05-25 09:11:57 +08:00
lihanbo b565cc0caa support schedule based on cluster provider/region/zone
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-05-25 09:11:57 +08:00
Rui Fang bbcf69f368
work: fix workload name conflicts (#358) (#359)
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-05-20 10:34:27 +08:00
gy95 92c5df6c35 add linter whitespace and fix linter errors
Signed-off-by: gy95 <guoyao17@huawei.com>
2021-05-17 14:23:24 +08:00
gy95 6a2ade4512
use const string instead of string literal (#335)
Signed-off-by: gy95 <guoyao17@huawei.com>
2021-05-17 09:16:42 +08:00
gy95 d33ae3818c
fix blank lines of import packages and repeated import problems (#337)
Signed-off-by: gy95 <guoyao17@huawei.com>
2021-05-16 19:01:11 +08:00
Zhen Chang 54e198eaa9
sort OverridePolicy/ClusterOverridePolicy by name when more than one policy matched (#316)
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-05-13 16:12:44 +08:00
futuretea 39d1a3a636 Fix goimports
Signed-off-by: futuretea <1913508671@qq.com>
2021-05-13 11:31:19 +08:00
Peng Li e0f725ca2d
generate resourcebinding from clusterpropagationpolicy based on the "namespace" exist of the comming object (#315)
Signed-off-by: pengli <justdoit.pli@gmail.com>
2021-05-13 10:20:14 +08:00
Hongcai Ren 24ab1993ee
Added more clear description for override API (#318)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-05-12 20:12:07 +08:00
liufen90 d91f7868d0
support proxy (#307)
Signed-off-by: liufen90 <564795204@qq.com>
2021-05-12 10:51:15 +08:00
Zhen Chang 6a2588245d
match the first PropagationPolicy/ClusterPropagationPolicy in alphabetical order (#306)
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-05-11 11:23:38 +08:00
RainbowMango 0203c60ab7 Add image parser utils
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-05-10 09:50:26 +08:00
RainbowMango 763c2a10e7 Adopt Reconcile() method signature change
Adopt MapOjbect removing change
Adopt event handling object changes
Adopt ToRequestsFunc to MapFunc change
Adopt EnqueueRequestsFromMapFunc change
Adopt runerable interface change
Adopt using admission review version v1

Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-05-08 19:12:35 +08:00
Hongcai Ren 5652fc54c6
enable cluster proxy that karmada control plane used to talk to clusters (#302)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-05-08 10:25:56 +08:00
Hanbo Li 28e6d3ff71
support ReplicaSchedulingPolicy (#269)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
Signed-off-by: Lihanbo (Hampo <l00512446@china.huawei.com>
2021-04-15 17:37:38 +08:00
Hongcai Ren fd5aeb8cf5
Introduce federated object key for refactor status clollection (#266)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-04-12 15:12:16 +08:00
Hongcai Ren 062fd41cb0
Cleanup status from resource template after binding object removed. (#259)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-04-07 10:34:44 +08:00
yangcheng-icbc c4acba97aa
update workload's labels when it's policy has been deleted (#251)
Signed-off-by: icbc-yangcheng <shineus1996@gmail.com>
2021-04-06 10:50:37 +08:00
Hanbo Li a3ebc74cde
trigger resync for override policy changes (#250)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-04-02 17:34:04 +08:00
yangcheng-icbc c77304df01
PropagationPolicy and ClusterPropagationPolicy name should be no more than 63 characters (#249)
Signed-off-by: icbc-yangcheng <shineus1996@gmail.com>
2021-04-01 14:55:07 +08:00
yangcheng-icbc 3c193e1760
the binding name for any resource template should be a name-kind format (#248)
Signed-off-by: icbc-yangcheng <shineus1996@gmail.com>
2021-03-31 16:33:45 +08:00
RainbowMango 4bba4df183 deprecated karmada.io/override and karmada.io/cluster-override label
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-30 16:13:58 +08:00
RainbowMango f1777392f9 record applied override items for work object
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-30 16:13:58 +08:00
lihanbo e7aeb332ad add e2e test for karmada agent
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-03-27 17:58:55 +08:00
RainbowMango 7448989f55 Move cluster wide key to dedicade pakage
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-27 16:08:24 +08:00
RainbowMango ada0dba34d minor improvement for cluster wide key
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-27 11:42:00 +08:00
Hanbo Li 59a02e0030
add karmada agent (#226)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-03-24 14:51:13 +08:00
Hongcai Ren aa640333fa
Watch resource binding object changes and reflect status to resource template (#218)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-20 09:53:24 +08:00
Hongcai Ren 1bf2e6502f
suppress some useless logs (#224)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-19 14:42:00 +08:00
Zhen Chang 0290ebf253
Aggregate status to clusterResourceBinding (#223)
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-03-18 14:40:33 +08:00
Hongcai Ren c5cc4b7ce2
scheduler support schedule cluster resource binding (#222)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-18 11:50:58 +08:00
Zhen Chang da34779efb
Aggregate status to resourcebinding (#221)
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-03-17 18:17:46 +08:00
changzhen 0c07ddf469 retain pod fields when update with objectwatcher
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-03-12 19:30:41 +08:00
Hanbo Li d578be945b
support cluster override policy (#208)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-03-11 20:04:18 +08:00
Hongcai Ren f556e93264
Watches cluster propagation policy changes (#211)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-11 17:03:11 +08:00
Hongcai Ren 3b7569ec6e
add support for match cluster propagation policy (#210)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-11 14:11:19 +08:00
Hanbo Li fa86b6afd1
add cluster resource binding controller (#205)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-03-11 09:18:28 +08:00
Zhen Chang 1b0aa972a1
Add webhook for mutating workload object of work resource (#206)
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-03-10 17:46:58 +08:00
Hongcai Ren 5abf32099f
wait for dependent override present before apply policy (#204)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-10 17:14:15 +08:00
Hongcai Ren 002cd517b2
cleanup associate bindings after policy removed (#203)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-10 10:30:32 +08:00
Hanbo Li d48065f086
add webhook for clusterpropagationpolicy and propagationpolicy (#201)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-03-10 09:36:32 +08:00
Hongcai Ren 614d7b0b8d
trigger re-match for policy changes (#202)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-09 18:56:54 +08:00
Hongcai Ren c1c50c96e9
record isolate by detector, preparing match again when new policy added (#200)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-08 17:43:56 +08:00
RainbowMango 30bda2b55b Moving ResourceBinding to work.karmada.io group
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-06 15:37:51 +08:00
RainbowMango 0b22238888 Adopt work API group change
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-06 14:30:06 +08:00
Hongcai Ren f262e2680f
Deprecate created-by label (#194)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-06 11:13:23 +08:00
Hongcai Ren 7905bb2371
Rename PropagationBinding to ResourceBinding (#193)
* Rename PropagationBinding to ResourceBinding

Signed-off-by: RainbowMango <renhongcai@huawei.com>

* Auto generate files

Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-06 09:46:35 +08:00
Hongcai Ren 288d24c7b9
Deprecate create by label from manifests (#191)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-06 09:28:01 +08:00
Hongcai Ren 43b373fe9d
Introduce 'policy.karmada.io/applied-placement' annotation for re-schedule feature. (#187)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-04 19:27:18 +08:00
Hongcai Ren 3e31afdf4f
Deprecate owner label(karmada.io/created-by) set to Work object (#184)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-04 11:20:26 +08:00
RainbowMango d86fcf9fe3 match appropriate policy for detected resource.
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-03-03 10:14:56 +08:00
Hongcai Ren b83a915955
Deprecated PolicyClaimLabel and replace with new labels (#178)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-02-27 18:23:10 +08:00
Hongcai Ren 8efa91208b
Monitor all resource changes. (#176)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-02-27 17:38:49 +08:00
Hanbo Li 14154f7c77
add namespace sync controller (#173)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-02-26 09:49:24 +08:00
Hongcai Ren e7298f6f14
Optimize AsyncWorker make it could be re-use by other components (#174)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-02-25 20:27:07 +08:00
Hongcai Ren 5f7305f1d7
Rename PropagationWork to Work. (#169)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-02-09 14:30:34 +08:00
Hanbo Li eb6265a78a
support spread constraints (#168)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-02-08 12:05:49 +08:00
Hongcai Ren c5502fc434
Remove hardcoded condition type. (#166)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-02-05 17:25:55 +08:00
Hanbo Li 8cc6f72cf2
support skip member cluster TLS verification (#159)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-02-03 16:31:07 +08:00
Hanbo Li bca72a58fb
support cluster label selector in scheduler (#149)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-01-30 09:22:48 +08:00
Xianpao Chen 540188c3cc
transform hpa to propagationwork (#147)
Signed-off-by: chenxianpao <chenxianpao@huawei.com>
2021-01-29 12:29:41 +08:00
Hanbo Li c17d0338ec
copy supporting code from kubernetes-sigs/kubefed (#150)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-01-28 20:18:40 +08:00
RainbowMango 6c7eb64d1e validate cluster name by webhook.
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-01-25 17:26:25 +08:00
Kevin Wang 422cd8e555 rename propagationstrategy to policy in implementations
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
2021-01-25 15:55:06 +08:00
Kevin Wang 4afcabe5f1 rename apigroup name, from propagationstrategy to policy
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
2021-01-25 15:55:06 +08:00
Kevin Wang e33559250c rename membercluster to cluster in relevant implementations
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
2021-01-23 09:53:52 +08:00
Kevin Wang da394ab07a rename membercluster api to cluster
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
2021-01-23 09:53:52 +08:00
Hongcai Ren f04229cec9
Support override policy (#130)
* support override resources by policy

Co-authored-by: lihanbo <lihanbo2@huawei.com>

Signed-off-by: RainbowMango <renhongcai@huawei.com>

* Update vendor

Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-01-20 10:33:18 +08:00
Hongcai Ren 7332f8093e
Add generic client support (#126)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-01-16 09:13:41 +08:00
Xianpao Chen 997d38fa63
remove unused file pkg/util/util.go (#124)
Signed-off-by: chenxianpao <chenxianpao@huawei.com>
2021-01-15 10:54:48 +08:00
Hanbo Li 143f09af1b
add object watcher to manage operations for object dispatched to member clusters (#104)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-01-07 18:51:07 +08:00
Hongcai Ren 3785f32ef2
Refelect resource running status to PropagationWork. (#106)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-01-05 16:18:28 +08:00
Xianpao Chen 8e0f2c4cae
add work queue for status controller (#99)
Signed-off-by: chenxianpao <chenxianpao@huawei.com>
2020-12-31 17:39:33 +08:00
Hongcai Ren 7d0593b4d4
Add Lister interface for informer manager. (#96) 2020-12-30 10:53:35 +08:00
Hongcai Ren e4c7379eb5
simplify finalizer usage. (#94) 2020-12-30 09:25:00 +08:00
Hanbo Li 5327705f6e
add finalizer when creating propagationwork (#92) 2020-12-28 17:09:53 +08:00
Xianpao Chen 62a85ea0f8
add informermangers for status processing (#91)
* add informermangers for status processing

Co-authored-by: Hongcai Ren <renhongcai@huawei.com>
2020-12-28 10:14:05 +08:00
lihanbo e568db711e get membercluster resource from cache 2020-12-26 11:45:00 +08:00
RainbowMango 9b8cdab45c Add Informer manager interfaces and implementation
Co-authored-by: chenxianpao <chenxianpao@huawei.com>
2020-12-24 09:19:34 +08:00
lihanbo fb91d91c94 add membercluster status controller 2020-12-23 14:48:48 +08:00
Kevin Wang 52ff0e4ab9
reflect github org update (#73)
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
2020-12-15 11:47:13 +08:00
Hanbo Li edd8763265
add karmadactl unjoin command (#67) 2020-12-14 17:36:48 +08:00
Hongcai Ren 1186eeb9a4
add script for run e2e tests (#71) 2020-12-14 10:42:01 +08:00
Xianpao Chen bf84ff9001
remove orphan work and binding (#62) 2020-12-09 11:48:45 +08:00
Hanbo Li 4d2e1de9e9
prefix execution space name with karmada-es- (#61) 2020-12-08 11:12:28 +08:00
RainbowMango c94a795299 manipulate GVR from GVK by RESTMapper 2020-12-07 09:38:01 +08:00
RainbowMango c4713b24a6 add karmada controll command to help joining a cluster. 2020-11-20 10:09:47 +08:00