Commit Graph

956 Commits

Author SHA1 Message Date
huone1 75aa4ce0e6 fix spreadconstraints[i].MaxGroups Invalidation when scaleup replicas
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-02-08 10:53:54 +08:00
karmada-bot 846b1aeb98
Merge pull request #1304 from pigletfly/fix-sort-apiResources
fixed apiEnablements unordered issue
2022-01-29 15:31:34 +08:00
karmada-bot 648e89ec45
Merge pull request #1328 from EvaDD/master
Update first in RetryOnConflict
2022-01-28 16:58:35 +08:00
libentai f853550111 Update first in RetryOnConflict
Signed-off-by: libentai <libentai@huawei.com>
2022-01-28 15:50:18 +08:00
c30013971 773de5e746 Update first in RetryOnConflict
Signed-off-by: c30013971 <cuidengdeng@huawei.com>
2022-01-28 14:44:07 +08:00
karmada-bot 231c8b61a6
Merge pull request #1311 from RishiKumarRay/master
Update first in RetryOnConflict
2022-01-26 17:40:31 +08:00
Rishi Kumar Ray 893fbefa50 Update first in RetryOnConflict
Signed-off-by: Rishi Kumar Ray <rishi.ray@knoldus.com>
2022-01-26 14:33:24 +05:30
pigletfly 314e137e94 Fix log in detector
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-01-25 20:31:14 +08:00
Alan Zhu 44299055e0 fix: karmada join fail when secret exist
Signed-off-by: Alan Zhu <zg.zhu@daocloud.io>
2022-01-24 20:13:37 +08:00
wlp1153468871 c570006603 Update first in RetryOnConflict
Signed-off-by: wlp1153468871 <luping.wei@daocloud.io>
2022-01-24 18:55:38 +08:00
karmada-bot e0e7a60c95
Merge pull request #1199 from dddddai/waiting
bugfix: resource binding is not created when creating resources and propagation policies at the same time
2022-01-24 15:47:30 +08:00
pigletfly 2d797acb23 Sort apiResources
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-01-24 14:57:00 +08:00
dddddai c770cc10f3 bugfix: resource binding is not created
reconcile PP/CPPs and resource templates in one goroutine

