Commit Graph

2149 Commits

Author SHA1 Message Date
xin.li 662be91548 feat: add param of force for addon disable
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-03-20 10:02:16 +08:00
karmada-bot 40c202b937
Merge pull request #3288 from xigang/bugfix/gvk
bugfix: runtime.Object apiVersion/kind is empty
2023-03-17 15:27:21 +08:00
karmada-bot 67e9a5c3de
Merge pull request #3279 from XiShanYongYe-Chang/search-proxy-unifiedauth
implementing search proxy unifiedauth
2023-03-17 15:11:21 +08:00
xigang a45711bb4b Add runtime.Object apiVersion/kind is empty check
Signed-off-by: xigang <wangxigang2014@gmail.com>
2023-03-17 13:09:35 +08:00
changzhen ada76ab7b7 implementing search proxy unifiedauth
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-03-17 10:10:18 +08:00
karmada-bot 2fb2a84ab4
Merge pull request #3285 from yanggangtony/fix-schedule-logs
Fix wrong logs for pkg/scheduler/event_handler.go
2023-03-16 18:38:20 +08:00
yanggang 49fa066e7b
Fix wrong logs for pkg/scheduler/event_handler.go
Signed-off-by: yanggang <gang.yang@daocloud.io>
2023-03-16 17:39:46 +08:00
karmada-bot 7f5bb9dde6
Merge pull request #3221 from yanfeng1992/wait-dep-sts-rollout
check deployment statefulset rollout not use check pod ready
2023-03-16 17:39:20 +08:00
huangyanfeng fd062cecab check deployment statefulset rollout not use check pod ready
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2023-03-16 16:39:43 +08:00
karmada-bot 21bb60e84f
Merge pull request #3278 from whitewindmills/unit-test
remove redundant conversion functions
2023-03-15 14:35:18 +08:00
whitewindmills e9adba5275 remove redundant conversion functions
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-03-15 11:28:28 +08:00
karmada-bot 3670705964
Merge pull request #3274 from whitewindmills/unit-test
add prune test
2023-03-14 20:34:19 +08:00
whitewindmills f2d5b9343b add prune test
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-03-14 18:16:06 +08:00
karmada-bot 50cb376acd
Merge pull request #3269 from yanggangtony/cmd-get
Delete redundance code for pkg/karmadactl/get/get.go
2023-03-14 11:33:18 +08:00
karmada-bot 31435bf7f2
Merge pull request #3239 from ctripcloud/merge-lables
merge labels when building RB/CRB by ClusterPropagationPolicy
2023-03-13 16:58:18 +08:00
yanggang e9ff441c7c
Delete redundance code for pkg/karmadactl/get/get.go
Signed-off-by: yanggang <gang.yang@daocloud.io>
2023-03-13 16:25:35 +08:00
karmada-bot fff859dc9a
Merge pull request #3237 from my-git9/karmadactl-pullsecret
karmadactl: add image pull secret flags for karmadactl init
2023-03-13 10:20:17 +08:00
xin.li 0065f18e28 feat: add image pull secret flags for karmadactl init
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-03-12 18:10:46 +08:00
karmada-bot 6dc431deca
Merge pull request #3256 from chaunceyjiang/stringlib
feat: Add a lua string and math lib to the resource interpreter.
2023-03-11 18:09:16 +08:00
chaunceyjiang c395519b14 feat: add string and math lib for lua
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-03-10 11:45:43 +08:00
changzhen a4753cd77c add generation for cluster object
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-03-09 15:05:10 +08:00
karmada-bot b77fc205d1
Merge pull request #3242 from RainbowMango/pr_explain_fieldselector
Add more comments about filed selector in cluster affinity
2023-03-08 09:13:13 +08:00
karmada-bot 1a1a4b2f37
Merge pull request #3232 from whitewindmills/spreadconstraints-validation
fix bug that spreadconstraints are not validated correctly
2023-03-07 18:48:13 +08:00
whitewindmills ae325b8dd0 fix bug that spreadconstraints are not validated correctly
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-03-07 17:32:01 +08:00
karmada-bot d4ddd6c47c
Merge pull request #3202 from Poor12/add-bindingstatus-controller
Add bindingstatus controller
2023-03-07 17:21:13 +08:00
Poor12 e7f70a00b6 fix issue when cluster fails and recovers
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-03-07 15:39:25 +08:00
RainbowMango 75f27339ce Add more comments about filed selector in cluster affinity.
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-03-07 11:58:22 +08:00
lxtywypc e1eb161b87 merge labels as well when applying cluster propagation policy
Signed-off-by: lxtywypc <lxtywypc@gmail.com>
2023-03-06 11:14:17 +08:00
karmada-bot 613bcf815d
Merge pull request #3229 from whitewindmills/additional-ut
add unit tests for dependency interpretation
2023-03-03 14:43:10 +08:00
karmada-bot 749133794f
Merge pull request #3183 from my-git9/ut-utils-increa
[UT] increase ut coverage for utils/utils.go
2023-03-02 23:09:09 +08:00
xin.li deba6e8ff5 [UT] increase ut coverage for utils/utils.go
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-03-01 21:23:45 +08:00
hejunhua 37cb3dc788 add unit tests for dependency interpretation
Signed-off-by: hejunhua <jayfantasyhjh@gmail.com>
2023-03-01 16:35:15 +08:00
changzhen 313ecd3b2c consider clusteraffinities when scedule with binding
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-02-27 17:11:58 +08:00
karmada-bot 69d330f04c
Merge pull request #3210 from XiShanYongYe-Chang/update-rb-status-conditions-only-after-scheduling
Update the RB condition is updated only after scheduling
2023-02-27 10:38:06 +08:00
karmada-bot 8c402c4d49
Merge pull request #3211 from XiShanYongYe-Chang/modify-judgement-of-placement-changed
Modify judgement of placement changed and consider clusteraffinities
2023-02-27 10:23:08 +08:00
karmada-bot 6a7fbbafd9
Merge pull request #3201 from whitewindmills/fixbug-workname
fix the bug that the work object may contain uppercase characters
2023-02-27 09:31:06 +08:00
changzhen da0664728c the condition is updated only after scheduling
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-02-27 09:27:45 +08:00
changzhen d96296f66b modify judgement of placement changed
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-02-27 09:13:48 +08:00
hejunhua 32af87abef fix the bug that the work object may contain uppercase characters
Signed-off-by: hejunhua <jayfantasyhjh@gmail.com>
2023-02-25 22:46:00 +08:00
changzhen 9ca35d20f4 add bindingStatus in the schedule algorithm interface
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-02-25 17:04:49 +08:00
karmada-bot 03b1f6b3f3
Merge pull request #3192 from Fish-pro/fix/refine
Refine the TestClusterMatches
2023-02-23 17:15:03 +08:00
changzhen eecadfd43a add bindingStatus controller to aggregate work status and update the
status of resource template

