Commit Graph

794 Commits

Author SHA1 Message Date
karmada-bot 7d10d979e0
Merge pull request #1030 from Garrybest/pr_metrics
add metrics for scheduler estimator
2021-12-02 11:14:08 +08:00
Garrybest e2e9a503b7 add metrics for scheduler estimator
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-12-02 10:16:28 +08:00
huangminjie 80467aea48 feature: change namespace filter rule
some namespaces(like karmada-test, karmada-dev, etc.) will be propagated

Signed-off-by: huangminjie <minjie.huang@daocloud.io>
2021-12-01 16:19:11 +08:00
karmada-bot 763a50ef3c
Merge pull request #946 from gy95/karmadactl
cleanup karmada ctl code
2021-11-30 16:33:08 +08:00
guoyao 3672d6d0a3 cleanup karmada ctl code
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-30 14:36:23 +08:00
karmada-bot 6dfa010d35
Merge pull request #1041 from lonelyCZ/taint_test
Add UT for karmadactl taint
2021-11-30 09:46:08 +08:00
lonelyCZ d40c33b75b Add UT for karmadactl taint
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-11-29 19:44:00 +08:00
karmada-bot 668eaee05b
Merge pull request #967 from dddddai/sched-type
Refactor schedule type
2021-11-29 18:07:06 +08:00
guoyao 5bf9e4094a add ut for AggregateErrors
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-27 17:14:57 +08:00
dddddai b94580a33e refactor schedule type
Signed-off-by: dddddai <dddwq@foxmail.com>
2021-11-27 10:46:42 +08:00
karmada-bot f0f0bad9e7
Merge pull request #889 from lonelyCZ/karmadactl-taint
Implement karmadactl taint to add taints into a cluster
2021-11-27 09:23:06 +08:00
lonelyCZ ab0b74d72b Implement karmadactl taint to add taints into a cluster
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-11-26 18:05:24 +08:00
karmada-bot 7e35f9cc26
Merge pull request #1031 from pigletfly/fix-retry-on-update-status
Add retry on update status
2021-11-26 17:02:05 +08:00
karmada-bot ce7d278977
Merge pull request #932 from mrlihanbo/cluster_status_condition
add conditions for cluster status
2021-11-26 14:37:06 +08:00
karmada-bot 84d4a4592d
Merge pull request #1034 from Garrybest/pr_job_status
add startTime and completionTime in job status
2021-11-26 11:30:04 +08:00
guoyao 91e3b53fd0 add unit test for functions of generating names
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-26 08:34:46 +08:00
Garrybest 5195d93ec4 add startTime and completionTime in job status
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-25 21:50:36 +08:00
karmada-bot ba5b44aee2
Merge pull request #1029 from iawia002/cluster-api-v1beta1
Support for the cluster-api v1beta1 version
2021-11-25 21:32:03 +08:00
lihanbo 2131ec5189 add conditions for cluster status
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-11-25 21:23:15 +08:00
karmada-bot aa25d85653
Merge pull request #957 from Garrybest/bug-fix
optimize ResourceList in resource.go
2021-11-25 21:05:04 +08:00
Garrybest efe46b3e50 adapt optimizing ResourceList to avoid nil pointer
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-25 20:37:12 +08:00
Garrybest d45dcbf7ab optimize ResourceList
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-25 20:37:10 +08:00
karmada-bot 76c7514724
Merge pull request #1025 from 2hangchen/feat_providerwithjoin
Specify the provider manually.
2021-11-25 20:36:03 +08:00
Pilipalaca 0322139e62 feat: can specify the provider manually
Signed-off-by: Pilipalaca <85749695@qq.com>

change the params

