Commit Graph

956 Commits

Author SHA1 Message Date
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
lonelyCZ b634297edf Remove ClusterNamespace from GlobalCommandOptions
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-11-23 16:49:43 +08:00
karmada-bot d40d559747
Merge pull request #978 from BDXGD/dev
Logic patch for dividing remaining replicas to clusters
2021-11-23 11:40:12 +08:00
changzhen 033de2de9f delete the TODO logic with binding labels
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-22 17:41:55 +08:00
karmada-bot 3a8c15ccfd
Merge pull request #987 from iawia002/clean-unused-lister
Remove unused policyLister in the genericScheduler
2021-11-22 10:52:11 +08:00
karmada-bot 42882cd8a0
Merge pull request #940 from lonelyCZ/remove-klog-error
Clean klog errorf in karmadactl
2021-11-22 10:34:10 +08:00
RainbowMango a6f5dea67b Fix panic: invalid memory address or nil pointer dereference
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-20 20:45:22 +08:00
changzhen 7224234a74 Update resourece interpreter pkg/file name and variable/parameter/comment naming
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-20 17:48:00 +08:00
Kevin Wang f8af0363f6 Update resource interpreter api (aka. explorewebhook)
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
2021-11-20 14:59:52 +08:00
Xinzhao Xu 0859129968 Lift some utils code from the k/k repo to avoid relying on it
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-11-19 16:36:41 +08:00
Xinzhao Xu 953537d1fb Remove unused policyLister in the genericScheduler
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-11-19 15:13:08 +08:00
guoyao 69f990bf56 add unit test for webhook validation
Signed-off-by: guoyao <1015105054@qq.com>

