Commit Graph

243 Commits

Author SHA1 Message Date
pigletfly 957be91796 Fix controller reconcile concurrent
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-02-24 15:54:14 +08:00
Garrybest 513071d9eb add karmada-descheduler test
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-02-24 11:43:38 +08:00
Garrybest 85d8a6ccf4 add karmada-descheduler
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-02-24 11:43:28 +08:00
Garrybest 90900309ca implement GetUnschedulableReplicas for estimator
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-02-23 14:19:51 +08:00
RainbowMango bff2eb9024 Adopt k/k API/interface changes
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-02-19 21:16:32 +08:00
karmada-bot f29eede546
Merge pull request #1346 from mrlihanbo/webhook-health
Introduce `--metrics-bind-address` and `--health-probe-bind-address` flags to `karmada-webhook`
2022-02-11 09:49:49 +08:00
changzhen eeee662a05 modify the kubeconfig description of the executable file
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-02-10 16:05:52 +08:00
RainbowMango 9af89e6fc2 Update --metrics-bind-address usage description
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-02-10 15:04:33 +08:00
lihanbo 2d8a1c485d make MetricsBindAddress and HealthProbeBindAddress configurable
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2022-02-10 15:03:09 +08:00
karmada-bot 0b257a724a
Merge pull request #1336 from carlory/karmada-config
deprecate --master and --karmada-config flags for aggregrated-apiserver
2022-02-10 14:59:48 +08:00
carlory 679081c8be deprecate --master and --karmada-config flags for karmada-aggregrated-apiserver
Signed-off-by: carlory <baofa.fan@daocloud.io>
2022-02-09 21:19:26 +08:00
pigletfly 98ae69139f Add metrics-addr to expose prometheus metrics
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2022-02-09 18:07:49 +08:00
karmada-bot 0d4baebde9
Merge pull request #1320 from kerthcet/bug/flush-in-webhook
bug: webhook's os.Exit will not wait for the defer function
2022-02-03 16:23:40 +08:00
karmada-bot 4ce5eb233a
Merge pull request #1319 from kerthcet/bug/flush-in-estimator
bug: estimator's os.Exit will not wait for the defer function
2022-02-03 16:21:40 +08:00
karmada-bot 98b5b1f048
Merge pull request #1318 from kerthcet/bug/flush-in-kubectl-karmada
bug: kubectl karmada's os.Exit will not wait for the defer function
2022-01-30 15:43:36 +08:00
karmada-bot a2959f1dae
Merge pull request #1317 from kerthcet/bug/flush-in-karmadactl
bug: karmadactl's os.Exit will not wait for the defer function
2022-01-29 10:14:34 +08:00
karmada-bot a20f145724
Merge pull request #1316 from kerthcet/bug/flush-in-controllermanger
bug: controller-manager's os.Exit will not wait for the defer function
2022-01-28 10:41:37 +08:00
kerthcet 5a390f58d9 bug: estimator's os.Exit will not wait for the defer function
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-01-28 10:18:54 +08:00
kerthcet ac8d271261 bug: webhook's os.Exit will not wait for the defer function
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-01-28 10:17:38 +08:00
kerthcet 98842ed756 bug: controller-manager's os.Exit will not wait for the defer function
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-01-28 10:07:54 +08:00
karmada-bot 3cbc342371
Merge pull request #1315 from kerthcet/bug/flush-in-aggregated-apiserver
bug: aggregated-apiserver's os.Exit will not wait for the defer function
2022-01-28 08:55:33 +08:00
kerthcet 8829c18208 bug: kubectl karmada's os.Exit will not wait for the defer function
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-01-25 21:23:48 +08:00
kerthcet 29020d6ca6 bug: karmadactl's os.Exit will not wait for the defer function
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-01-25 19:14:21 +08:00
kerthcet b7a3a18985 bug: aggregated-apiserver's os.Exit will not wait for the defer function
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-01-25 18:58:23 +08:00
kerthcet be6020749f bug: agent's os.Exit will not wait for the defer function
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-01-25 18:41:19 +08:00
karmada-bot 85554ff187
Merge pull request #1261 from Garrybest/pr_slow
Introduce `--resync-period` flag to specify reflector resync period
2022-01-25 15:40:30 +08:00
karmada-bot 008a54e3a0
Merge pull request #1289 from kerthcet/feature/exit-will-not-flush-logs
os.Exit will not wait for the defer function
2022-01-24 23:03:30 +08:00
kerthcet e80354175a os.Exit will not wait for the defer function
Signed-off-by: kerthcet <kerthcet@gmail.com>
2022-01-24 11:57:34 +08:00
Garrybest 012f0ca1de add resync period option
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-01-22 09:36:28 +08:00
karmada-bot 7c78d03c3b
Merge pull request #1265 from Garrybest/pr_resync
stop resync for controllers
2022-01-21 09:00:26 +08:00
carlory 403de9cbd3 introduce --tls-min-version flag to karmada-webhook
Co-authored-by: Hongcai Ren <renhongcai@huawei.com>
Signed-off-by: carlory <baofa.fan@daocloud.io>
2022-01-19 16:09:34 +08:00
Garrybest cae54335cf set resync period to 0
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-01-17 10:17:21 +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
carlory 8f019269b0 aggregatedapiserver support openapi
Signed-off-by: carlory <baofa.fan@daocloud.io>
2022-01-10 10:41:26 +08:00
carlory 1e211873f7 add code comments for the karmada-controller-manager options
Signed-off-by: carlory <baofa.fan@daocloud.io>
2022-01-02 11:50:18 +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
changzhen 05722acfc0 add impersonatorSecretRef for cluster object
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-12-29 11:08:13 +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
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
RainbowMango b582a380e1 Put lonelyCZ on the owner list
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-12-25 16:09:29 +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
changzhen c9a2a70cb8 add ClusterProxyOptions for Cluster
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-12-24 15:19:53 +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
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 98390f5615
Merge pull request #1133 from RainbowMango/pr_add_owners
Add Garrybest on the owner list of karmada-scheduler-estimator
2021-12-21 10:03:28 +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
RainbowMango 737062dedd Add Garrybest on the owner list of karmada-scheduler-estimator
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-12-20 20:26:15 +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
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
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 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
lonelyCZ b8d46597a9 Implementing karmada-webhook of validating OverridePolicy
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-12-18 12:42:22 +08:00
Xinzhao Xu 250c8001cd controller-manager: automatically generate all controllers list in flag
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-12-17 11:51:49 +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
zhangyukun fb06180911 Enhancement --controllers flag of karmada-controller-manager
Signed-off-by: zhangyukun <38148677+jameszhangyukun@users.noreply.github.com>
2021-12-16 14:30:46 +08:00
Xinzhao Xu 1e9c24d667 Optimize the controllers flag
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-12-09 18:09:40 +08:00
jingxueli 08182cf774 add flag `--controllers`: a list of controllers to enable
Signed-off-by: jingxueli <jingxueli@trip.com>
2021-12-09 16:27:26 +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 ec60c2d103
Merge pull request #952 from feeltimeQ/add_karmada-wehook_flags_verification_logic
add karmada-wehook flags verification logic
2021-11-29 09:31:06 +08:00
Garrybest bc67417303 clean up metrics package init
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-25 10:33:33 +08:00
qulifeng 7021e278c0 add karmada-wehook flags verification logic
Signed-off-by: qulifeng <lifeng.qu@daocloud.io>
2021-11-23 10:34:06 +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
karmada-bot 5e8b6a48a2
Merge pull request #997 from gy95/hostport
using net.JoinHostPort to generate a network address
2021-11-20 19:54:07 +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
guoyao d563b179cd using net.JoinHostPort to generate a network address
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-20 15:44:09 +08:00
lonelyCZ 8efa566b7c add unit tests for cmd/... in ci
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-11-19 20:32:51 +08:00
Garrybest 19920acfb3 fix issue of scheduler-estimator exit
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-19 09:59:01 +08:00
guoyao 81f6cb939b add retaining webhook
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-18 16:08:39 +08:00
karmada-bot 0260049624
Merge pull request #962 from jameszhangyukun/validation-test-scheduler-estimator
add validation test for scheduler-estimator
2021-11-16 09:05:02 +08:00
jameszhangyukun 20483de82f add validation test for a scheduler-estimator and refactor the validation of scheduler-estimator
Signed-off-by: jameszhangyukun <1481815567@qq.com>

