Commit Graph

2369 Commits

Author SHA1 Message Date
RainbowMango 26ca04122c Update golangci-lint to v1.52.2
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-05-22 11:22:13 +08:00
karmada-bot c6f52f1146
Merge pull request #3491 from my-git9/fix/errorex
fix error example for addons enable
2023-05-19 20:41:53 +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
rayywu 0c9b8d9a1e Add UT for pkg/controllers/status/cluster_status_controller_test.go
Signed-off-by: rayywu <rayywu@tencent.com>
2023-05-18 16:12:14 +08:00
karmada-bot 64d88459bb
Merge pull request #3537 from chaunceyjiang/application
fix: When suppression and graciously Tasks coexist in the GracefulEvictionTask queue,  the graciously task cannot work.
2023-05-17 18:50:51 +08:00
karmada-bot 0789c83cfa
Merge pull request #3511 from ctripcloud/concurrent-pp
enable concurrency for pp and cpp
2023-05-17 18:33:53 +08:00
whitewindmills 89295f9606 Fix inspection errors
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-05-17 17:06:27 +08:00
chaunceyjiang c602c4ba02 fix: When suppression and graciously Tasks coexist in the GracefulEvictionTask queue, the graciously task cannot work.
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-05-16 20:04:15 +08:00
karmada-bot b28d6e01a1
Merge pull request #3543 from HassanTanveer/fix-typo
fix: Fixed typo
2023-05-16 17:21:50 +08:00
karmada-bot 2e6962f4c5
Merge pull request #3533 from Poor12/add-e2e-for-app-failover
Fix overridePolicy do not work when failed to process one of the matched binding
2023-05-16 10:53:50 +08:00
Hassan Tanveer 3e2c4408f1 Fixed typo
Signed-off-by: Hassan Tanveer <hassan.tanveer0097@gmail.com>
2023-05-15 20:47:48 +00:00
yingjinhui 67351f48c8 Support namespace filter in RR for search proxy
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2023-05-15 21:52:33 +08:00
Poor12 6ad5a2704e [flake] application failover testing
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-05-15 20:22:48 +08:00
karmada-bot 7004057093
Merge pull request #3499 from yike21/bundle-kyverno-clusterpolicy
add customizations for kyverno.io/v1/ClusterPolicy
2023-05-15 16:53:50 +08:00
karmada-bot d6470bcf49
Merge pull request #3498 from yike21/bundle-kyverno-policy
add customizations for kyverno.io/v1/Policy
2023-05-15 16:48:50 +08:00
karmada-bot 5e4e707779
Merge pull request #3494 from LronDC/master
Allow user decide whether to automatically generate Propagation-policy and its name when promote
2023-05-15 10:37:49 +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
karmada-bot 02f6a80994
Merge pull request #3492 from chaunceyjiang/checkthirdparty
check thirdparty resources
2023-05-14 23:48: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
LronDC f9b1071c3c Add --auto-generate-propagation-policy and --propagation-policy-name options to promote command
Signed-off-by: LronDC <lun.su@daocloud.io>
2023-05-12 18:53:43 +08:00
chaunceyjiang 62723e9a49 check thirdparty resources
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-05-12 16:40:09 +08:00
changzhen c04fd6ad62 add validation for mci
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-05-12 15:49:50 +08:00
karmada-bot 772f89ad99
Merge pull request #3523 from chaunceyjiang/validate_federatedresourcequota
fix: add missing federatedresourcequota validate config
2023-05-12 14:51:25 +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 c8874ee878
Merge pull request #3497 from whitewindmills/search-debug
add GroupResource
2023-05-11 21:14:24 +08:00
chaunceyjiang 77d6e665be fix: add federatedresourcequota validate config
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-05-11 18:58:37 +08:00
fei.li 28e148ff0c fix DeepEqual in federated-resource-quota-status-controller;
Signed-off-by: lifei <504034114@qq.com>
2023-05-11 17:19:54 +08:00
zach593 8d221b110c enable concurrency for pp and cpp
Signed-off-by: zach593 <zach_li@outlook.com>
2023-05-10 16:10:51 +08:00
karmada-bot 9bd709ac0c
Merge pull request #3505 from callmeoldpince/master
Fix:search http response add content-type header
2023-05-10 12:30:23 +08:00
liufang73 89d60cb450 fix:search http response add content-type header
Signed-off-by: old.prince <di7zhang@gmail.com>
2023-05-10 11:03: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
yike21 b27aae5d18 add customizations for kyverno.io/v1/Policy
Signed-off-by: yike21 <yike21@qq.com>
2023-05-08 22:50:41 +08:00
karmada-bot 012dd6fde8
Merge pull request #3502 from RainbowMango/pr_update_clusterapi
Update cluster-api version to semantic version
2023-05-08 21:00:22 +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
xigang d980d2e19e karmada-search: improve opensearch backend logs
Signed-off-by: xigang <wangxigang2014@gmail.com>
2023-05-08 17:31:33 +08:00
Poor12 3e63826f97 fix application controller
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-05-08 10:48:43 +08:00
yike21 071c185bd9 add customizations for kyverno.io/v1/ClusterPolicy
Signed-off-by: yike21 <yike21@qq.com>
2023-05-07 21:11:33 +08:00
whitewindmills 2f4ccbfbd2 add GroupResource
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-05-06 18:17:00 +08:00
karmada-bot 99f3c4f1f4
Merge pull request #3461 from Poor12/add-health-controller-draft
Add application failover controller
2023-05-06 16:18:20 +08:00
Poor12 d06fe2b5b3 add application failover controller
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-05-06 10:36:54 +08:00
karmada-bot 0e10088974
Merge pull request #3482 from yike21/bundle-fluxcd-helmrepository
add customizations for source.toolkit.fluxcd.io/v1beta2/OCIRepository
2023-05-06 10:02:20 +08:00
karmada-bot 060dbf95c1
Merge pull request #3485 from yike21/bundle-fluxcd-Bucket
add customizations for source.toolkit.fluxcd.io/v1beta2/Bucket
2023-05-06 09:53:20 +08:00
yike21 ac4fe4ff2a add customizations for source.toolkit.fluxcd.io/v1beta2/OCIRepository
Signed-off-by: yike21 <yike21@qq.com>
2023-05-05 21:06:46 +08:00
karmada-bot e7a6f8d177
Merge pull request #3487 from yike21/bundle-fluxcd-Kustomization
add customizations for kustomize.toolkit.fluxcd.io/v1/Kustomization
2023-05-05 17:01:19 +08:00
karmada-bot 0d5c2136fa
Merge pull request #3481 from yike21/bundle-fluxcd-gitrepository
add customizations for source.toolkit.fluxcd.io/v1/GitRepository
2023-05-05 15:50:19 +08:00
karmada-bot dd1bc2a0be
Merge pull request #3486 from yike21/bundle-fluxcd-HelmChart
add customizations for source.toolkit.fluxcd.io/v1beta2/HelmChart
2023-05-05 10:05:19 +08:00
karmada-bot a8480b94a0
Merge pull request #3484 from yike21/bundle-fluxcd-HelmRepository
add customizations for source.toolkit.fluxcd.io/v1beta2/HelmRepository
2023-05-05 09:23:19 +08:00
yike21 22c8a246ea add customizations for source.toolkit.fluxcd.io/v1beta2/HelmRepository
Signed-off-by: yike21 <yike21@qq.com>
2023-05-04 22:42:57 +08:00
xin.li 42926ef1ea fix error example for addons enable
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-05-04 18:13:40 +08:00
karmada-bot faf0d4bbaf
Merge pull request #3488 from yike21/bundle-fluxcd-helmrelease
add customizations for helm.toolkit.fluxcd.io/v2beta1/HelmRelease
2023-05-04 17:37:18 +08:00
karmada-bot 03d1bc23d7
Merge pull request #3475 from chaunceyjiang/graceful
fix: graceful-eviction still works after an unexpected restart of karmada-controller-manager
2023-05-04 10:31:19 +08:00
chaunceyjiang 9592aad85f fix: graceful-eviction still works after an unexpected restart of karmada-controller-manager
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-05-03 20:49:58 +08:00
Balaji Arun f132abfea5 Upgrade kube version
Signed-off-by: Balaji Arun <balajia@vt.edu>
2023-05-02 09:12:09 -07:00
yike21 3363034f77 add customizations for kustomize.toolkit.fluxcd.io/v1/Kustomization
Signed-off-by: yike21 <yike21@qq.com>
2023-05-01 19:24:26 +08:00
yike21 46058ffc48 add customizations for source.toolkit.fluxcd.io/v1beta2/HelmChart
Signed-off-by: yike21 <yike21@qq.com>
2023-05-01 19:14:51 +08:00
yike21 729aa562ae add customizations for source.toolkit.fluxcd.io/v1beta2/Bucket
Signed-off-by: yike21 <yike21@qq.com>
2023-05-01 19:03:09 +08:00
yike21 a8f4aef875 add customizations for source.toolkit.fluxcd.io/v1/GitRepository
Signed-off-by: yike21 <yike21@qq.com>
2023-05-01 18:25:51 +08:00
yike21 2f421eaa4e add customizations for helm.toolkit.fluxcd.io/v2beta1/HelmRelease
Signed-off-by: yike21 <yike21@qq.com>
2023-05-01 15:40:02 +08:00
karmada-bot b841c5493d
Merge pull request #3478 from xigang/fix/search_controller
karmada-search: ResourceRegistry controller can't handle DeletedFinalStateUnknown it gets from controller framework
2023-04-29 10:14:14 +08:00
xigang 929e66f06c Fix: SearchController can't handle DeletedFinalStateUnknown it gets from controller framework
Signed-off-by: xigang <wangxigang2014@gmail.com>
2023-04-28 17:16:13 +08:00
xigang 50d155f72a Fix: cleanup ResourceRegistry controller logs
Signed-off-by: xigang <wangxigang2014@gmail.com>
2023-04-28 11:31:47 +08:00
karmada-bot 185c7502ab
Merge pull request #3469 from Poor12/add-filter
Add a clusterEviction plugin
2023-04-28 10:30:18 +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 6c90cc3162
Merge pull request #3476 from bhavyastar/issue#3260
fix: Chinese to English term
2023-04-27 15:34:12 +08:00
RainbowMango 88a5875cd2 Update auto-generated files
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-04-27 14:33:23 +08:00
Bhavya Sachdeva 8249f6f483 fix: Chinese to English term
Signed-off-by: Bhavya Sachdeva <bhavya.sachdeva.58@gmail.com>
2023-04-27 14:27:30 +08:00
karmada-bot 7adfdfaa15
Merge pull request #3455 from Poor12/fix-generation-inconsistent
Ensure the latest schedulerObservedGeneration if do not need to schedule
2023-04-27 14:13:12 +08:00
Poor12 9ee205fcb1 fix generation inconsistent
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-04-27 11:26:45 +08:00
karmada-bot ec7b3b14c6
Merge pull request #3381 from XiShanYongYe-Chang/e2e-case-clusteraffinities
flake: [ClusterAffinities] propagation testing
2023-04-27 09:10:12 +08:00
changzhen 467adcf0b6 add worker for cluster update in scheduler
Signed-off-by: changzhen <changzhen5@huawei.com>
2023-04-26 18:29:51 +08:00
huangyanfeng 5b0f71004d Add kubebuilder shortName for work
Signed-off-by: huangyanfeng <huangyanfeng1992@gmail.com>
2023-04-26 17:14:25 +08:00
RainbowMango 7f484fd463 Revert "avoid the same cluster appearing in both spec.clusters and spec.gracefulEvictionTasks"
This reverts commit da44a5d9f9.

Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-04-26 15:17:27 +08:00
karmada-bot 22fb1d0321
Merge pull request #3283 from Poor12/fix-graceful-eviction
Avoid the same cluster appearing in both spec.clusters and spec.gracefulEvictionTasks
2023-04-26 10:10:11 +08:00
karmada-bot 6d4cb3d8b9
Merge pull request #3456 from jwcesign/fix-1
Correct the issue of adding duplicate eviction tasks
2023-04-26 10:01:11 +08:00
karmada-bot 027d514cab
Merge pull request #3431 from mkloveyy/webhook-comment
Add more detail comments for AggregatedStatus field
2023-04-25 17:18:11 +08:00
jwcesign e1b9e1724a Fix add same eviction tasks multiple times
Signed-off-by: jwcesign <jiangwei115@huawei.com>
2023-04-25 14:25:06 +08:00
ma_k 5c08aa4787 Add more detail comments for AggregatedStatus field
Signed-off-by: mkloveyy <halfpig0627@163.com>
2023-04-25 13:25:02 +08:00
yike21 cb069867af rename advancedcronjob directory, and fix the retention operation for broadcastjob
Signed-off-by: yike21 <yike21@qq.com>
2023-04-25 10:51:47 +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
Poor12 da44a5d9f9 avoid the same cluster appearing in both spec.clusters and spec.gracefulEvictionTasks
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-04-25 10:22:08 +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 38126160c7
Merge pull request #3402 from ikaven1024/proxy
fix paging list in karmada search proxy
2023-04-23 09:15:09 +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
yingjinhui 89245212c8 fill cluster rv in proxying list
Signed-off-by: yingjinhui <yingjinhui@didiglobal.com>
2023-04-20 18:58:55 +08:00
karmada-bot 7b1ddc9ee1
Merge pull request #3407 from Poor12/webhook-change
Add validation for failover
2023-04-20 17:32:07 +08:00
karmada-bot ed2b101c44
Merge pull request #2999 from ctripcloud/update-resolver
Support Connection to ResourceInterpretWebhook without DNS Service
2023-04-20 16:36:13 +08:00
Poor12 74e030af81 add validation for failover
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-04-20 14:56:16 +08:00
karmada-bot 2be4b33d01
Merge pull request #3425 from neteric/fix-retainPodFielsIncludeInitContainer
Fix func retainPodFields not include initContainer'volumesMounts bug
2023-04-19 17:33:06 +08:00
karmada-bot 507e66f6c6
Merge pull request #3373 from chaunceyjiang/wildcards
feat: Allows setting wildcards for SkippedPropagatingNamespaces
2023-04-19 17:18:11 +08:00
chaunceyjiang 593264e2c6 Allows setting wildcards for SkippedPropagatingNamespaces
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-04-19 13:16:06 +08:00
karmada-bot b9ba007913
Merge pull request #3399 from Poor12/binding-api-change
Binding API modification adaptation to implement application failover
2023-04-19 11:26:12 +08:00
Poor12 433ccb0d0f add api to binding
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-04-18 19:55:47 +08:00
whitewindmills 5bb8eae68f Avoid accidental impact for rb/crb's pointer on the cache
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-04-18 16:45:53 +08:00
neteric a95b576812 Fix func retainPodFields not include initContainer'volumesMounts bug
Signed-off-by: neteric <net.eric.zhang@gmail.com>
2023-04-18 15:51:59 +08:00
karmada-bot ea128f9c41
Merge pull request #3411 from xigang/clustercontroller/logs
cleanup:cluster controller log missing clustername
2023-04-18 11:36:05 +08:00
xigang 6aac228706 cleanup: remove unused cluster controller log
Signed-off-by: xigang <wangxigang2014@gmail.com>
2023-04-17 17:23:01 +08:00
chaunceyjiang 77e2157cf8 CommandArgsOverrider supports Job
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-04-17 14:32:33 +08:00
karmada-bot 4552a19ee9
Merge pull request #3392 from yike21/add-unit-test
add unit test for pkg/resourceinterpreter/default/native/dependencies.go
2023-04-17 11:49:04 +08:00
lxtywypc 71ffbf429a use ClusterIPServiceResolver instead of DefaultServiceResolver to eliminate dependency of DNS
Signed-off-by: lxtywypc <lxtywypc@gmail.com>
2023-04-17 10:42:43 +08:00
karmada-bot ab9404a331
Merge pull request #3368 from yike21/bundle-kruise-resources-cronjob
add customizations for apps.krusie.io/v1alpha1/AdvancedCronJob
2023-04-14 16:49:02 +08:00
yike21 b22cb1ff00 add customizations for apps.krusie.io/v1alpha1/BroadcastJob
Signed-off-by: yike21 <yike21@qq.com>
2023-04-14 15:39:15 +08:00
yike21 9628830a39 add customizations for apps.krusie.io/v1alpha1/AdvancedCronJob
Signed-off-by: yike21 <yike21@qq.com>
2023-04-14 15:33:34 +08:00
yike21 f051591a84 add customizations for apps.krusie.io/v1alpha1/DaemonSet
Signed-off-by: yike21 <yike21@qq.com>
2023-04-14 11:06:08 +08:00
karmada-bot c3d54ccccf
Merge pull request #3352 from yike21/bundle-kruise-resources-statefulset
add customizations for apps.krusie.io/v1beta1/StatefulSet
2023-04-14 11:03:01 +08:00
yike21 0fc88877f3 add customizations for apps.krusie.io/v1beta1/StatefulSet
Signed-off-by: yike21 <yike21@qq.com>
2023-04-14 00:08:41 +08:00
yike21 217657af36 Add customizations for apps.krusie.io/v1alpha1/CloneSet
Signed-off-by: yike21 <yike21@qq.com>
2023-04-13 20:42:25 +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
RainbowMango a381373967 Setup interpreter owners
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-04-13 11:30:39 +08:00
karmada-bot ef774d2863
Merge pull request #3342 from Poor12/add-health-api
Add failover APIs in policy
2023-04-12 18:47:00 +08:00
Poor12 34f481201c add failover apis
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-04-12 17:30:08 +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 b273800421
Merge pull request #3376 from niuyueyang1996/fix-object-same-point
karmada-search: fix the problem that ResourceVersion base64 encrypted repeatedly when starting multiple informer to watch resource
2023-04-11 15:24:59 +08:00
karmada-bot 4133d5936a
Merge pull request #2768 from chaunceyjiang/predefinedConfigurableInterpreter
feat: predefined configurableInterpreter
2023-04-11 10:50:58 +08:00
niuyueyang daeac005d8 if start many watcher to watch pod.
pod resourceVersion will base64 duplicate.
soo deepCopy event.

