Commit Graph

521 Commits

Author SHA1 Message Date
karmada-bot 749c2d838b
Merge pull request #391 from XiShanYongYe-Chang/golangc-lint
enable gosec and fix warnings
2021-06-02 17:37:40 +08:00
gy95 365f405b5f modify the way of getting GOPATH variable
Signed-off-by: gy95 <guoyao17@huawei.com>
2021-06-02 17:20:32 +08:00
RainbowMango 132e1df0dc Add good first issue template
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-06-02 16:58:57 +08:00
RainbowMango 0f7c9f7738 Change Stringer interface implementation from pointer receiver to value receiver.
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-06-02 15:45:15 +08:00
karmada-bot 5e23d1a706
Merge pull request #396 from lfbear/bugfix-wrong-folder-kickstart
bug fix wrong folder kickstart
2021-06-02 10:12:41 +08:00
changzhen 5473488c04 fix golangci-lint: Implicit memory aliasing in for loop(G601)
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-06-01 16:42:57 +08:00
lfbear 70a1ed57a1 bug fix wrong folder kickstart
Signed-off-by: lfbear <lfbear@gmail.com>
2021-06-01 12:49:04 +08:00
Zhen Chang bc7cfd8dc5
add e2e of imageOverrider (#379)
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-05-28 14:46:02 +08:00
Wang Bing 40e7a6eff9
Add kubebuilder shortName tag (#376)
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-05-28 11:36:21 +08:00
Hanbo Li 0122d36d82
reschedule resource bindings when reference cluster propagation policy update (#381)
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-05-28 09:32:07 +08:00
Kevin Wang d5ab3dddcc Update README.md
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
2021-05-28 00:34:55 +08:00
lfbear 576c31a901 optimize installation
Signed-off-by: lfbear <lfbear@gmail.com>
2021-05-28 00:34:55 +08:00
Hongcai Ren 6fa33a1071
Cleanup resource bindings when cluster propagation policy has been removed (#380)
Signed-off-by: RainbowMango <qdurenhongcai@gmail.com>
2021-05-27 19:11:32 +08:00
Peng Li ec97ab4089
fix issue that Scheduler do not schedule resourcebinding generated from clusterpropagationpolicy (#374)
Signed-off-by: pengli <justdoit.pli@gmail.com>
2021-05-27 15:31:11 +08:00
changzhen 4ae750b65d add UT of imageOverrider
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-05-26 18:16:44 +08:00
changzhen fa9a2ea662 ImageOverrider Implementation
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-05-26 18:16:44 +08:00
gy95 06e3bb360b
README add go link (#375)
Signed-off-by: gy95 <guoyao17@huawei.com>
2021-05-25 17:54:05 +08:00
lihanbo 7e1e7b9726 add e2e test for scheduling base on cluster provider/region
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-05-25 09:11:57 +08:00
lihanbo b565cc0caa support schedule based on cluster provider/region/zone
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-05-25 09:11:57 +08:00
Iceber Gu 196c394d88
karmadactl: fix join in dry-run mode (#355)
Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
2021-05-24 10:47:00 +08:00
gy95 a6461cd434
remove Makefile SOURCES variable (#334)
Signed-off-by: gy95 <guoyao17@huawei.com>
2021-05-24 09:34:47 +08:00
huiwq1990 e83639b44d
change to err:= (#368)
Signed-off-by: huiwq1990 <huiwq1990@163.com>
2021-05-22 18:54:44 +08:00
Long Dai 56c932e5a6
ci: use verify-staticcheck.sh instead (#350)
Signed-off-by: Long Dai <long0dai@foxmail.com>
2021-05-22 12:59:13 +08:00
Long Dai 72948a3e47
ci: optimize image build (#353)
Signed-off-by: Long Dai <long0dai@foxmail.com>
2021-05-21 10:16:54 +08:00
lihanbo 9834f8b981 add e2e test for taint toleration schedule
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-05-21 09:20:03 +08:00
lihanbo 08fdfc134a Update vendor
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-05-21 09:20:03 +08:00
lihanbo 483d5d9fa0 support schedule based on cluster taint toleration
Signed-off-by: lihanbo <lihanbo2@huawei.com>
2021-05-21 09:20:03 +08:00
Rui Fang bbcf69f368
work: fix workload name conflicts (#358) (#359)
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-05-20 10:34:27 +08:00
Wang Bing 7a0d6c9b8c
Remove cluster namespace (#352)
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-05-18 23:42:07 +08:00
Iceber Gu 831dfe27bc
scheduler: fix the handling of the *PropatationPolicy updates (#351)
Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
2021-05-18 18:10:37 +08:00
Iceber Gu 4b5ec0c637
scheduler: fix the schedule function error return (#346)
Signed-off-by: Iceber Gu <wei.cai-nat@daocloud.io>
2021-05-18 00:51:31 +08:00
yuhang efb057932c
Adjust non-root user in quick start (#339)
Signed-off-by: futuretea <1913508671@qq.com>
2021-05-17 20:29:16 +08:00
Kevin Wang 57c3561fff fix lint failure in controller-manager options.go
Signed-off-by: Kevin Wang <kevinwzf0126@gmail.com>
2021-05-17 17:04:13 +08:00
pigletfly ec6f2fdd74 Fix api version
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-05-17 14:24:57 +08:00
gy95 92c5df6c35 add linter whitespace and fix linter errors
Signed-off-by: gy95 <guoyao17@huawei.com>
2021-05-17 14:23:24 +08:00
Rui Fang f598cb4365
scheduler: fix bug of plugin invalid memory address (#341)
Signed-off-by: Garrybest <garrybest@foxmail.com>
2021-05-17 14:11:49 +08:00
pigletfly 1056efa08c Add enalbe-leader-election flag
Signed-off-by: pigletfly <wangbing.adam@gmail.com>
2021-05-17 12:18:52 +08:00
yuhang 76429c6516
Fix panic when no clusters specified (#340)
Signed-off-by: futuretea <1913508671@qq.com>
2021-05-17 11:59:19 +08:00
gy95 6a2ade4512
use const string instead of string literal (#335)
Signed-off-by: gy95 <guoyao17@huawei.com>
2021-05-17 09:16:42 +08:00
gy95 d33ae3818c
fix blank lines of import packages and repeated import problems (#337)
Signed-off-by: gy95 <guoyao17@huawei.com>
2021-05-16 19:01:11 +08:00
LeoLiuYan c9f3fd8997 Add gitignore for vscode
Signed-off-by: LeoLiuYan <929908264@qq.com>
2021-05-14 12:22:28 +08:00
Long Dai 5d2854b747 docs: clean up whitenoise
Signed-off-by: Long Dai <long0dai@foxmail.com>
2021-05-14 12:19:58 +08:00
anirudhramnath 112dacd239
Fix import order (#324)
Signed-off-by: anirudhramnath <anirudh.ramnath@live.com>
2021-05-14 09:29:54 +08:00
Zhen Chang 54e198eaa9
sort OverridePolicy/ClusterOverridePolicy by name when more than one policy matched (#316)
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-05-13 16:12:44 +08:00
futuretea 39d1a3a636 Fix goimports
Signed-off-by: futuretea <1913508671@qq.com>
2021-05-13 11:31:19 +08:00
futuretea fc79a90507 Enable goimports local prefix check
Signed-off-by: futuretea <1913508671@qq.com>
2021-05-13 11:31:19 +08:00
Peng Li e0f725ca2d
generate resourcebinding from clusterpropagationpolicy based on the "namespace" exist of the comming object (#315)
Signed-off-by: pengli <justdoit.pli@gmail.com>
2021-05-13 10:20:14 +08:00
Hongcai Ren 24ab1993ee
Added more clear description for override API (#318)
Signed-off-by: RainbowMango <renhongcai@huawei.com>
2021-05-12 20:12:07 +08:00
liufen90 d91f7868d0
support proxy (#307)
Signed-off-by: liufen90 <564795204@qq.com>
2021-05-12 10:51:15 +08:00
Zhen Chang 6a2588245d
match the first PropagationPolicy/ClusterPropagationPolicy in alphabetical order (#306)
Signed-off-by: changzhen <changzhen5@huawei.com>
2021-05-11 11:23:38 +08:00