add validation test for a scheduler-estimator and refactor the validation of scheduler-estimator
2021-11-15 19:16:09 +08:00
lonelyCZ 529c907d93 Clean klog errorf in karmadactl
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-11-15 18:30:20 +08:00
Charlie17Li 83dabcf92f
add validation test for controller-manager and refactor the validation of controller-manager (#960)
Signed-off-by: charlie <qianglin98@qq.com>
2021-11-15 17:45:01 +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
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
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 80df5e66c1
Merge pull request #930 from wawa0210/add-agent-flag-validate
add agent flag validate
2021-11-09 22:20:03 +08:00
guoyao b22da790ea cleanup some codes
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-08 20:43:39 +08:00
wawa0210 e9265bfb4c
add agent flag validate
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
2021-11-07 20:22:48 +08:00
wawa0210 84cd4103c4
The command exits abnormally without outputting stack information
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
2021-11-07 09:10:30 +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
youhonglian 17bdefc8fb add controller-manager parameter validation
Signed-off-by: youhonglian <honglian.you@daocloud.io>
2021-11-05 13:54:39 +08:00
karmada-bot 87a3ac59d5
Merge pull request #911 from learner0810/fix/skipped-propagating-apis_not_take_effect
fix skipped-propagating-apis not take effect
2021-11-04 09:00:55 +08:00
zhongjun.li 29a8608bfa fix/skipped-propagating-apis_not_take_effect
Signed-off-by: zhongjun.li <zhongjun.li@daocloud.io>
2021-11-03 10:18:02 +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
lonelyCZ 221a8ad61b replace err report with RunE
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-11-01 23:28:10 +08:00
zhongjun.li ecce805dc8 add_controller_manager_config_validation
Signed-off-by: zhongjun.li <zhongjun.li@daocloud.io>
2021-10-29 17:07:58 +08:00
karmada-bot 0ab7333782
Merge pull request #831 from Garrybest/pr_metrics
add work queue metrics for agent and controller-manager
2021-10-20 21:10:08 +08:00
changzhen 27558d5a51 move detector directory from pkg/util/ to pkg/
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-10-20 10:21:08 +08:00
Garrybest 5d4afd2a42 add work queue metrics for agent and controller-manager
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-10-19 12:16:32 +08:00
dddddai 65071d1e64 fetch control plane workload from cache instead of api server
Signed-off-by: dddddai <dddwq@foxmail.com>
2021-10-15 17:33:25 +08:00