Signed-off-by: dddddai <dddwq@foxmail.com>
2022-01-24 10:15:12 +08:00
Garrybest e322f60917 add mock client
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-01-22 22:00:04 +08:00
Garrybest 89ddfb4587 move estimator service protos
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-01-22 22:00:03 +08:00
karmada-bot 6da027a131
Merge pull request #1263 from Garrybest/pr_proto
add proto interface for descheduler
2022-01-22 09:50:26 +08:00
karmada-bot e2c7d90aa0
Merge pull request #1298 from pigletfly/fix-log
Fix ignore log error when error is isnotfound
2022-01-21 16:41:25 +08:00
pigletfly b3c31f2fad Fix ignore log error when error is isnotfound
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-01-21 16:08:01 +08:00
karmada-bot 9a20367c97
Merge pull request #1288 from RainbowMango/pr_interpreter_owners
Nominate resource interpreter framework owners
2022-01-21 15:00:25 +08:00
karmada-bot 4a343225f9
Merge pull request #1297 from iawia002/typo
Fix typo in the test log
2022-01-21 11:36:25 +08:00
karmada-bot 9800c3c672
Merge pull request #1270 from lonelyCZ/optimize-get
Optimize karmadactl get to output more information
2022-01-21 11:09:30 +08:00
Xinzhao Xu efa85c604b Fix typo in the test log
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2022-01-21 10:59:48 +08:00
Garrybest 0d5b2427f3 adapt estimator for new interface
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-01-21 10:22:14 +08:00
Garrybest 8aa095000b generate proto files for descheduler
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-01-21 10:22:01 +08:00
Garrybest 9347e4ae0f add proto files for descheduler
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-01-21 10:21:23 +08:00
lonelyCZ 684d6c9ab4 Optimize karmadactl get to output more information
Signed-off-by: lonelyCZ <531187475@qq.com>
2022-01-20 20:11:19 +08:00
Alan Zhu eeb0f28244 karmada init: add more message for easy debug when nodePort exist
Signed-off-by: Alan Zhu <zg.zhu@daocloud.io>
2022-01-20 18:33:29 +08:00
RainbowMango dd7a3d4c6b Nominate resource interpreter framework owners
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-01-20 10:42:01 +08:00
karmada-bot abc767bfcd
Merge pull request #1277 from iawia002/unstructured
Clean up the code that converts Unstructured objects
2022-01-20 10:09:25 +08:00
karmada-bot 28f0bf365b
Merge pull request #1145 from kerthcet/feature/fix-ensure-cyclomatic-complexity
fix ensureWork cyclomatic complexity
2022-01-20 09:00:25 +08:00
wlp1153468871 ed261ef0a0 modify log type to Error when err ocurs
Signed-off-by: wlp1153468871 <luping.wei@daocloud.io>
2022-01-19 18:21:19 +08:00
kerthcet 695f3cc99e fix ensureWork cyclomatic complexity
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-01-19 13:16:56 +08:00
Xinzhao Xu 501f68aea4 Clean up the code that converts Unstructured objects
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2022-01-19 10:28:30 +08:00
changzhen fc7616e234 update HookEnabled interface with resourceinterpreter
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-01-19 09:27:15 +08:00
karmada-bot 0d98cc368d
Merge pull request #1253 from iawia002/aggregate-status-hook
Implementing the AggregateStatus hook
2022-01-19 08:56:24 +08:00
Xinzhao Xu 2f55e6c583 Implementing the AggregateStatus hook
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2022-01-18 20:35:26 +08:00
karmada-bot 95838eb756
Merge pull request #1274 from pigletfly/add-kind
Add kind in log
2022-01-18 20:01:09 +08:00
pigletfly 44496e904c Add kind in log
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-01-18 19:23:42 +08:00
karmada-bot 5732ba22f9
Merge pull request #1271 from ashley-rongfang/retryonconflict
Update first in RetryOnConflict
2022-01-18 12:03:08 +08:00
ashley-rongfang a1c25ae4a8 Update first in RetryOnConflict
Signed-off-by: ashley-rongfang <rongfang@huawei.com>
2022-01-18 11:05:27 +08:00
karmada-bot 439d299523
Merge pull request #1266 from huone1/optimize/event-split
[optimize]split the code about resource event into event_handler.go
2022-01-18 10:39:08 +08:00
huone1 e8b717575a split the code about resource event into event_handler.go
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-01-17 18:19:19 +08:00
Garrybest 74e36f723b fix event type of apply policy
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-01-17 11:16:22 +08:00
karmada-bot 1c0abe6ef2
Merge pull request #1257 from RainbowMango/pr_set_owners
Put prodanlabs to owner list
2022-01-15 10:19:34 +08:00
karmada-bot 01e4bc9d4d
Merge pull request #1152 from carlory/add-validation-for-cluster
add validation for cluster api and remove validating webhook
2022-01-14 14:39:33 +08:00
carlory f697c03c74 add validation for cluster api and remove cluster validating webhook
Signed-off-by: carlory <baofa.fan@daocloud.io>
2022-01-14 12:08:43 +08:00
RainbowMango 44bee6cb3a Put prodanlabs to owner list of init functionality
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-01-14 09:46:46 +08:00
huone1 4c9bfbf310 [scheduler]fix a defer execution sequence problem
Signed-off-by: huone1 <huwanxing@huawei.com>
2022-01-13 20:34:34 +08:00
karmada-bot 2060616c4a
Merge pull request #1242 from Fish-pro/increased-readability
Focus on the functions syncWorkStatus and reflectStatus, modify comments and rename variable names
2022-01-12 14:31:32 +08:00
chen zechun 306d06a8ff change syncWorkStatus and reflectStatus function, modify comments and rename variable names.
Signed-off-by: chen zechun <zechun.chen@daocloud.io>
2022-01-12 12:05:32 +08:00
RainbowMango 990bf25072 mark override policy spec.targetCluster and spec.overriders deprecated
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-01-11 19:24:30 +08:00
helenfrank 43036a9670 Replace all the retry.DefaultBackoff with retry.DefaultRetry from codebase
Signed-off-by: helenfrank <helenfrank@protonmail.com>
2022-01-11 10:28:59 +08:00
karmada-bot 596f214659
Merge pull request #1225 from Garrybest/pr_resource
fix bug of resource computing
2022-01-11 08:59:53 +08:00
karmada-bot 6961c8dd05
Merge pull request #1201 from carlory/openapi
aggregatedapiserver support openapi
2022-01-10 20:22:50 +08:00
karmada-bot bdd69e1bcf
Merge pull request #1226 from pigletfly/fix-retry-on-update
Retry on status update conflict
2022-01-10 18:23:50 +08:00
pigletfly 28f1fbf985 Retry on status update conflict
Signed-off-by: pigletfly wangbing.adam@gmail.com
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-01-10 17:44:29 +08:00
carlory 8f019269b0 aggregatedapiserver support openapi
Signed-off-by: carlory <baofa.fan@daocloud.io>
2022-01-10 10:41:26 +08:00
karmada-bot 36176d6a85
Merge pull request #1198 from liangyongzhenya/fix_--cluster-namespace_misleading_description
fix --cluster-namespace misleading description
2022-01-10 09:47:51 +08:00
karmada-bot 168d5edc74
Merge pull request #1223 from XiShanYongYe-Chang/add-comments-for-cluster
add comments for internal Cluster API
2022-01-09 02:49:50 +08:00
Garrybest ae3eaaee5b fix bug of resource computing
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-01-08 12:03:49 +08:00
changzhen 1d9c2ab6a8 add comments for internal Cluster API
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-01-07 14:52:16 +08:00
Xinzhao Xu fc20a6c040 update codegen
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2022-01-07 14:26:41 +08:00
prodan 36b92cc412 organize `karmadactl init` code
Signed-off-by: prodan <pengshihaoren@gmail.com>
2022-01-05 19:04:26 +08:00
karmada-bot 808e487a2d
Merge pull request #1211 from Fish-pro/add-space
Comment should start with a whitespace
2022-01-05 14:46:45 +08:00
liangyongzhenya 88ba704db2 fix --cluster-namespace misleading description
Signed-off-by: liangyongzhenya <yongzhen.liang@daocloud.io>
2022-01-05 14:14:22 +08:00
chen zechun b2a11f00b0 add a space before the first letter
Signed-off-by: chen zechun <zechun.chen@daocloud.io>

