Commit Graph

688 Commits

Author SHA1 Message Date
karmada-bot 3151f02f6e
Merge pull request #3547 from zishen/master
Add UT for pkg/controllers/binding/binding_controller.go
2023-05-22 16:44:55 +08:00
karmada-bot 8594406e5f
Merge pull request #3398 from whitewindmills/code-cleanup
Fix inspection errors
2023-05-19 20:28:53 +08:00
zishen 8391b233c4 Add UT for pkg/controllers/binding/binding_controller.go
Signed-off-by: zishen <softwarebtg@163.com>
2023-05-19 14:22:32 +08:00
whitewindmills 89295f9606 Fix inspection errors
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-05-17 17:06:27 +08:00
karmada-bot 9d72f27329
Merge pull request #3504 from realnumber666/add-unit-test
Add UT for pkg/util/lifted
2023-05-15 09:28:56 +08:00
rayywu 5977e1bd00 Add UT for pkg/util/lifted
Signed-off-by: rayywu <rayywu@tencent.com>
2023-05-14 01:33:12 +08:00
changzhen c04fd6ad62 add validation for mci
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-05-12 15:49:50 +08:00
Amir Alavi 121afd21ff
add managed-by label to resources created by karmada controllers (#3262)
* update value of managed-by label to 'karmada'

Signed-off-by: Amir Alavi <amiralavi7@gmail.com>

* change managed by label to a karmada reserved label

Signed-off-by: Amir Alavi <amiralavi7@gmail.com>

---------

Signed-off-by: Amir Alavi <amiralavi7@gmail.com>
2023-05-12 14:35:24 +08:00
karmada-bot 17eae7d32c
Merge pull request #3508 from Poor12/revert-fields
Revert preConditions and blockPredecessorSeconds in failover
2023-05-09 17:45:23 +08:00
Poor12 5bdd837f35 revert some fields
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-05-09 16:38:48 +08:00
RainbowMango 07f8929fb4 Update cluster-api version to semantic version
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-05-08 18:24:00 +08:00
Poor12 d06fe2b5b3 add application failover controller
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-05-06 10:36:54 +08:00
Poor12 80eab7bcb3 add a clusterEvicted plugin
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-04-28 09:21:45 +08:00
karmada-bot 27862f77f7
Merge pull request #3442 from chaunceyjiang/AffinityName
fix: affinityName can be set to an empty string
2023-04-25 10:31:10 +08:00
karmada-bot 2ef01942f1
Merge pull request #3395 from realnumber666/add-unit-test
Add UT for workstatus.go and taint.go and rule.go
2023-04-24 19:56:11 +08:00
Poor12 2c9d900c28 add some fields for GracefulEvictionTask
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-04-24 14:59:27 +08:00
chaunceyjiang 6fb9329b29 fix: affinityName can be set to an empty string
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-04-24 12:55:46 +08:00
rayywu 4c66528ae1 Add UT for workstatus.go and taint.go and rule.go
Signed-off-by: rayywu <rayywu@tencent.com>
2023-04-24 00:21:19 +08:00
karmada-bot b118a73ba1
Merge pull request #3433 from chaunceyjiang/prefix-namespace
feat: allows users to propagate resources under the Kubernetes reserved namespace.
2023-04-21 10:52:07 +08:00
chaunceyjiang 1f42f7f1e5 feat: allows users to propagate resources under the Kubernetes reserved namespace.
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-04-20 19:05:33 +08:00
Poor12 74e030af81 add validation for failover
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-04-20 14:56:16 +08:00
chaunceyjiang 77e2157cf8 CommandArgsOverrider supports Job
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-04-17 14:32:33 +08:00
yike21 18ebee199f add unit test for pkg/resourceinterpreter/default/native/dependencies.go
Signed-off-by: yike21 <yike21@qq.com>
2023-04-13 17:56:55 +08:00
chaunceyjiang 6f3afbdbf2 fix: validates predicate path
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-04-12 13:47:28 +08:00
karmada-bot 9b4c9a8222
Merge pull request #3364 from whitewindmills/patch-util
use patch helper instead of jsonpatch
2023-04-10 19:10:58 +08:00
karmada-bot a7ae11c73d
Merge pull request #3123 from WulixuanS/fix/genericmanager
Avoid multiple executions after rlock in concurrent scenarios
2023-04-10 13:59:58 +08:00
karmada-bot 45fcc38535
Merge pull request #3315 from helen-frank/feature/parseSingle
parseSingle: add test
2023-04-10 10:59:58 +08:00
helen 94a78f9ab0 parseSingle add test
Signed-off-by: helen <haitao.zhang@daocloud.io>
2023-04-10 09:56:34 +08:00
karmada-bot 115d06eeee
Merge pull request #3357 from whitewindmills/sc-validation
fix that multiple same spread constraints are allowed
2023-04-08 09:01:55 +08:00
karmada-bot 7589eaec60
Merge pull request #3321 from Poor12/fix-duplicated
Do not revise replicas when strategy is duplicated
2023-04-07 08:11:55 +08:00
whitewindmills b15e43251b use patch helper instead of jsonpatch
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-04-06 16:04:58 +08:00
Poor12 75c638ddc1 do not revise replicas when duplicated
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-04-06 15:05:45 +08:00
wulixuan 8c63c146a4 Avoid multiple executions after rlock in concurrent scenarios
Signed-off-by: wulixuan <wulixuan@bilibili.com>
2023-04-06 13:49:04 +08:00
changzhen 1d0e6ced65 fix an issue where DeepEqual becomes invalid in aggregate binding status
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-04-04 16:32:16 +08:00
karmada-bot 8bec671e21
Merge pull request #3339 from yike21/bundle-kruise-resources-1
Add a function getPodDependencies for InterpretDependency operation
2023-04-04 10:55:53 +08:00
whitewindmills 9a408ab3d9 fix that multiple same spread constraints are allowed
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-04-02 22:52:24 +08:00
whitewindmills 26c787531e add placement helper
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-04-01 16:45:57 +08:00
yike21 9acd98faec Add a function getPodDependencies for InterpretDependency operation
Signed-off-by: yike21 <yike21@qq.com>
2023-04-01 11:42:08 +08:00
wenche e98599504f Fixed the control plane endpointslice cannot be deleted.
Signed-off-by: wenche <wenchuan.zhao@qq.com>
2023-03-31 13:55:55 +08:00
chaunceyjiang 7e2097f1f3 Optimize code directory structure.
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-03-30 11:49:16 +08:00
helen 51365952b1 use rest.Config and check ca exist
Signed-off-by: helen <haitao.zhang@daocloud.io>
2023-03-22 15:52:55 +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
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 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
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 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
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
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 b540174af7
Merge pull request #3157 from jwcesign/fix-GenerateBindingReferenceKey
Make the result unique for GenerateBindingReferenceKey function
2023-02-20 13:19:00 +08:00
jwcesign ab94d95e0c Use / as the delimiter
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2023-02-20 11:43:30 +08:00
changzhen 42c2e3c643 add validation for orderedClusterAffinities
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-02-18 15:45:44 +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
karmada-bot 7dcb99b8c5
Merge pull request #3115 from VedRatan/issue_3091
Replace Hashsets with Sets
2023-02-07 20:34:50 +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
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
chaunceyjiang d90713bedb feat: retain labels
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-02-01 14:05:52 +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 db4de92607
Merge pull request #3037 from chaunceyjiang/composedlabels
fix: OverridePolicy of labels/annotations with composed-labels
2023-01-13 09:59: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
wongearl 3c0bd41f80 add UT for ApplyOverridePolicies
Signed-off-by: wongearl <vamliang@163.com>
2023-01-12 17:32:19 +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
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
yingjinhui f161a2ab5d add edit mode for interpret command
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-12-30 18:22:40 +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
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
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
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 99a3ad1ff3
Merge pull request #2964 from Garrybest/pr_dispense
refactor dispense replicas for job completions
2022-12-23 16:14:48 +08:00
Garrybest 2dd48e029a dispense replicas for job
Signed-off-by: Garrybest <garrybest@foxmail.com>
2022-12-23 10:11:44 +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
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 0131bffaae
Merge pull request #2879 from carlory/validate
move validation funcs into util/validation
2022-12-14 10:10:23 +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
karmada-bot 5f673cbde8
Merge pull request #2918 from qingwave/unstructured-ut
[UT] Add unstructed helper uinttest
2022-12-08 18:00:18 +08:00
qingwave e171c4cac6 add unstruucted helper uinttest
Signed-off-by: qingwave <isguory@gmail.com>
2022-12-08 08:37:03 +00:00
Poor12 cfacfb2f10 replace colon with point in the rbac resource name
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2022-12-08 11:59:08 +08:00
huangyanfeng 1e1506332e generate PolicyRules from given subjects for impersonation deduplicate
Signed-off-by: huangyanfeng <huangyanfeng@cestc.com>

generate PolicyRules add ut case for check deduplicate

Signed-off-by: huangyanfeng <huangyanfeng@cestc.com>

import format

Signed-off-by: huangyanfeng <huangyanfeng@cestc.com>
2022-12-08 10:31:37 +08:00
karmada-bot 69bd4ece52
Merge pull request #2883 from ikaven1024/pr-pool-metric
add metrics for pool
2022-12-06 11:29:16 +08:00
karmada-bot 9784ed3a5d
Merge pull request #2609 from chaunceyjiang/implicit
add implicit priority for OP and COP
2022-12-06 10:34:16 +08:00
yingjinhui 45d85bb46c add metrics for pool
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2022-12-05 20:34:23 +08:00
chen zechun 7b64cc5e4e Correct the typos
Signed-off-by: chen zechun <zechun.chen@daocloud.io>
2022-12-05 18:27:28 +08:00
karmada-bot 2224d1e700
Merge pull request #2882 from Zhuzhenghao/registry.k8s.io
Move to registry.k8s.io
2022-12-01 15:08:03 +08:00
karmada-bot 464270f7c2
Merge pull request #2845 from Garrybest/pr_division
refactor static weight strategy
2022-12-01 10:41:15 +08:00