Signed-off-by: changzhen <changzhen5@huawei.com>
2023-02-23 16:08:36 +08:00
Zechun Chen 031eef206d Refine the TestClusterMatches
Signed-off-by: Zechun Chen <zechun.chen@daocloud.io>

Co-authored-by: Hongcai Ren <renhongcai@huawei.com>
2023-02-23 16:04:06 +08:00
karmada-bot 03fb8e3809
Merge pull request #3182 from jwcesign/refactor-execution-controller
Refactor execution_controller.go and objectwatcher.go
2023-02-23 15:45:03 +08:00
jwcesign c923705c69 Refactor execution_controller.go
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2023-02-23 14:34:24 +08:00
chaunceyjiang 35f3e3f306 feat: validates the fieldSelector of overridepolicy
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-02-23 11:25:24 +08:00
chaunceyjiang 8fd5d6dc23 feat: validates the fieldSelector of overridepolicy
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-02-22 22:03:52 +08:00
karmada-bot ea497819f0
Merge pull request #3179 from my-git9/ut-format
[UT] Add ut for utils/format.go
2023-02-20 17:45:23 +08:00
xin.li 871b5b49b7 [UT] Add ut for utils/format.go
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-02-20 14:19:06 +08:00
karmada-bot b540174af7
Merge pull request #3157 from jwcesign/fix-GenerateBindingReferenceKey
Make the result unique for GenerateBindingReferenceKey function
2023-02-20 13:19:00 +08:00
karmada-bot dd16753c20
Merge pull request #3156 from lonelyCZ/pr-cert-validity-period
Make the validity period of cert configurable
2023-02-20 12:46:06 +08:00
jwcesign ab94d95e0c Use / as the delimiter
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2023-02-20 11:43:30 +08:00
karmada-bot b1f8b09d07
Merge pull request #3177 from my-git9/ut-assignment
[UT] increase test coverage for core/assignment.go
2023-02-20 11:08:00 +08:00
lonelyCZ 680b05264a Make the validity period of cert configurable
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
2023-02-20 10:55:05 +08:00
karmada-bot 4641e88fd2
Merge pull request #3164 from XiShanYongYe-Chang/add-validation-for-orderedClusterAffinities
add validation for ClusterAffinities
2023-02-18 17:08:59 +08:00
changzhen 42c2e3c643 add validation for orderedClusterAffinities
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-02-18 15:45:44 +08:00
changzhen 45340c358e update ClusterAffinities json name
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-02-18 11:29:18 +08:00
karmada-bot dd0f904081
Merge pull request #3165 from Poor12/refactor-codes
Refactor scheduler interfaces
2023-02-18 10:59:58 +08:00
xin.li 522c55ce79 [UT] increase test coverage for core/assignment.go
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-02-18 07:59:48 +08:00
RainbowMango 6aa3ffd6cf Simply OrderedClusterAffinities API names
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-02-17 16:55:27 +08:00
karmada-bot d21d57d3f5
Merge pull request #3155 from my-git9/ut-kubeconfig2
[UT] improve test for kubeconfig.go
2023-02-17 10:57:58 +08:00
Poor12 a616758eeb refactor some codes
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-02-17 10:41:03 +08:00
xin.li 53a160659c [UT] improve test for kubeconfig.go
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-02-16 21:49:52 +08:00
RainbowMango 5dc94f40fe Extend ResourceBinding by adding the SchedulerObservedAffinityName to the status field.
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-02-16 20:09:12 +08:00
karmada-bot e523977cb0
Merge pull request #3160 from lonelyCZ/pr-fix-update-or-create-token
Fix UpdateOrCreateToken get secrets err handling optimization
2023-02-16 19:05:57 +08:00
karmada-bot 0eb69c1e5e
Merge pull request #3150 from XiShanYongYe-Chang/clean-code-for-collect-clusterID
remove code for collecting clusterID under upgrading
2023-02-16 18:08:57 +08:00
karmada-bot 149197c01d
Merge pull request #3105 from RainbowMango/pr_cluster_priority_api
Propose preferred cluster
2023-02-16 09:46:57 +08:00
lonelyCZ 8b67d22786 Fix UpdateOrCreateToken get secrets err handling optimization
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
2023-02-15 21:26:38 +08:00
changzhen b0fe95d60b remove code for collecting clusterID under upgrading
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-02-14 10:52:06 +08:00
karmada-bot a9089325dc
Merge pull request #3145 from my-git9/ut-template
[UT] add ut for utils/template.go
2023-02-14 10:03:55 +08:00
xin.li b3de611707 [UT] add ut for cmdinit/kubeconfig.og
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-02-13 23:05:41 +08:00
xin.li 4367d8c4b3 [UT] add ut for utils/template.go
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-02-13 20:43:27 +08:00
karmada-bot d1bad846a5
Merge pull request #3141 from chaunceyjiang/cleanup
Replace ""  with NamespaceAll.
2023-02-13 16:56:55 +08:00
RainbowMango 5c30415584 Propose preferred cluster
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-02-13 16:16:42 +08:00
chaunceyjiang 111f6b33e3 Replace "" with NamespaceAll.
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-02-13 14:25:00 +08:00
karmada-bot b36bc65d14
Merge pull request #2702 from Poor12/add-toleration
Add placement for bindingSpec
2023-02-13 11:08:55 +08:00
karmada-bot dbed0f6d79
Merge pull request #3099 from chaunceyjiang/delete_labels_annotataions
feat: support for removing annotations/labels propagated through karmada
2023-02-10 17:14:55 +08:00
chaunceyjiang df43a00e52 feat: support for removing annotations/labels propagated through karmada
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-02-10 16:00:21 +08:00
Poor12 5eff625925 add placement for binding
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-02-10 15:18:01 +08:00
karmada-bot 78c3f35cd5
Merge pull request #3132 from Fish-pro/chore/unittest
Modify unit tests that never fail
2023-02-10 12:36:52 +08:00
karmada-bot 4012538d39
Merge pull request #3137 from my-git9/ut-cmdinit
[UT] add ut for cmdinit/cmdinit.go
2023-02-10 12:21:52 +08:00
karmada-bot 32ed0a4103
Merge pull request #3139 from Poor12/add-scheduler-name-for-metrics
Add schedulerName for event
2023-02-10 12:03:53 +08:00
Fish-pro f888ec07fa Optimize invalid unit tests
Signed-off-by: Fish-pro <zechun.chen@daocloud.io>
2023-02-10 10:59:40 +08:00
karmada-bot 81cac76ac2
Merge pull request #3129 from chaunceyjiang/cronjob
feat: default interpreter supports cronJob aggregate status
2023-02-10 10:05:51 +08:00
Poor12 a4354cad38 add schedulerName for event
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-02-10 09:33:16 +08:00
xin.li 24cc58fcef [UT] add ut for cmdinit/cmdinit.go
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-02-09 21:42:59 +08:00
karmada-bot 57236e5ec3
Merge pull request #3134 from Fish-pro/chore/package
Clean up repeated package import
2023-02-09 17:10:52 +08:00
karmada-bot 69ecff65d8
Merge pull request #3114 from Poor12/test
Detector watch pp fields changed other than resource selector
2023-02-09 16:35:51 +08:00
Fish-pro 108afef91b Clean up the problem of repeated package import
Signed-off-by: Fish-pro <zechun.chen@daocloud.io>
2023-02-09 15:58:22 +08:00
Poor12 9ae3e50ae8 detector watch pp fields changed other than resource selector
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-02-09 15:16:21 +08:00
chaunceyjiang bdf4a61ad1 feat: default interpreter supports cronJon aggregate status
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-02-09 11:03:24 +08:00
karmada-bot 59227f0d4a
Merge pull request #3117 from my-git9/utrbac
[ut] add ut for utils/rbac.go
2023-02-08 16:34:50 +08:00
karmada-bot 5e81ea6240
Merge pull request #3127 from Poor12/fix-aggregate-pod
Fix aggregate pod status when aggregateStatusItems are empty
2023-02-08 10:32:50 +08:00
karmada-bot 7dcb99b8c5
Merge pull request #3115 from VedRatan/issue_3091
Replace Hashsets with Sets
2023-02-07 20:34:50 +08:00
Poor12 f0958340ac fix aggregate pod status
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-02-07 20:27:01 +08:00
Ved Ratan 2a8c0ff267 replace hashsets with sets
Signed-off-by: Ved Ratan <vedratan8@gmail.com>