Add spaces for all comments .go file in "pkg/karmadactl/cmdinit/utils/"

Signed-off-by: chen zechun <zechun.chen@daocloud.io>
2022-01-05 11:43:09 +08:00
karmada-bot 8b3aefdb6f
Merge pull request #1206 from carlory/fix-cluster-controller
remove unreachable code
2022-01-04 14:15:45 +08:00
prodan d0665aaf82 Fix karmadactl init not found v1alpha1.cluster.karmada.io object
Signed-off-by: prodan <pengshihaoren@gmail.com>
2022-01-03 02:01:34 +08:00
carlory da91752a29 remove unreachable code
Signed-off-by: carlory <baofa.fan@daocloud.io>
2022-01-02 22:21:45 +08:00
karmada-bot 14487548dd
Merge pull request #704 from mrlihanbo/follow-controller-2
update apis for automatically propagate dependencies
2021-12-31 07:44:40 +08:00
karmada-bot e8a206640e
Merge pull request #1188 from XiShanYongYe-Chang/ignore-some-group-with-impersonate
Ignore auto-generated user groups when proxy request
2021-12-29 20:34:39 +08:00
karmada-bot cd8ee3a6e5
Merge pull request #1183 from lonelyCZ/init-parentcommand
Add parentCommand to make init command compatible with `karmadactl`
2021-12-29 20:08:43 +08:00
changzhen b34e2724b5 ignore some group with Impersonate-Group
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-12-29 18:20:53 +08:00
lihanbo 82722c2e8f update apis for automatically propagate dependencies
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-12-29 15:34:10 +08:00
carlory 17578c8466 remove the karmada client from aggregated-apiserver
Signed-off-by: carlory <baofa.fan@daocloud.io>
2021-12-29 13:16:44 +08:00
lonelyCZ 8e298f9fa1 Add parentCommand to make init command compatible with karmadactl
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-12-29 12:07:28 +08:00
changzhen 05722acfc0 add impersonatorSecretRef for cluster object
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-12-29 11:08:13 +08:00
karmada-bot 472f8c39d5
Merge pull request #1181 from carlory/print-cluster-columns
expose more than name/creation timestamp columns for cluster api
2021-12-29 09:17:39 +08:00
carlory e69b58c981 define table converter for cluster api that exposes more than name/creation timestamp
Signed-off-by: carlory <baofa.fan@daocloud.io>
2021-12-29 07:41:23 +08:00
karmada-bot 7c2be233b7
Merge pull request #1174 from prodanlabs/karmadactl-init
Log print karmada text logo
2021-12-28 18:00:37 +08:00
RainbowMango e1b275b960 Remove useless unit tests
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-12-28 17:11:12 +08:00
RainbowMango 537dd0a4ce Update generated files
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-12-28 16:27:29 +08:00
RainbowMango a11997c969 Add .spec.impersonatorSecretRef to Cluster
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-12-28 16:20:15 +08:00
prodan 24dc3e5a29 Log print karmada text logo
Signed-off-by: prodan <pengshihaoren@gmail.com>
2021-12-28 15:46:05 +08:00
karmada-bot b06925128a
Merge pull request #1164 from XiShanYongYe-Chang/support-clusterproxy-for-pull
completes ClusterSpec and create impernator secret for pull mode cluster
2021-12-28 10:44:37 +08:00
karmada-bot f5c33bbfff
Merge pull request #1165 from RainbowMango/pr_owners
Put lonelyCZ on the owner list
2021-12-28 10:02:38 +08:00
changzhen 9833a814a4 create or update cluster and create impersonation secret for pull cluster
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-12-27 21:07:00 +08:00
karmada-bot a46961fc7d
Merge pull request #1169 from prodanlabs/karmadactl-init
adjust the steps of karmadactl init, update examples
2021-12-27 19:49:37 +08:00
prodan e38e3cb2e0 adjust the steps of karmadactl init and update examples
Signed-off-by: prodan <pengshihaoren@gmail.com>
2021-12-27 17:40:17 +08:00
changzhen bc377033e3 upgrade scenario for pull mod cluster
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-12-27 12:22:08 +08:00
changzhen fb8f99718c upgrade scenario for push mode cluster
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-12-26 16:48:22 +08:00
karmada-bot 5136be2917
Merge pull request #1167 from carlory/simplify-waiting-code
simplify waitForCacheSync func
2021-12-25 18:55:36 +08:00
carlory 572bf7ec4c simplify waitForCacheSync func
Signed-off-by: carlory <baofa.fan@daocloud.io>
2021-12-25 17:15:42 +08:00
RainbowMango b582a380e1 Put lonelyCZ on the owner list
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-12-25 16:09:29 +08:00
karmada-bot abf08e476d
Merge pull request #1161 from iawia002/deprecate-rsp
Remove deprecated ReplicaSchedulingPolicy API
2021-12-25 09:15:34 +08:00
RainbowMango 5797e41161 Update karmada init command help
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-12-24 18:09:02 +08:00
prodan a6219a90cb update `kubectl-karmada init`
Signed-off-by: prodan <pengshihaoren@gmail.com>
2021-12-24 18:04:59 +08:00
Xinzhao Xu d7b593ce55 Remove deprecated ReplicaSchedulingPolicy API
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-12-24 17:43:06 +08:00
Xinzhao Xu a895c38005 Implementing the ReviseReplica hook
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-12-24 16:02:25 +08:00
karmada-bot 85293346a8
Merge pull request #1158 from XiShanYongYe-Chang/add-cluster-proxy
Add ClusterProxy for Cluster
2021-12-24 15:47:34 +08:00
changzhen c9a2a70cb8 add ClusterProxyOptions for Cluster
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-12-24 15:19:53 +08:00
lihanbo 280028d1a1 fix the name of impersonate service account
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-12-24 14:02:03 +08:00
Xinzhao Xu 05eb1d51d7 Add --controllers flag to karmada-agent and move ControllerContext to a separate package
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-12-23 21:32:06 +08:00
lihanbo beb4dd7581 add unified auth controller
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-12-23 19:46:39 +08:00
Garrybest 9b3b5789f0 fix division bugs when pod request zero scalar resource
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-23 16:07:05 +08:00
karmada-bot 98a5204f19
Merge pull request #1142 from prodanlabs/karmadactl-init
Enable `karmada-aggregated-apiserver` installation by `kubectl-karmada init`
2021-12-22 18:30:33 +08:00
prodan afc5ec05ee update `karmadactl init` of #1122
Signed-off-by: prodan <pengshihaoren@gmail.com>
2021-12-22 18:01:18 +08:00
karmada-bot 00307f25c4
Merge pull request #1132 from lonelyCZ/karmadactl-promote
Implementing `karmadactl promote` to promote workloads from legacy clusters to karmada
2021-12-22 09:02:31 +08:00
lonelyCZ 501bb52ebb implement karmadactl promote to promote workloads from legacy clusters
Co-authored-by: dddddai <dddwq@foxmail.com>
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-12-21 17:57:33 +08:00
lonelyCZ 14010e289f move prune to pkg/resourceinterpreter/defaultinterpreter
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-12-21 16:54:22 +08:00
karmada-bot b57b723504
Merge pull request #1121 from iawia002/refactor-matching-method
Refactor the matching method in overridemanager
2021-12-21 16:42:29 +08:00
karmada-bot 6b510a8143
Merge pull request #1138 from prodanlabs/karmadactl-init
change the default path of `karmadactl init`
2021-12-21 16:14:29 +08:00
prodan 63e2882a34 change the default path of `karmadactl init`
Signed-off-by: prodan <pengshihaoren@gmail.com>
2021-12-21 15:29:22 +08:00
karmada-bot 22e307707b
Merge pull request #1122 from XiShanYongYe-Chang/move-cluster-to-aa
Add aggregation apiserver and move cluster crd to aa
2021-12-21 15:02:31 +08:00
karmada-bot 5db1d4e204
Merge pull request #1134 from lonelyCZ/karmadactl-webhook
Update webhook_configuration of `karmadactl init`
2021-12-21 14:22:28 +08:00
Xinzhao Xu 5b3c9245b8 Add unittest for getOverridersFromOverridePolicies
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-12-21 10:37:34 +08:00
Xinzhao Xu 9a0c78757a Refactor the matching method in overridemanager
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-12-21 10:37:14 +08:00
karmada-bot ea0874acd0
Merge pull request #1070 from mrlihanbo/add_events_in_resource
add events to resource template
2021-12-21 09:26:28 +08:00
lonelyCZ 010f07eb4c Update webhook of karmadactl init
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-12-20 20:51:40 +08:00
karmada-bot 5ac98b094e
Merge pull request #1129 from lonelyCZ/cop-webhook
Implementing karmada-webhook of validating ClusterOverridePolicy
2021-12-20 20:23:27 +08:00
changzhen b49cc9ed0f add aggregated apiserver fabric
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-12-20 19:49:29 +08:00
karmada-bot 00f46c6452
Merge pull request #1130 from Garrybest/pr_rate
add rate limited when errors occur in scheduler
2021-12-20 19:10:27 +08:00
lihanbo b238572263 add events to resource template
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-12-20 17:31:38 +08:00
karmada-bot 5eefcd6a49
Merge pull request #1053 from mrlihanbo/delete-work-bugfix
abort deleting workload when the member cluster is unready
2021-12-20 17:07:27 +08:00
Garrybest cbe5cae13b add rate limited when errors occur in scheduler
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-20 14:19:18 +08:00
lonelyCZ f99d1e8a0f Implementing karmada-webhook of validating ClusterOverridePolicy
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-12-20 13:32:52 +08:00
karmada-bot a916dda8d2
Merge pull request #1107 from Shike-Ada/pr-commit
update kube-apiserver and kube-controller-manager default version
2021-12-20 09:41:26 +08:00
karmada-bot c69e955bfb
Merge pull request #1124 from lonelyCZ/override-validating
Implementing karmada-webhook of validating OverridePolicy
2021-12-20 09:07:26 +08:00
lihanbo 5290f07345 abort deleting workload when the member cluster is unready
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-12-19 14:29:12 +08:00
changzhen 586cd9d407 update discoveryv1beta1 to discoveryv1 for endpointslice
Signed-off-by: changzhen <changzhen5@huawei.com>
Signed-off-by: Shike-Ada <1073457937@qq.com>
2021-12-18 17:19:21 +08:00
lonelyCZ aa97d84c52 Move RemoveIrrelevantField to pkg/resourceinterpreter
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-12-18 13:08:55 +08:00
lonelyCZ b8d46597a9 Implementing karmada-webhook of validating OverridePolicy
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-12-18 12:42:22 +08:00
karmada-bot 45f3aec63d
Merge pull request #1120 from dddddai/redundant-sort
Remove redundant sort in scale up schedule
2021-12-18 10:24:24 +08:00
guoyao e340e001c7 replace github.com/pkg/errors with golang native errors
Signed-off-by: guoyao <1015105054@qq.com>
2021-12-17 16:40:51 +08:00
karmada-bot 7dcb197f9e
Merge pull request #1094 from prodanlabs/master
kubectl-karmada add `init` Command
2021-12-17 10:35:23 +08:00
karmada-bot dba350cfd7
Merge pull request #1119 from Garrybest/pr_panic
fix panix in DivideReplicasByTargetCluster
2021-12-17 10:25:23 +08:00
dddddai ff83773c5e remove redundant sort
Signed-off-by: dddddai <dddwq@foxmail.com>
2021-12-17 10:24:33 +08:00
Garrybest 09958a3b43 add test for TestDivideReplicasByTargetCluster
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-17 09:57:36 +08:00
Garrybest f282e96493 fix panix in DivideReplicasByTargetCluster
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-17 09:57:20 +08:00
karmada-bot c30cc5d9b4
Merge pull request #1112 from ctripcloud/configurable-cachesync-timeout
set default for clusterCacheSync timeout and make it configurable
2021-12-17 09:46:24 +08:00
karmada-bot 5ea1b035ed
Merge pull request #1114 from iawia002/override-rules
Implementing the new OverrideRules
2021-12-17 09:28:23 +08:00
prodan 4dd187ba43 kubectl-karmada add init Command
Signed-off-by: prodan <pengshihaoren@gmail.com>
2021-12-16 21:46:09 +08:00
Xinzhao Xu 2de0290aab Implementing the new OverrideRules
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-12-16 21:36:21 +08:00
jingxueli 0aec855964 set default for clusterCacheSync timeout and make it configurable
Signed-off-by: jingxueli <jingxueli@trip.com>
2021-12-16 21:28:04 +08:00
jingxueli b081f35cab retain ownerReferences before update clusterObj
Signed-off-by: jingxueli <jingxueli@trip.com>
2021-12-16 17:24:51 +08:00
karmada-bot 5e6d213012
Merge pull request #1110 from lonelyCZ/print-column
Add more printcolumn for rb, crb and work when executing kubectl get
2021-12-15 20:30:22 +08:00
lonelyCZ ff40417721 Add more printcolumn for rb, crb and work
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-12-15 15:51:43 +08:00
RainbowMango 4b456ea89e Enhanced override policy for easily define all overrides for single resources
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-12-15 10:47:28 +08:00
Xinzhao Xu 8d44a628f4 Cleanup names package
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-12-13 17:35:08 +08:00
Xinzhao Xu 26ea1ab297 Introduce ResourceConflictResolution annotation to control the strategy for managing resources with the same name
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-12-11 10:23:56 +08:00
karmada-bot 3a743aaaa9
Merge pull request #1060 from mrlihanbo/FullyApplied
update FullyApplied condition after aggregating works status
2021-12-10 17:43:18 +08:00
lihanbo c07b6ce2dd update FullyApplied condition
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-12-10 17:16:05 +08:00
karmada-bot a1f88d1bbf
Merge pull request #1073 from iawia002/fix-log
Print pointer variables correctly in the scheduler log
2021-12-08 09:24:14 +08:00
Garrybest 4acb5aee8a add new test of division algorithm
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-07 10:30:33 +08:00
Garrybest 60c3f31897 delete scale scheduling
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-07 10:03:18 +08:00
Garrybest eb0dac3a68 merge scale scheduling with normal scheduling
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-07 10:02:58 +08:00
karmada-bot 09c04490bc
Merge pull request #988 from mrlihanbo/schedule-condition
update Scheduled conditon when failed scheduling
2021-12-07 09:18:14 +08:00
Xinzhao Xu 691d6ef1a1 Print pointer variables correctly in the scheduler log
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-12-06 20:58:38 +08:00
RainbowMango e87a3eadea Add more comment on AsyncWorker
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-12-06 15:47:19 +08:00
Garrybest 7445bd90da fix slow enqueue of async worker
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-04 19:44:33 +08:00
lonelyCZ 8d11956649 update error report when cluster already exist
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-12-02 23:19:12 +08:00
lihanbo 435f32cc4d update Scheduled conditon when failed scheduling
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-12-02 17:53:53 +08:00
karmada-bot 7d10d979e0
Merge pull request #1030 from Garrybest/pr_metrics
add metrics for scheduler estimator
2021-12-02 11:14:08 +08:00
Garrybest e2e9a503b7 add metrics for scheduler estimator
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-02 10:16:28 +08:00
huangminjie 80467aea48 feature: change namespace filter rule
some namespaces(like karmada-test, karmada-dev, etc.) will be propagated