Signed-off-by: Pilipalaca <85749695@qq.com>
2021-11-25 20:02:12 +08:00
pigletfly 39985d5dbe Add retry on update status
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-11-25 19:55:03 +08:00
karmada-bot 19cb59cebf
Merge pull request #1014 from BDXGD/opt
Optimization the process of getting PropagationPolicy with higher priority
2021-11-25 19:18:04 +08:00
xinjie xu c5539fd153 optimization the process of getting PropagationPolicy with higher priority
Signed-off-by: xinjie xu <1912747539@qq.com>
2021-11-25 18:32:11 +08:00
karmada-bot ac2e59d8fb
Merge pull request #1006 from XiShanYongYe-Chang/detet-todo-logic
delete the TODO logic with binding labels
2021-11-25 17:53:03 +08:00
Xinzhao Xu 29f10db1dd Support for the cluster-api v1beta1 version
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-11-25 16:58:14 +08:00
karmada-bot b35d2e0f5a
Merge pull request #1024 from eightzero/dev
ignore configv1alpha1 group in detector
2021-11-25 15:29:03 +08:00
eightzero a5c8aa905e ignore configv1alpha1 group in detector
Signed-off-by: eightzero <ieightzero@icloud.com>
2021-11-25 10:18:37 +08:00
karmada-bot 34ed1f7741
Merge pull request #1011 from lonelyCZ/global-option
Remove ClusterNamespace from GlobalCommandOptions
2021-11-25 09:11:10 +08:00
karmada-bot ccf2762400
Merge pull request #990 from iawia002/rm-k8s-dep
Lift some utils code from the k/k repo to avoid relying on it
2021-11-24 20:18:17 +08:00
changzhen 4e6400ade3 add config v1alpha1 schemes to gclient
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-24 15:20:24 +08:00
pigletfly 42ed6dfbc4 Fix generate rb key
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-11-24 10:25:29 +08:00
karmada-bot ff928761fd
Merge pull request #1003 from JarHMJ/fix/fix_name_hash
fix: fix GenerateBindingReferenceKey bug
2021-11-24 09:23:12 +08:00
huangminjie f30c2afee0 fix: fix GenerateBindingReferenceKey bug
Signed-off-by: huangminjie <minjie.huang@daocloud.io>
2021-11-23 19:47:28 +08:00
lihanbo df925c7171 support update object annotations
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-11-23 19:10:47 +08:00
lonelyCZ b634297edf Remove ClusterNamespace from GlobalCommandOptions
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-11-23 16:49:43 +08:00
karmada-bot d40d559747
Merge pull request #978 from BDXGD/dev
Logic patch for dividing remaining replicas to clusters
2021-11-23 11:40:12 +08:00
changzhen 033de2de9f delete the TODO logic with binding labels
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-22 17:41:55 +08:00
karmada-bot 3a8c15ccfd
Merge pull request #987 from iawia002/clean-unused-lister
Remove unused policyLister in the genericScheduler
2021-11-22 10:52:11 +08:00
karmada-bot 42882cd8a0
Merge pull request #940 from lonelyCZ/remove-klog-error
Clean klog errorf in karmadactl
2021-11-22 10:34:10 +08:00
RainbowMango a6f5dea67b Fix panic: invalid memory address or nil pointer dereference
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-20 20:45:22 +08:00
changzhen 7224234a74 Update resourece interpreter pkg/file name and variable/parameter/comment naming
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-20 17:48:00 +08:00
Kevin Wang f8af0363f6 Update resource interpreter api (aka. explorewebhook)
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
2021-11-20 14:59:52 +08:00
Xinzhao Xu 0859129968 Lift some utils code from the k/k repo to avoid relying on it
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-11-19 16:36:41 +08:00
Xinzhao Xu 953537d1fb Remove unused policyLister in the genericScheduler
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-11-19 15:13:08 +08:00
guoyao 69f990bf56 add unit test for webhook validation
Signed-off-by: guoyao <1015105054@qq.com>