Signed-off-by: niuyueyang <719415781@qq.com>
2023-04-10 20:01:11 +08:00
karmada-bot 0b640f7785
Merge pull request #3371 from Poor12/fix-scheduler-duplicated
Unify the assign replicas when duplicated
2023-04-10 19:27:58 +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
chaunceyjiang 538d8f10e0 Add a third-party configurable interpreter for some well-known third-party projects.
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-04-10 15:21:51 +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
Poor12 b61a87e7cc unify the assign replicas when duplicated
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-04-07 09:28:44 +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
karmada-bot 31b5088baf
Merge pull request #3326 from my-git9/feat/ignorens
feat: add --purge-namespace flags for `karmadactl deinit`, and default not delete namespace
2023-04-06 20:07: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
karmada-bot 13ecfa5f46
Merge pull request #3345 from my-git9/feat/hub
Support specify global image registry for enable addons
2023-04-06 09:52:55 +08:00
xin.li fe6febba0d feat: add --purge-namespace flags for karmada deinit
`karmada deinit` default not delete namespace

Signed-off-by: xin.li <xin.li@daocloud.io>
2023-04-04 23:58:05 +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 cbf5c4a829
Merge pull request #3346 from Poor12/do-not-reschedule
[Performance] Do not schedule when status/metadata of binding update
2023-04-04 11:11:53 +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
karmada-bot 949d5893a4
Merge pull request #3350 from realnumber666/add-unit-test
Add UT for deploy.go
2023-04-04 10:12:53 +08:00
xin.li 8adc86e7e4 feat: support specify global image registry for addons
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-04-04 09:44:47 +08:00
Poor12 8d9538b9c9 do not scheudle when status/metadata change
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-04-03 19:35:42 +08:00
rayywu 4335107894 Add UT for deploy.go and cluster_condition_cache.go
Signed-off-by: rayywu <rayywu@tencent.com>
2023-04-03 17:25:33 +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
karmada-bot 5194e1761a
Merge pull request #3259 from whitewindmills/spreadconstraints
region selection algorithm optimization
2023-03-30 19:04:49 +08:00
whitewindmills ed2fcea68d add group selection algorithm
Signed-off-by: whitewindmills <jayfantasyhjh@gmail.com>
2023-03-30 17:01:23 +08:00
karmada-bot a44633eebe
Merge pull request #3292 from tedli/master
Add arg to specify cluster domain
2023-03-30 16:04:49 +08:00
lizhen6 06adeb96dc customizable cluster domain
Signed-off-by: lizhen6 <lizhen6@360.cn>
2023-03-30 14:03:54 +08:00
chaunceyjiang 7e2097f1f3 Optimize code directory structure.
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
2023-03-30 11:49:16 +08:00
lonelyCZ 59ef6279f3 Support to run karmadactl init within a pod
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
2023-03-29 10:53:46 +08:00
karmada-bot 1d030d4f8c
Merge pull request #3317 from helen-frank/feature/BuildClusterConfig
BuildClusterConfig:use rest.Config and check ca exist
2023-03-25 10:26:48 +08:00
karmada-bot d4c1918868
Merge pull request #3297 from realnumber666/add-unit-test
Add UT for deploy.go and statefulset.go
2023-03-24 19:57:46 +08:00
rayywu b7c5bc196b Add UT for deploy.go and statefulset.go
Signed-off-by: rayywu <rayywu@tencent.com>
2023-03-24 15:23:57 +08:00
karmada-bot 29e9e33157
Merge pull request #3324 from RainbowMango/pr_aa_owner
Set aggregatedapiserver owners
2023-03-24 15:03:27 +08:00
karmada-bot 63cbdf3a4d
Merge pull request #3325 from my-git9/improve/output
chore: improve some format
2023-03-24 12:17:27 +08:00
xin.li 9500fced9b chore: improve some format
Signed-off-by: xin.li <xin.li@daocloud.io>
2023-03-24 11:18:34 +08:00
RainbowMango 0ee519e87f Set aggregatedapiserver owners
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2023-03-23 17:22:39 +08:00
karmada-bot 861bc7af9c
Merge pull request #3312 from tedli/kindlist
response actual resource list from search api
2023-03-23 14:47:32 +08:00
karmada-bot ef225e46cf
Merge pull request #3290 from Poor12/fix-duplicated
Fix cluster_locality plugin when replicaScheduling is nil
2023-03-23 12:09:25 +08:00
Poor12 fc7d8fa3b8 Fix cluster_locality plugin when replicas == 0
Signed-off-by: Poor12 <shentiecheng@huawei.com>
2023-03-23 10:58:09 +08:00
karmada-bot d349f001db
Merge pull request #3316 from xigang/cluster_status_controller
Fix: remove the setTransitionTime from cluster status controller.
2023-03-23 10:54:26 +08:00
xigang 4c38c4e6c1 Fix: remove the setTransitionTime method from the cluster status controller
Signed-off-by: xigang <wangxigang2014@gmail.com>
2023-03-23 09:55:07 +08:00
lizhen6 47b0551a56 response actual resource list type
Signed-off-by: lizhen6 <lizhen6@360.cn>
2023-03-22 16:55:13 +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
lixingchenDaoCloud 2eaf3301b8 remove bootstrapKubeConfigFile error not check
Signed-off-by: lixingchenDaoCloud <captainchina_li@163.com>
2023-03-22 15:04:42 +08:00
ericzhang 7dd581f016 add interpretPodHealth to DefaultHealthInterpreter
Signed-off-by: neteric <net.eric.zhang@gmail.com>
2023-03-21 14:39:48 +08:00
lonelyCZ fb273dc715 Fixed unable to view the options for karmadactl addons enable/disable
Signed-off-by: lonelyCZ <chengzhe@zju.edu.cn>
2023-03-20 22:30:58 +08:00
karmada-bot 0bbf03d323
Merge pull request #3266 from my-git9/addons-confirm
feat: add flags of force for addon disable
2023-03-20 20:32:24 +08:00
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