remove hashset pkg

Signed-off-by: Ved Ratan <vedratan8@gmail.com>
2023-02-07 14:49:33 +05:30
Fish-pro 05c759a19a Use http constants instead of string
Signed-off-by: Fish-pro <zechun.chen@daocloud.io>
2023-02-07 15:51:00 +08:00
xin.li 374d68a663 [ut] add ut for utils/rbac.go
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-02-07 10:34:27 +08:00
karmada-bot 8a694133c4
Merge pull request #3111 from my-git9/cleanup/nodeut
[ut] improve ut coverage for node.go
2023-02-06 14:32:50 +08:00
karmada-bot c9141eca12
Merge pull request #3110 from my-git9/UT/secret
[UT] add ut for kubernetes/secret.go
2023-02-06 09:45:26 +08:00
xin.li e8a6e50a84 [ut] improve ut coverage for node.go
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-02-05 18:07:59 +08:00
xin.li c331bc5a4c [UT] add ut for kubernetes/secret.go
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-02-05 12:48:14 +08:00
Poor12 b1f3476b51 clean up unused values
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-02-03 10:00:47 +08:00
karmada-bot c9886a01a8
Merge pull request #3093 from Poor12/add-validate
Add schedulerName validation
2023-02-02 11:56:33 +08:00
yingjinhui 167e13259f support pod subresource (attach, exec, port-forward) through global proxy
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2023-02-01 19:31:08 +08:00
karmada-bot 8f83031603
Merge pull request #3088 from chaunceyjiang/labels
feat: Retain the labels added to resources by member clusters
2023-02-01 15:15:33 +08:00
Poor12 b9e32de35d add schedulerName validation
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-02-01 14:47:42 +08:00
chaunceyjiang d90713bedb feat: retain labels
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-02-01 14:05:52 +08:00
Poor12 bec9ca1f6a Support multiple schedulers
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-02-01 12:00:40 +08:00
karmada-bot 43c1a8c753
Merge pull request #3080 from RainbowMango/pr_update_k8s
Update Kubenetes dependencies to v1.26.1
2023-02-01 11:42:22 +08:00
jwcesign 07d220781c Add ut for service.go
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2023-01-31 16:37:43 +08:00
RainbowMango a1e8f164cb adopt static check issues
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-01-31 09:22:41 +08:00
karmada-bot d0c3314f6f
Merge pull request #3061 from jwcesign/ut-node-go
Add ut for node.go
2023-01-30 18:08:21 +08:00
RainbowMango aa620d68a3 Adopt validation changes
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-01-29 19:59:18 +08:00
RainbowMango 95213cd6f5 Adopt IngressStatus type changes
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-01-29 18:08:19 +08:00
RainbowMango c07ad07f3b Adopt lease name change
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-01-29 18:08:19 +08:00
RainbowMango 68828d0a48 Adopt kubectl describe command refactor
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-01-29 18:08:19 +08:00
RainbowMango c0515acf81 Update Kubernetes dependencies to v1.26.1
Update controller-runtime to 0.14.2
Update cluster-api to latest commit

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-01-29 18:08:19 +08:00
jwcesign 3d8cce7473 Add ut for node.go
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2023-01-29 10:14:13 +08:00
karmada-bot 6cfc2d0b8d
Merge pull request #3071 from yanggangtony/fix-typo
fix typo note for pkg/sharedcli/profileflag/profileflag.go
2023-01-28 16:56:17 +08:00
karmada-bot 9fc1a124b5
Merge pull request #3066 from XiShanYongYe-Chang/add-ut-for-strategy
Add ut for cluster registry
2023-01-28 14:32:17 +08:00
yanggang 38a63a8885
fix typo note for pkg/sharedcli/profileflag/profileflag.go
Signed-off-by: yanggang <gang.yang@daocloud.io>
2023-01-28 14:14:36 +08:00
changzhen e070ad779c add ut for cluster registry
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-01-28 09:11:44 +08:00
karmada-bot 1558ab7bb6
Merge pull request #3062 from RainbowMango/pr_simplify_tests
simplify context tests
2023-01-25 10:52:14 +08:00
RainbowMango 88e3c2add1 simplify context tests
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-01-19 16:57:21 +08:00
jwcesign b388d30908 Add ut for deployments.go
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2023-01-18 16:38:44 +08:00
hejunhua f229d97be9 fix that the InterpretDependency operation is absent in the validating webhook
Signed-off-by: hejunhua <jayfantasyhjh@gmail.com>