Signed-off-by: guoyao <1015105054@qq.com>
2021-11-19 15:11:09 +08:00
xinjie xu 804bbed87c logic patch for calculating desireReplicaInfos
Signed-off-by: xinjie xu <1912747539@qq.com>
2021-11-18 21:04:06 +08:00
changzhen c755dc039a add retion explorer webhook call
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-18 20:59:09 +08:00
guoyao 81f6cb939b add retaining webhook
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-18 16:08:39 +08:00
karmada-bot 8fd235f12e
Merge pull request #982 from XiShanYongYe-Chang/adapt-adding-ObservedObject
adapt ObservedObject adding in resource explore webhook
2021-11-18 14:49:05 +08:00
changzhen fb39ed5aa0 adapt ObservedObject adding in resource explore webhook
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-18 12:25:03 +08:00
karmada-bot 02c72b5206
Merge pull request #908 from learner0810/add_karmadactl_get_example
add karmadactl get -h example
2021-11-18 10:23:05 +08:00
zhongjun.li aea3f8886a add karmadactl get example
Signed-off-by: zhongjun.li <zhongjun.li@daocloud.io>
2021-11-18 09:53:53 +08:00
RainbowMango f9cb085224 Add ObservedObject field to ExploreRequest
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-17 20:09:20 +08:00
RainbowMango 41568dcf51 Enable default custom resource retaintion
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-17 16:06:36 +08:00
karmada-bot abd117c702
Merge pull request #975 from Phil-sun/master
update work version in get.go
2021-11-17 15:20:03 +08:00
karmada-bot 876631801c
Merge pull request #965 from wzshiming/fix/get-secret
pkg/util/secret: Fix GetTargetSecret
2021-11-17 14:59:03 +08:00
Phil-sun 78223a2aae update work version in get.go
Signed-off-by: Phil-sun <sunxh0000@163.com>
2021-11-17 13:48:24 +08:00
karmada-bot 73f68c3a5c
Merge pull request #971 from XiShanYongYe-Chang/hook-handler-interface
Add Hook handler interface
2021-11-16 18:42:02 +08:00
changzhen 0acd626d1b add hook handler interface
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-16 17:51:20 +08:00
RainbowMango 584bf4d256 Set background cacscade deletion by default
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-16 11:39:57 +08:00
RainbowMango 6383593d8f Add status of explore response
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-15 20:40:52 +08:00
lonelyCZ 529c907d93 Clean klog errorf in karmadactl
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-11-15 18:30:20 +08:00
RainbowMango 75a6bc51bf Rename ExploreReview status to rawstatus
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-15 16:17:42 +08:00
Shiming Zhang 6c7cb9b51e pkg/util/secret: Fix GetTargetSecret
Signed-off-by: Shiming Zhang <wzshiming@foxmail.com>
2021-11-15 15:51:49 +08:00
guoyao 94227b33b4 add more validations for cluster name
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-15 15:08:16 +08:00
guoyao ae34e4d1b8 unify IsNodeReady function
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-15 11:35:03 +08:00
changzhen d81f6e81ce hooks matching and sending requests to webhook
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-15 10:34:18 +08:00
RainbowMango 5cb0fc2635 Add generated files
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-11-13 20:09:07 +08:00
RainbowMango dc142d22eb Define webhook rules by ourself
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-13 20:09:07 +08:00
RainbowMango df20347e3b Fix job can not schedule issue.
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-12 20:08:29 +08:00
karmada-bot c67874689e
Merge pull request #951 from RainbowMango/pr_enable_explorer
Setup custom resource explorer
2021-11-12 19:26:32 +08:00
RainbowMango 9e7fde6ab9 Setup custom resource explorer
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-12 17:11:24 +08:00
karmada-bot 1e4ce8a509
Merge pull request #941 from XiShanYongYe-Chang/resource-explore-validate
Add the validation for ResourceExploringWebhookConfiguration
2021-11-12 16:39:31 +08:00
karmada-bot 48c2bfb839
Merge pull request #898 from Garrybest/pr_job
support job scheduling
2021-11-12 09:17:32 +08:00
changzhen c4a6c03c99 add the validation for ResourceExploringWebhookConfiguration creation
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-11 15:04:09 +08:00
karmada-bot f7f53ee13f
Merge pull request #934 from XiShanYongYe-Chang/resource-explore-interface
Add interface design for Resource Explore Webhook
2021-11-11 14:50:16 +08:00
changzhen ea3d5620cd add interface design for resource explore
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-11 14:23:35 +08:00
guoyao 193e00d832 continue try to get resource when not found
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-10 15:58:43 +08:00
changzhen 0005cb6ce6 modify resourceexploringwebhookconfigurations to cluster scope
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-09 20:38:49 +08:00
Garrybest 47a6823afa support job scheduling
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-09 14:29:34 +08:00
guoyao b22da790ea cleanup some codes
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-08 20:43:39 +08:00
karmada-bot d0a7a9ac7e
Merge pull request #933 from gy95/continue
remove orphan works failed cannot print successful logs
2021-11-08 16:19:22 +08:00
karmada-bot ccf78c1c70
Merge pull request #891 from Garrybest/pr_dynamic_weight
divide replicas weighted by AvailableReplicas
2021-11-08 15:41:55 +08:00
guoyao fc578cc496 remove orphan works failed cannot print successful logs
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-08 14:55:26 +08:00
karmada-bot 9d31827a4b
Merge pull request #925 from pigletfly/refactor-object-watcher
refactor object watcher interface
2021-11-08 11:39:42 +08:00
karmada-bot c3ca381cf5
Merge pull request #931 from iawia002/fix-comment
Update the comments of the FeatureGate instance
2021-11-08 11:16:34 +08:00
karmada-bot a21f369bd7
Merge pull request #910 from wawa0210/cleanup-muti-err
[Trival] remove muti error return when cordon.PatchOrReplace
2021-11-08 10:45:37 +08:00
Xinzhao Xu 3d8635f142 Update the comments of the FeatureGate instance
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-11-08 10:33:53 +08:00
karmada-bot 36d6174b5f
Merge pull request #899 from RainbowMango/pr_config_api
Add custom resource webhook API
2021-11-08 09:07:40 +08:00
wawa0210 e14ac56e58
clean up muti-err return
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
2021-11-07 09:32:24 +08:00
Garrybest d01fccfd3b add division algorithm test
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-06 22:39:57 +08:00
Garrybest a29f3f7a50 divide replicas by dynamic weight
Signed-off-by: Garrybest <garrybest@foxmail.com>
Co-authored-by: junqian <junqian@tencent.com>
2021-11-06 22:38:57 +08:00
karmada-bot 3d19af85a0
Merge pull request #928 from dddddai/skip-event
Skip propagating events by default
2021-11-06 20:36:29 +08:00
dddddai 795ad5bd40 skip propagating events by default
Signed-off-by: dddddai <dddwq@foxmail.com>
2021-11-06 19:58:04 +08:00
pigletfly dac00692e7 refactor object watcher interface
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-11-05 23:26:51 +08:00
iawia002 98ee6ce938 Introduce feature gates for the scheduler component
Signed-off-by: iawia002 <z2d@jifangcheng.com>
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-11-05 21:03:02 +08:00
karmada-bot 51c911a60b
Merge pull request #894 from mrlihanbo/cluster_status_bugfix
add Timeout in WaitForCacheSync
2021-11-05 15:48:04 +08:00
lihanbo ac3878ec03 add Timeout in WaitForCacheSync
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-11-05 13:50:30 +08:00
karmada-bot 9f2835d3f2
Merge pull request #895 from mrlihanbo/queue_bugfix
prevent empty key from queue
2021-11-05 12:00:32 +08:00
RainbowMango bcd0575309 Add generated files
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-05 12:00:30 +08:00
RainbowMango ac72399c78 Add custom resource webhook API
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-05 12:00:30 +08:00
lihanbo cc0f6ed08b return nil when the obj not managed by Karmada in work status controller
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-11-05 11:33:58 +08:00
Garrybest 561474f652 change StaticWeightList to optional
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-04 09:42:03 +08:00
karmada-bot a6fd93fd23
Merge pull request #907 from lonelyCZ/remove-cordon-log
Remove klog from karmadactl cordon
2021-11-03 11:10:28 +08:00
lonelyCZ bc0250aa1c Remove klog from karmadactl cordon
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-11-02 22:29:56 +08:00
Garrybest a3e1b597c0 add object reference when calling gRPC
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-02 22:25:12 +08:00
karmada-bot 20255d148c
Merge pull request #904 from learner0810/clean_up
remove propagationpolicy controller
2021-11-02 19:07:04 +08:00
zhongjun.li a31708ae46 propagationpolicy clean up
Signed-off-by: zhongjun.li <zhongjun.li@daocloud.io>
2021-11-02 18:02:32 +08:00
algebra2k 4df8f92b0f
fix: tips for karmadactl help options
Signed-off-by: algebra2k <jackson.cloudnative@gmail.com>
2021-11-02 16:52:05 +08:00
lonelyCZ 221a8ad61b replace err report with RunE
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-11-01 23:28:10 +08:00
wawa0210 78603cc2c7
Introduce --wait flag for karmada join or unjoin command
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
2021-11-01 00:10:26 +08:00
wawa0210 a47fdfd73d
Extract join| unjoin parameters and pass struct to avoid too many parameters in the signature
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
2021-10-30 13:05:10 +08:00
karmada-bot e6d7ce369d
Merge pull request #885 from yvoilee/patch-1
fix: stop informer manager Instance once
2021-10-30 11:26:22 +08:00
Leo f698881e1f
fix: stop informer manager Instance once
Signed-off-by: yvoilee <yvoilee@gmail.com>
2021-10-29 18:20:35 +08:00
karmada-bot 085fdd23c0
Merge pull request #841 from Garrybest/pr_dispersal
add dispersal replica division preference
2021-10-29 13:16:09 +08:00
Kevin Wang 2b79b31131
Update pkg/apis/policy/v1alpha1/replicascheduling_types.go
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
2021-10-29 12:49:12 +08:00
duguhaotian ef8b6fe138 get secret from namespace which cluster in
Signed-off-by: duguhaotian <knowledgehao@163.com>
2021-10-29 03:05:53 +01:00
Garrybest 079778ed87 add dispersal replica division preference
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-10-28 20:53:29 +08:00
wawa0210 a87b3ca1e8
remove hpa works object as much as possible
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
2021-10-28 08:33:27 +08:00
karmada-bot 76ee54f2a3
Merge pull request #867 from iawia002/fix-lint
Update .golangci.yml file to include comments check rule
2021-10-27 09:31:36 +08:00
karmada-bot aed2e8ce66
Merge pull request #865 from wawa0210/fix-removeendpointslice
ignore NotFound error when deleting EndpointSlice
2021-10-26 16:38:27 +08:00
iawia002 10f17e1eec Update .golangci.yml file to include comments check rule
Signed-off-by: iawia002 <z2d@jifangcheng.com>
2021-10-26 11:41:28 +08:00
karmada-bot 0cb3ad6a01
Merge pull request #866 from XiShanYongYe-Chang/enlarge-waiting-time
enlarge waiting time in unjoin cluster process
2021-10-26 11:12:26 +08:00
changzhen e16d435c83 enlarge waiting time in unjoin cluster process
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-10-26 10:31:58 +08:00
zhongjun.li d8483eeffc clean up
Signed-off-by: zhongjun.li <zhongjun.li@daocloud.io>
2021-10-26 09:42:11 +08:00
wawa0210 597abca96e
Delete EndpointSlice should consider the situation that it no longer exists
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
2021-10-25 21:18:42 +08:00
karmada-bot 23793e37f7
Merge pull request #852 from XiShanYongYe-Chang/upgrade-k8s-version
upgrade testing k8s version to v1.20.11
2021-10-22 15:47:09 +08:00
changzhen ac42c00cc4 upgrade k8s version to v1.20.11
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-10-22 15:21:54 +08:00
karmada-bot 0dda841f03
Merge pull request #850 from gf457832386/gaofei/deletecomments
remove outdated comment
2021-10-22 15:07:12 +08:00
haozi007 d10da4f1db fix return invalid error
Signed-off-by: duguhaotian <knowledgehao@163.com>
2021-10-22 04:41:51 +01:00
gf457832386 a8a76bbbcf delete comment
Signed-off-by: gf457832386 <13278887558@163.com>
2021-10-22 11:10:18 +08:00
karmada-bot 4ac02a613f
Merge pull request #808 from RainbowMango/pr_nominate_owners
nominate approvers and reviewers
2021-10-22 10:46:09 +08:00
karmada-bot 765f0b4b04
Merge pull request #845 from mrlihanbo/bugfix-cluster-status
collect status even if cluster's deletionTimestamp is not zero
2021-10-22 09:19:09 +08:00
karmada-bot 9eaba3e1b0
Merge pull request #825 from lonelyCZ/add_binding_fullyapplied
Add FullyApplied to binding
2021-10-21 14:32:08 +08:00