Signed-off-by: guoyao <1015105054@qq.com>
2021-11-19 15:11:09 +08:00
xinjie xu 804bbed87c logic patch for calculating desireReplicaInfos
Signed-off-by: xinjie xu <1912747539@qq.com>
2021-11-18 21:04:06 +08:00
changzhen c755dc039a add retion explorer webhook call
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-18 20:59:09 +08:00
guoyao 81f6cb939b add retaining webhook
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-18 16:08:39 +08:00
karmada-bot 8fd235f12e
Merge pull request #982 from XiShanYongYe-Chang/adapt-adding-ObservedObject
adapt ObservedObject adding in resource explore webhook
2021-11-18 14:49:05 +08:00
changzhen fb39ed5aa0 adapt ObservedObject adding in resource explore webhook
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-18 12:25:03 +08:00
karmada-bot 02c72b5206
Merge pull request #908 from learner0810/add_karmadactl_get_example
add karmadactl get -h example
2021-11-18 10:23:05 +08:00
zhongjun.li aea3f8886a add karmadactl get example
Signed-off-by: zhongjun.li <zhongjun.li@daocloud.io>
2021-11-18 09:53:53 +08:00
RainbowMango f9cb085224 Add ObservedObject field to ExploreRequest
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-17 20:09:20 +08:00
RainbowMango 41568dcf51 Enable default custom resource retaintion
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-17 16:06:36 +08:00
karmada-bot abd117c702
Merge pull request #975 from Phil-sun/master
update work version in get.go
2021-11-17 15:20:03 +08:00
karmada-bot 876631801c
Merge pull request #965 from wzshiming/fix/get-secret
pkg/util/secret: Fix GetTargetSecret
2021-11-17 14:59:03 +08:00
Phil-sun 78223a2aae update work version in get.go
Signed-off-by: Phil-sun <sunxh0000@163.com>
2021-11-17 13:48:24 +08:00
karmada-bot 73f68c3a5c
Merge pull request #971 from XiShanYongYe-Chang/hook-handler-interface
Add Hook handler interface
2021-11-16 18:42:02 +08:00
changzhen 0acd626d1b add hook handler interface
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-16 17:51:20 +08:00
RainbowMango 584bf4d256 Set background cacscade deletion by default
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-16 11:39:57 +08:00
RainbowMango 6383593d8f Add status of explore response
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-15 20:40:52 +08:00
lonelyCZ 529c907d93 Clean klog errorf in karmadactl
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-11-15 18:30:20 +08:00
RainbowMango 75a6bc51bf Rename ExploreReview status to rawstatus
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-15 16:17:42 +08:00
Shiming Zhang 6c7cb9b51e pkg/util/secret: Fix GetTargetSecret
Signed-off-by: Shiming Zhang <wzshiming@foxmail.com>
2021-11-15 15:51:49 +08:00
guoyao 94227b33b4 add more validations for cluster name
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-15 15:08:16 +08:00
guoyao ae34e4d1b8 unify IsNodeReady function
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-15 11:35:03 +08:00
changzhen d81f6e81ce hooks matching and sending requests to webhook
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-15 10:34:18 +08:00
RainbowMango 5cb0fc2635 Add generated files
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-11-13 20:09:07 +08:00
RainbowMango dc142d22eb Define webhook rules by ourself
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-13 20:09:07 +08:00
RainbowMango df20347e3b Fix job can not schedule issue.
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-12 20:08:29 +08:00
karmada-bot c67874689e
Merge pull request #951 from RainbowMango/pr_enable_explorer
Setup custom resource explorer
2021-11-12 19:26:32 +08:00
RainbowMango 9e7fde6ab9 Setup custom resource explorer
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-12 17:11:24 +08:00
karmada-bot 1e4ce8a509
Merge pull request #941 from XiShanYongYe-Chang/resource-explore-validate
Add the validation for ResourceExploringWebhookConfiguration
2021-11-12 16:39:31 +08:00
karmada-bot 48c2bfb839
Merge pull request #898 from Garrybest/pr_job
support job scheduling
2021-11-12 09:17:32 +08:00
changzhen c4a6c03c99 add the validation for ResourceExploringWebhookConfiguration creation
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-11 15:04:09 +08:00
karmada-bot f7f53ee13f
Merge pull request #934 from XiShanYongYe-Chang/resource-explore-interface
Add interface design for Resource Explore Webhook
2021-11-11 14:50:16 +08:00
changzhen ea3d5620cd add interface design for resource explore
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-11 14:23:35 +08:00
guoyao 193e00d832 continue try to get resource when not found
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-10 15:58:43 +08:00
changzhen 0005cb6ce6 modify resourceexploringwebhookconfigurations to cluster scope
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-11-09 20:38:49 +08:00
Garrybest 47a6823afa support job scheduling
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-09 14:29:34 +08:00
guoyao b22da790ea cleanup some codes
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-08 20:43:39 +08:00
karmada-bot d0a7a9ac7e
Merge pull request #933 from gy95/continue
remove orphan works failed cannot print successful logs
2021-11-08 16:19:22 +08:00
karmada-bot ccf78c1c70
Merge pull request #891 from Garrybest/pr_dynamic_weight
divide replicas weighted by AvailableReplicas
2021-11-08 15:41:55 +08:00
guoyao fc578cc496 remove orphan works failed cannot print successful logs
Signed-off-by: guoyao <1015105054@qq.com>
2021-11-08 14:55:26 +08:00
karmada-bot 9d31827a4b
Merge pull request #925 from pigletfly/refactor-object-watcher
refactor object watcher interface
2021-11-08 11:39:42 +08:00
karmada-bot c3ca381cf5
Merge pull request #931 from iawia002/fix-comment
Update the comments of the FeatureGate instance
2021-11-08 11:16:34 +08:00
karmada-bot a21f369bd7
Merge pull request #910 from wawa0210/cleanup-muti-err
[Trival] remove muti error return when cordon.PatchOrReplace
2021-11-08 10:45:37 +08:00
Xinzhao Xu 3d8635f142 Update the comments of the FeatureGate instance
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-11-08 10:33:53 +08:00
karmada-bot 36d6174b5f
Merge pull request #899 from RainbowMango/pr_config_api
Add custom resource webhook API
2021-11-08 09:07:40 +08:00
wawa0210 e14ac56e58
clean up muti-err return
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
2021-11-07 09:32:24 +08:00
Garrybest d01fccfd3b add division algorithm test
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-06 22:39:57 +08:00
Garrybest a29f3f7a50 divide replicas by dynamic weight
Signed-off-by: Garrybest <garrybest@foxmail.com>
Co-authored-by: junqian <junqian@tencent.com>
2021-11-06 22:38:57 +08:00
karmada-bot 3d19af85a0
Merge pull request #928 from dddddai/skip-event
Skip propagating events by default
2021-11-06 20:36:29 +08:00
dddddai 795ad5bd40 skip propagating events by default
Signed-off-by: dddddai <dddwq@foxmail.com>
2021-11-06 19:58:04 +08:00
pigletfly dac00692e7 refactor object watcher interface
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-11-05 23:26:51 +08:00
iawia002 98ee6ce938 Introduce feature gates for the scheduler component
Signed-off-by: iawia002 <z2d@jifangcheng.com>
Signed-off-by: Xinzhao Xu <z2d@jifangcheng.com>
2021-11-05 21:03:02 +08:00
karmada-bot 51c911a60b
Merge pull request #894 from mrlihanbo/cluster_status_bugfix
add Timeout in WaitForCacheSync
2021-11-05 15:48:04 +08:00
lihanbo ac3878ec03 add Timeout in WaitForCacheSync
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-11-05 13:50:30 +08:00
karmada-bot 9f2835d3f2
Merge pull request #895 from mrlihanbo/queue_bugfix
prevent empty key from queue
2021-11-05 12:00:32 +08:00
RainbowMango bcd0575309 Add generated files
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-05 12:00:30 +08:00
RainbowMango ac72399c78 Add custom resource webhook API
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-11-05 12:00:30 +08:00
lihanbo cc0f6ed08b return nil when the obj not managed by Karmada in work status controller
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-11-05 11:33:58 +08:00
Garrybest 561474f652 change StaticWeightList to optional
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-04 09:42:03 +08:00
karmada-bot a6fd93fd23
Merge pull request #907 from lonelyCZ/remove-cordon-log
Remove klog from karmadactl cordon
2021-11-03 11:10:28 +08:00
lonelyCZ bc0250aa1c Remove klog from karmadactl cordon
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-11-02 22:29:56 +08:00
Garrybest a3e1b597c0 add object reference when calling gRPC
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-11-02 22:25:12 +08:00
karmada-bot 20255d148c
Merge pull request #904 from learner0810/clean_up
remove propagationpolicy controller
2021-11-02 19:07:04 +08:00
zhongjun.li a31708ae46 propagationpolicy clean up
Signed-off-by: zhongjun.li <zhongjun.li@daocloud.io>
2021-11-02 18:02:32 +08:00
algebra2k 4df8f92b0f
fix: tips for karmadactl help options
Signed-off-by: algebra2k <jackson.cloudnative@gmail.com>
2021-11-02 16:52:05 +08:00
lonelyCZ 221a8ad61b replace err report with RunE
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-11-01 23:28:10 +08:00
wawa0210 78603cc2c7
Introduce --wait flag for karmada join or unjoin command
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
2021-11-01 00:10:26 +08:00
wawa0210 a47fdfd73d
Extract join| unjoin parameters and pass struct to avoid too many parameters in the signature
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
2021-10-30 13:05:10 +08:00
karmada-bot e6d7ce369d
Merge pull request #885 from yvoilee/patch-1
fix: stop informer manager Instance once
2021-10-30 11:26:22 +08:00
Leo f698881e1f
fix: stop informer manager Instance once
Signed-off-by: yvoilee <yvoilee@gmail.com>
2021-10-29 18:20:35 +08:00
karmada-bot 085fdd23c0
Merge pull request #841 from Garrybest/pr_dispersal
add dispersal replica division preference
2021-10-29 13:16:09 +08:00
Kevin Wang 2b79b31131
Update pkg/apis/policy/v1alpha1/replicascheduling_types.go
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
2021-10-29 12:49:12 +08:00
duguhaotian ef8b6fe138 get secret from namespace which cluster in
Signed-off-by: duguhaotian <knowledgehao@163.com>
2021-10-29 03:05:53 +01:00
Garrybest 079778ed87 add dispersal replica division preference
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-10-28 20:53:29 +08:00
wawa0210 a87b3ca1e8
remove hpa works object as much as possible
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
2021-10-28 08:33:27 +08:00
karmada-bot 76ee54f2a3
Merge pull request #867 from iawia002/fix-lint
Update .golangci.yml file to include comments check rule
2021-10-27 09:31:36 +08:00
karmada-bot aed2e8ce66
Merge pull request #865 from wawa0210/fix-removeendpointslice
ignore NotFound error when deleting EndpointSlice
2021-10-26 16:38:27 +08:00
iawia002 10f17e1eec Update .golangci.yml file to include comments check rule
Signed-off-by: iawia002 <z2d@jifangcheng.com>
2021-10-26 11:41:28 +08:00
karmada-bot 0cb3ad6a01
Merge pull request #866 from XiShanYongYe-Chang/enlarge-waiting-time
enlarge waiting time in unjoin cluster process
2021-10-26 11:12:26 +08:00
changzhen e16d435c83 enlarge waiting time in unjoin cluster process
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-10-26 10:31:58 +08:00
zhongjun.li d8483eeffc clean up
Signed-off-by: zhongjun.li <zhongjun.li@daocloud.io>
2021-10-26 09:42:11 +08:00
wawa0210 597abca96e
Delete EndpointSlice should consider the situation that it no longer exists
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
2021-10-25 21:18:42 +08:00
karmada-bot 23793e37f7
Merge pull request #852 from XiShanYongYe-Chang/upgrade-k8s-version
upgrade testing k8s version to v1.20.11
2021-10-22 15:47:09 +08:00
changzhen ac42c00cc4 upgrade k8s version to v1.20.11
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-10-22 15:21:54 +08:00
karmada-bot 0dda841f03
Merge pull request #850 from gf457832386/gaofei/deletecomments
remove outdated comment
2021-10-22 15:07:12 +08:00
haozi007 d10da4f1db fix return invalid error
Signed-off-by: duguhaotian <knowledgehao@163.com>
2021-10-22 04:41:51 +01:00
gf457832386 a8a76bbbcf delete comment
Signed-off-by: gf457832386 <13278887558@163.com>
2021-10-22 11:10:18 +08:00
karmada-bot 4ac02a613f
Merge pull request #808 from RainbowMango/pr_nominate_owners
nominate approvers and reviewers
2021-10-22 10:46:09 +08:00
karmada-bot 765f0b4b04
Merge pull request #845 from mrlihanbo/bugfix-cluster-status
collect status even if cluster's deletionTimestamp is not zero
2021-10-22 09:19:09 +08:00
karmada-bot 9eaba3e1b0
Merge pull request #825 from lonelyCZ/add_binding_fullyapplied
Add FullyApplied to binding
2021-10-21 14:32:08 +08:00
karmada-bot 9c891f56cd
Merge pull request #844 from gy95/errors
replace github.com/pkg/errors with Go native error
2021-10-21 11:42:09 +08:00
karmada-bot d535f7047c
Merge pull request #838 from XiShanYongYe-Chang/adapt-scheduled-condition
adapt the Scheduled condition for binding
2021-10-21 10:59:07 +08:00
lihanbo abdfc61310 collect status even if cluster's deletionTimestamp is not zero
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-10-21 09:54:11 +08:00
guoyao 7452ca26c4 replace github.com/pkg/errors with Go native error
Signed-off-by: guoyao <1015105054@qq.com>
2021-10-20 16:29:45 +08:00
lonelyCZ f3eae223cc Add FullyApplied to binding
Signed-off-by: lonelyCZ <531187475@qq.com>
2021-10-20 16:23:07 +08:00
karmada-bot e9f4bdeb94
Merge pull request #837 from wawa0210/refactor-executespace-event
refactor execute space event
2021-10-20 12:07:06 +08:00
wawa0210 854cac6e72
refactor execute space event
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
2021-10-20 11:40:53 +08:00
karmada-bot a6011ecde6
Merge pull request #840 from XiShanYongYe-Chang/move-detector
move detector directory from pkg/util/ to pkg/
2021-10-20 11:40:06 +08:00
changzhen 8e1e16e950 adapt the Scheduled condition for binding
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-10-20 10:59:03 +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
karmada-bot 384c1322e9
Merge pull request #828 from mrlihanbo/delete-ns-bugfix
ignore not found error when deleting resource
2021-10-20 09:55:07 +08:00
karmada-bot 5f452943d3
Merge pull request #833 from mrlihanbo/karmadactl-cleanup
fatal when errors heppen in karmadactl
2021-10-19 21:00:05 +08:00
karmada-bot 9b97ca9222
Merge pull request #749 from pigletfly/cluster-controller-event
Add event for cluster controller
2021-10-19 19:21:04 +08:00
RainbowMango fb81c73c67 nominate approvers and reviewers
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-10-19 14:31:38 +08:00
karmada-bot 74371bf550
Merge pull request #754 from QAQ-rookie/feature/karmada-get
add get function to karmadactl
2021-10-19 14:18:03 +08:00
xubin c83ba34a5f add get function to karmadactl
Signed-off-by: xubin <781647222@qq.com>
2021-10-19 10:24:04 +08:00
pigletfly 3e1d4473e5 Add event for cluster controller
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-10-19 09:57:22 +08:00
lihanbo a643c093f1 fatal when errors heppen in karmadactl
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-10-19 09:05:34 +08:00
lihanbo fed776f419 ignore not found err when delete resource
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-10-18 19:34:30 +08:00
karmada-bot 41f0cb136a
Merge pull request #827 from ctripcloud/update-log
add cluster message in objectwatcher logs for convenient debugging
2021-10-18 19:24:01 +08:00
jingxueli 111999fa30 add cluster message in objectwatcher logs for convenient debugging
Signed-off-by: jingxueli <jingxueli@trip.com>
2021-10-18 17:48:21 +08:00
karmada-bot d2af1e1991
Merge pull request #823 from dddddai/sched-condition
Propose a Scheduled condition for RB/CRB
2021-10-18 15:15:01 +08:00
karmada-bot 15d0af0a03
Merge pull request #800 from wawa0210/execution-events
Reorganize  events code and add execution event
2021-10-18 14:13:02 +08:00
wawa0210 b247085261
Add execution event
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
2021-10-18 13:48:17 +08:00
dddddai eaea5c608b add scheduled condition for binding
Signed-off-by: dddddai <dddwq@foxmail.com>
2021-10-18 11:43:40 +08:00
Garrybest 08fa785670 run async worker with no intervals
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-10-18 10:58:49 +08:00
guoyao ab3f176163 replace deprecated package io/ioutil with packages io and os
Signed-off-by: guoyao <1015105054@qq.com>
2021-10-16 11:50:36 +08:00
karmada-bot cceed5c9f8
Merge pull request #791 from dddddai/from-cache
Fetch control plane workload from cache instead of api server
2021-10-15 17:55:57 +08:00
karmada-bot c97fa4b96e
Merge pull request #807 from wawa0210/fix-ensureremoveexecutionspace
refactor ensureRemoveExecutionSpace method
2021-10-15 17:46:05 +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
wawa0210 0503a0e4a9
Ensure that the return value of ensureRemoveExecutionSpace is correct
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
2021-10-15 17:21:13 +08:00
karmada-bot a9250c5977
Merge pull request #817 from dddddai/test
Aggregate status no matter if ensured work or not
2021-10-15 09:37:57 +08:00
dddddai 981201ce61 aggregate status no matter if ensured work or not
Signed-off-by: dddddai <dddwq@foxmail.com>
2021-10-14 15:44:11 +08:00
wawa0210 2d332b7556
Support delete ophranworks can continue the remove operation when an exception occurs, and finally return all deleted exceptions
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
2021-10-13 23:44:24 +08:00
iawia002 df019308be Fix several typos
Signed-off-by: iawia002 <z2d@jifangcheng.com>
2021-10-13 15:01:11 +08:00
jingxueli 63208e518a remove work ownerReferences field
Signed-off-by: jingxueli <jingxueli@trip.com>
2021-10-11 14:26:08 +08:00
wawa0210 a930a54c62
The tryCreateWorkload method does not directly output error information, directly returns error, which is handled by the external caller to avoid repeated output
Signed-off-by: wawa0210 <xiaozhang0210@hotmail.com>
2021-10-10 23:43:29 +08:00
changzhen cac82db303 move binding's namespace/name from work's label to annotation
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-10-09 16:28:00 +08:00
karmada-bot 791a137b04
Merge pull request #787 from learner0810/fix/null-pointer-value
return nil in case of creating cluster failed
2021-10-09 09:12:48 +08:00
karmada-bot 0cba977220
Merge pull request #785 from learner0810/fix/log-severity
fix/log-severity
2021-10-05 13:19:43 +08:00
learner0810 844708a8fc fix invalid memory address or nil pointer dereference
Signed-off-by: learner0810 <zhongjun.li@daocloud.io>
2021-10-03 13:11:28 +08:00
learner0810 3ffa9dc95f fix/log-severity
Signed-off-by: learner0810 <zhongjun.li@daocloud.io>
2021-10-02 20:26:53 +08:00
Garrybest 52a400202e add pod constraint in general estimator
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-09-30 18:20:16 +08:00
RainbowMango 1a60ade046 Deprecate ReplicaSchedulingPolicy API(must promote controller-gen cmd)
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-09-30 16:29:28 +08:00
karmada-bot 3f275c53e6
Merge pull request #770 from dddddai/owner-ref
Remove invalid ownerReference in HPA controller
2021-09-30 15:37:37 +08:00
changzhen acee9c6a09 modify event reason
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-09-30 12:09:42 +08:00
changzhen e25e2038a4 retain original code style
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-09-30 11:15:30 +08:00
pigletfly 8600106853 Add binding event
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-09-30 10:54:27 +08:00
karmada-bot a072055508
Merge pull request #747 from qianjun1993/metrics
add metrics for scheduler
2021-09-29 14:11:38 +08:00
karmada-bot 7d77644d43
Merge pull request #775 from Garrybest/pr_cleanup
clean up unstructured conversion
2021-09-29 12:05:35 +08:00
Garrybest e9a7a2a022 clean up unstructured conversion
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-09-29 11:33:19 +08:00
dddddai ede9fad83c add finalizer in resource binding and cluster resource binding
Signed-off-by: dddddai <dddwq@foxmail.com>
2021-09-29 11:21:51 +08:00
junqian 226b48bd52 add metrics for scheduler
Signed-off-by: junqian <junqian@tencent.com>
2021-09-29 10:34:08 +08:00
RainbowMango d601d04629 Revert API change to v0.8.0
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-09-28 17:03:46 +08:00
RainbowMango 56fbbe1054 adopt binding v1alpha2
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-09-28 17:03:46 +08:00
RainbowMango a362e07125 Enable multi-version and updates binding to v1alpha2
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-09-28 17:03:46 +08:00
karmada-bot 54ebf79278
Merge pull request #769 from XiShanYongYe-Chang/remove-unused-code
remove logic of cleanup resource template status when delete binding object
2021-09-28 12:15:33 +08:00
changzhen 8559d48298 remove logic of cleanup resource template status when binding object delete
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-09-28 11:12:25 +08:00
dddddai c9de7fbb07 remove invalid ownerReference in HPA Controller
Signed-off-by: dddddai <dddwq@foxmail.com>
2021-09-28 11:02:36 +08:00
iawia002 98cb836c31 Move the token and caData definitions to the API definition file
Signed-off-by: iawia002 <z2d@jifangcheng.com>
2021-09-27 10:11:52 +08:00
changzhen e118c7909e fix an error when karmada-controller-manager restart
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-09-26 20:39:51 +08:00
karmada-bot fed43983af
Merge pull request #758 from iawia002/cleanup
Move GenerateKey function out of the worker file
2021-09-26 11:48:30 +08:00