fix e2e problem

Signed-off-by: hejunhua <jayfantasyhjh@gmail.com>

fix test case

Signed-off-by: hejunhua <jayfantasyhjh@gmail.com>
2023-01-17 15:14:04 +08:00
karmada-bot 051a0b35ee
Merge pull request #3041 from helen-frank/feature/UseUtilsEnvGetString
use k8s.io/utils/env GetString get env
2023-01-13 10:15:05 +08:00
karmada-bot db4de92607
Merge pull request #3037 from chaunceyjiang/composedlabels
fix: OverridePolicy of labels/annotations with composed-labels
2023-01-13 09:59:05 +08:00
karmada-bot d02a4eed11
Merge pull request #3040 from helen-frank/feature/UpdateOrCreateTokenAddErrProcessing
UpdateOrCreateToken get secrets err handling optimization
2023-01-13 09:40:05 +08:00
chaunceyjiang 55f1a2bfcb fix: OverridePolicy of labels/annotations with composed-labels
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-01-12 21:13:56 +08:00
helen cc759c6706 when UpdateOrCreateToken get secrets, if the error is not a NotFound, the error is thrown in time.
Signed-off-by: helen <haitao.zhang@daocloud.io>
2023-01-12 20:58:49 +08:00
karmada-bot b28f6bfc5d
Merge pull request #3043 from wongearl/cleanup/add-unit-test
add UT for SetDefaultClusterResourceModels
2023-01-12 19:32:04 +08:00
wongearl 3c0bd41f80 add UT for ApplyOverridePolicies
Signed-off-by: wongearl <vamliang@163.com>
2023-01-12 17:32:19 +08:00
wongearl 9a46afc301 add UT for SetDefaultClusterResourceModels and MutateClusterTaints
Signed-off-by: wongearl <vamliang@163.com>
2023-01-12 16:16:58 +08:00
helen d9aca2f458 use k8s.io/utils/env GetString get env
Signed-off-by: helen <haitao.zhang@daocloud.io>
2023-01-11 01:14:25 +08:00
karmada-bot 07bb65bfe7
Merge pull request #2831 from ikaven1024/interpret-ctl-edit
add edit mode for karmadactl interpreter command
2023-01-10 11:15:03 +08:00
yingjinhui ce158ec243 stop proxy cache asynchronously
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2023-01-09 17:11:40 +08:00
karmada-bot 0330535ed8
Merge pull request #3014 from chaunceyjiang/ValidateReplicaScheduling
fix: Validate replicaSchedulingType and replicaDivisionPreference
2023-01-09 15:43:02 +08:00
chaunceyjiang 7a3207c8ee fix: set the default value of replicaSchedulengType
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-01-09 14:37:20 +08:00
Amir Alavi 05a98cc978
default interpreter aggregate status: set sub-test name and parallelize
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2023-01-08 21:05:45 -05:00
karmada-bot 7b4c541bb8
Merge pull request #3006 from Garrybest/pr_patch
avoid calling apiserver when scheduling result has no changes
2023-01-05 14:48:57 +08:00
karmada-bot 1c612f63b7
Merge pull request #3015 from Fish-pro/cleanup/errorsis
Check for err judgments by `==` and fix it
2023-01-04 17:43:55 +08:00
karmada-bot d34a33edd0
Merge pull request #3010 from yanfeng1992/fixbug-search-notReady-cluster
search filter out not ready cluster
2023-01-03 15:27:54 +08:00
karmada-bot 9118be926f
Merge pull request #3009 from chaunceyjiang/statefulset
built-in interpreter support statefulset
2023-01-03 14:55:55 +08:00
Fish-pro 92c0f9c962 Use errors.Is to check for a specific error
Signed-off-by: Fish-pro <zechun.chen@daocloud.io>
2023-01-03 09:44:51 +08:00
yingjinhui f161a2ab5d add edit mode for interpret command
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-12-30 18:22:40 +08:00
huangyanfeng 04d16b4b29 search filter out not ready cluster
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>