Signed-off-by: huangminjie <minjie.huang@daocloud.io>
2021-12-01 16:19:11 +08:00
karmada-bot 763a50ef3c
Merge pull request #946 from gy95/karmadactl
cleanup karmada ctl code
2021-11-30 16:33:08 +08:00
guoyao 3672d6d0a3 cleanup karmada ctl code
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-30 14:36:23 +08:00
karmada-bot 6dfa010d35
Merge pull request #1041 from lonelyCZ/taint_test
Add UT for karmadactl taint
2021-11-30 09:46:08 +08:00
lonelyCZ d40c33b75b Add UT for karmadactl taint
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-11-29 19:44:00 +08:00
karmada-bot 668eaee05b
Merge pull request #967 from dddddai/sched-type
Refactor schedule type
2021-11-29 18:07:06 +08:00
guoyao 5bf9e4094a add ut for AggregateErrors
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-27 17:14:57 +08:00
dddddai b94580a33e refactor schedule type
Signed-off-by: dddddai <dddwq@foxmail.com>
2021-11-27 10:46:42 +08:00
karmada-bot f0f0bad9e7
Merge pull request #889 from lonelyCZ/karmadactl-taint
Implement karmadactl taint to add taints into a cluster
2021-11-27 09:23:06 +08:00
lonelyCZ ab0b74d72b Implement karmadactl taint to add taints into a cluster
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-11-26 18:05:24 +08:00
karmada-bot 7e35f9cc26
Merge pull request #1031 from pigletfly/fix-retry-on-update-status
Add retry on update status
2021-11-26 17:02:05 +08:00
karmada-bot ce7d278977
Merge pull request #932 from mrlihanbo/cluster_status_condition
add conditions for cluster status
2021-11-26 14:37:06 +08:00
karmada-bot 84d4a4592d
Merge pull request #1034 from Garrybest/pr_job_status
add startTime and completionTime in job status
2021-11-26 11:30:04 +08:00
guoyao 91e3b53fd0 add unit test for functions of generating names
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-26 08:34:46 +08:00
Garrybest 5195d93ec4 add startTime and completionTime in job status
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-25 21:50:36 +08:00
karmada-bot ba5b44aee2
Merge pull request #1029 from iawia002/cluster-api-v1beta1
Support for the cluster-api v1beta1 version
2021-11-25 21:32:03 +08:00
lihanbo 2131ec5189 add conditions for cluster status
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-11-25 21:23:15 +08:00
karmada-bot aa25d85653
Merge pull request #957 from Garrybest/bug-fix
optimize ResourceList in resource.go
2021-11-25 21:05:04 +08:00
Garrybest efe46b3e50 adapt optimizing ResourceList to avoid nil pointer
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-25 20:37:12 +08:00
Garrybest d45dcbf7ab optimize ResourceList
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-25 20:37:10 +08:00
karmada-bot 76c7514724
Merge pull request #1025 from 2hangchen/feat_providerwithjoin
Specify the provider manually.
2021-11-25 20:36:03 +08:00
Pilipalaca 0322139e62 feat: can specify the provider manually
Signed-off-by: Pilipalaca <85749695@qq.com>