search filter out not ready cluster fix ut

Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>

search filter out not ready cluster fix lint

Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>

search filter out not ready cluster fix log and add comment

Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>

search filter out not ready cluster fix  comment

Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2022-12-30 13:57:37 +08:00
chaunceyjiang 58408c717e built-in interpreter support statefulset
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-12-29 18:38:38 +08:00
karmada-bot 434b7b6578
Merge pull request #3003 from Fish-pro/fix/klogformat
Fix log output errors
2022-12-29 18:06:50 +08:00
Garrybest 6597fafd17 avoid calling apiserver when scheduling result has no changes
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-12-29 16:40:26 +08:00
karmada-bot a20dd6e630
Merge pull request #2935 from jwcesign/code-review-fix-v2
Delete the redundant logic in func GenerateExecutionSpaceName
2022-12-29 15:39:50 +08:00
chen zechun f3e0b45521 Modify log output errors
Signed-off-by: chen zechun <zechun.chen@daocloud.io>
2022-12-29 13:58:00 +08:00
karmada-bot 3d06bb84a3
Merge pull request #3000 from Fish-pro/fix/logupperstart
Uniform klog output starts with uppercase
2022-12-29 12:28:50 +08:00
karmada-bot c34c443d2c
Merge pull request #2996 from a7i/interpreter-parallel-tests
default interpreter sub-tests to run in parallel
2022-12-29 09:58:51 +08:00
chen zechun 83d43235e8 Uniform error log output starts with uppercase
Signed-off-by: chen zechun <zechun.chen@daocloud.io>
2022-12-28 19:12:36 +08:00
karmada-bot eda7814ffc
Merge pull request #2988 from jwcesign/get-ns-first-before-create
Check if the resource exists before creating it
2022-12-28 17:03:50 +08:00
jwcesign 8acd1a4503 Delete the redundant logic in func GenerateExecutionSpaceName
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2022-12-28 15:59:24 +08:00
Amir Alavi 09ca7f506f
default interpreter sub-tests to run in parallel
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2022-12-27 22:52:19 -05:00
jwcesign c28bac08ca Check if the resource exists before creating it
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2022-12-28 09:52:58 +08:00
karmada-bot 6af94e239d
Merge pull request #2975 from Poor12/fix-region
[bugfix]when replicaDivisionPreference is Weighted and WeightPreference is nil
2022-12-27 18:16:52 +08:00
karmada-bot c8954de2b0
Merge pull request #2956 from helen-frank/feature/joinUseCurrentContext
Karmadactl join: default use current context
2022-12-23 16:32:48 +08:00
karmada-bot 99a3ad1ff3
Merge pull request #2964 from Garrybest/pr_dispense
refactor dispense replicas for job completions
2022-12-23 16:14:48 +08:00
Poor12 dbcf60a696 log error when replicaDivisionPreference is Weighted and WeightPreference is nil
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-12-23 14:25:18 +08:00
Garrybest 2dd48e029a dispense replicas for job
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-12-23 10:11:44 +08:00
jwcesign c1747284ef Grant karmada-agent permission to access resourceinterpretercustomizations
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2022-12-21 12:24:30 +08:00
karmada-bot e355061147
Merge pull request #2966 from Garrybest/pr_recreate
fix RB may not be created when delete and create the same object immediately
2022-12-19 10:19:45 +08:00
Garrybest f94aefaa6b fix RB may not be created when delete and create the same object immediately
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-12-17 17:21:38 +08:00
chaunceyjiang c3f5eaa3f7 fix failed to apply Label/Annotation Overriders
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-12-16 18:34:33 +08:00
helen c47b53648b Karmadactl join: default use current context
Signed-off-by: helen <haitao.zhang@daocloud.io>
2022-12-16 16:49:17 +08:00
karmada-bot 9b626c0f01
Merge pull request #2840 from helen-frank/feature/AddKubeVersion
introduce kube-image-tag flag to karmadactl init
2022-12-16 15:21:43 +08:00
karmada-bot 73a1b8236e
Merge pull request #2946 from Garrybest/pr_division
refactor dynamic schedule
2022-12-16 10:15:42 +08:00
Garrybest b34bb6f13e add dynamic schedule test
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-12-15 18:58:02 +08:00
Garrybest b4803c42c9 refactor dynamic schedule
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-12-15 18:57:45 +08:00
karmada-bot 6111ad0e69
Merge pull request #2899 from Garrybest/pr_metrics
clean up metrics for scheduler, descheduler and estimator
2022-12-15 16:49:23 +08:00
karmada-bot 08b750d815
Merge pull request #2957 from chaunceyjiang/taint
Add detailed information about the taint
2022-12-15 14:26:24 +08:00
chaunceyjiang d33deaeead Add detailed information about the taint
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2022-12-15 10:57:36 +08:00
helen 5eaf574d4b introduce --kube-version flag to karmadactl init
Signed-off-by: helen <haitao.zhang@daocloud.io>
2022-12-15 10:51:43 +08:00
RainbowMango 14423bf5d8 Introduce generic hashset to simplify code
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2022-12-14 15:49:45 +08:00
karmada-bot e47d6cb71b
Merge pull request #2949 from yanfeng1992/fixbug-unjoin-wait
CommandUnjoinOption wait must be a positive duration
2022-12-14 14:09:22 +08:00
karmada-bot 0131bffaae
Merge pull request #2879 from carlory/validate
move validation funcs into util/validation
2022-12-14 10:10:23 +08:00
karmada-bot 96832a5f37
Merge pull request #2947 from XiShanYongYe-Chang/flaking-test
fix failing test of editing policy resourceSelectors
2022-12-13 17:51:22 +08:00
karmada-bot f029394009
Merge pull request #2912 from jwcesign/fix-pp-rb
fix a corner case that re-schedule be skipped in case of the cluster becomes not fit.
2022-12-13 17:06:27 +08:00
changzhen 598935a5f7 fix flaking test of editing policy resourceSelectors
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-12-13 16:55:31 +08:00
jwcesign 950b614fa7 Fix resource hangover in member cluster when propagating matching changes
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2022-12-13 14:55:50 +08:00
changzhen 5ed2100ee1 support multiple dependencyInterpreter lua script for one gvk
Signed-off-by: changzhen <changzhen5@huawei.com>
2022-12-13 10:30:33 +08:00
huangyanfeng 17f105de05 CommandUnjoinOption wait must be a positive duration
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2022-12-12 17:43:48 +08:00
Garrybest c747cbcce7 clean up metrics for scheduler, descheduler and estimator
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-12-12 17:35:49 +08:00
karmada-bot 37cca1cd8d
Merge pull request #2928 from Fish-pro/fix/healthy
Fix misjudgment of deployment and statefuleset health status
2022-12-12 14:51:21 +08:00
chen zechun ec8f4c2a54 Fix Deployment and Statefulset health judgments
Signed-off-by: chen zechun <zechun.chen@daocloud.io>
2022-12-12 13:53:54 +08:00
karmada-bot 941637e805
Merge pull request #2942 from helen-frank/fix/namespace_sync_controller-buildWorks
need return after ch <-
2022-12-12 11:54:22 +08:00
karmada-bot 605fb36366
Merge pull request #2940 from kingkonghong/duplicate-resourceinterpreterwebhookconfigurations-rbac
Remove duplicate RBAC permission configurations
2022-12-12 09:48:21 +08:00
helen 681d51bd7f need return after ch <-
Signed-off-by: helen <haitao.zhang@daocloud.io>
2022-12-11 20:28:55 +08:00
kingkonghong 3d40d6cf26 Remove duplicate RBAC permission configurations
Signed-off-by: kingkonghong <jayfantasyhjh@gmail.com>
2022-12-09 18:13:12 +08:00
karmada-bot c7232f824b
Merge pull request #2930 from Poor12/fix-recover
Fix work status not sync to control plane when apiserver failed and recovered soon
2022-12-09 17:32:24 +08:00
Poor12 7c4cd0b5b6 fix work status not sync to control plane
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-12-09 15:43:34 +08:00
karmada-bot 1541db26d5
Merge pull request #2919 from Poor12/improve-auto-generate-pp
Replace colon with point in the rbac resource name
2022-12-09 11:33:19 +08:00
yingjinhui 0f5e377d9f add kube lib for lua
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-12-08 22:14:04 +08:00
karmada-bot 5f673cbde8
Merge pull request #2918 from qingwave/unstructured-ut
[UT] Add unstructed helper uinttest
2022-12-08 18:00:18 +08:00
karmada-bot efb50ade80
Merge pull request #2916 from chaunceyjiang/resourceinterpretercustomizations
fix resourceinterpretercustomizations webhook
2022-12-08 16:51:30 +08:00