change the params

Signed-off-by: Pilipalaca <85749695@qq.com>
2021-11-25 20:02:12 +08:00
pigletfly 39985d5dbe Add retry on update status
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-11-25 19:55:03 +08:00
karmada-bot 19cb59cebf
Merge pull request #1014 from BDXGD/opt
Optimization the process of getting PropagationPolicy with higher priority
2021-11-25 19:18:04 +08:00
xinjie xu c5539fd153 optimization the process of getting PropagationPolicy with higher priority
Signed-off-by: xinjie xu <1912747539@qq.com>
2021-11-25 18:32:11 +08:00
karmada-bot ac2e59d8fb
Merge pull request #1006 from XiShanYongYe-Chang/detet-todo-logic
delete the TODO logic with binding labels
2021-11-25 17:53:03 +08:00
Xinzhao Xu 29f10db1dd Support for the cluster-api v1beta1 version
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-11-25 16:58:14 +08:00
karmada-bot b35d2e0f5a
Merge pull request #1024 from eightzero/dev
ignore configv1alpha1 group in detector
2021-11-25 15:29:03 +08:00
eightzero a5c8aa905e ignore configv1alpha1 group in detector
Signed-off-by: eightzero <ieightzero@icloud.com>
2021-11-25 10:18:37 +08:00
karmada-bot 34ed1f7741
Merge pull request #1011 from lonelyCZ/global-option
Remove ClusterNamespace from GlobalCommandOptions
2021-11-25 09:11:10 +08:00
karmada-bot ccf2762400
Merge pull request #990 from iawia002/rm-k8s-dep
Lift some utils code from the k/k repo to avoid relying on it
2021-11-24 20:18:17 +08:00
changzhen 4e6400ade3 add config v1alpha1 schemes to gclient
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-24 15:20:24 +08:00
pigletfly 42ed6dfbc4 Fix generate rb key
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-11-24 10:25:29 +08:00
karmada-bot ff928761fd
Merge pull request #1003 from JarHMJ/fix/fix_name_hash
fix: fix GenerateBindingReferenceKey bug
2021-11-24 09:23:12 +08:00
huangminjie f30c2afee0 fix: fix GenerateBindingReferenceKey bug
Signed-off-by: huangminjie <minjie.huang@daocloud.io>
2021-11-23 19:47:28 +08:00
lihanbo df925c7171 support update object annotations
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-11-23 19:10:47 +08:00