karmada icon indicating copy to clipboard operation
karmada copied to clipboard

Added karmadactl command line tool feature :karmadactl config image list

Open tiansuo114 opened this issue 1 year ago • 17 comments

What type of PR is this? /kind feature

What this PR does / why we need it: Support command of karmadactl config images list

user@virtual-machine:karmada#make karmadactl
BUILD_PLATFORMS=linux/amd64 hack/build.sh karmadactl
!!! Building karmadactl for linux/amd64:
+ CGO_ENABLED=0
+ GOOS=linux
+ GOARCH=amd64
+ go build -ldflags '-X github.com/karmada-io/karmada/pkg/version.gitVersion=v1.11.0 -X github.com/karmada-io/karmada/pkg/version.gitCommit=... - -o _output/bin/linux/amd64/karmadactl github.com/karmada-io/karmada/cmd/karmadactl
+ set +x

user@virtual-machine:karmada/_output/bin/linux/amd64#/karmadactl config image list
registry.k8s.io/kube-apiserver:v1.29.6
registry.k8s.io/kube-controller-manager:v1.29.6
registry.k8s.io/etcd:3.5.13-0
docker.io/alpine:3.19.1
docker.io/karmada/karmada-scheduler:v1.11.0
docker.io/karmada/karmada-controller-manager:v1.11.0
docker.io/karmada/karmada-webhook:v1.11.0
docker.io/karmada/karmada-aggregated-apiserver:v1.11.0

Which issue(s) this PR fixes: Fixes #4086 This PR is related to the documentation PR: https://github.com/karmada-io/karmada/pull/5277 Special notes for your reviewer: @liangyuanpeng Does this PR introduce a user-facing change?:


tiansuo114 avatar Aug 06 '24 05:08 tiansuo114

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 41.67%. Comparing base (9754a28) to head (4ceb01d). Report is 8 commits behind head on master.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5306      +/-   ##
==========================================
+ Coverage   41.64%   41.67%   +0.02%     
==========================================
  Files         653      653              
  Lines       55484    55518      +34     
==========================================
+ Hits        23109    23135      +26     
- Misses      30876    30883       +7     
- Partials     1499     1500       +1     
Flag Coverage Δ
unittests 41.67% <ø> (+0.02%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov-commenter avatar Aug 06 '24 06:08 codecov-commenter

May need help😭😭, in my own project's github action, these tests passed correctly, but when I commit, these tests become failed, what should I do to fix these problems @liangyuanpeng

tiansuo114 avatar Aug 06 '24 08:08 tiansuo114

/assign /retest

liangyuanpeng avatar Aug 06 '24 09:08 liangyuanpeng

/ok-to-test

liangyuanpeng avatar Aug 06 '24 09:08 liangyuanpeng

Thanks you working for it, could you please add some e2e test here? Maybe take a look at how kubeadm does it.感谢您的工作,您可以在此处添加一些 e2e 测试吗?也许看看 kubeadm 是如何做到的。

I have fixed the issues you pointed out and provided new e2e test cases. Please let me know if there are any further modifications needed. :)

tiansuo114 avatar Aug 09 '24 04:08 tiansuo114

This PR is related to the documentation PR: #5277

tiansuo114 avatar Aug 12 '24 13:08 tiansuo114

This PR is related to the documentation PR: https://github.com/karmada-io/karmada/pull/5277

@tiansuo114

Add to PR issue body would be great, thank you!

image

liangyuanpeng avatar Aug 12 '24 14:08 liangyuanpeng

This PR is related to the documentation PR: #5277此 PR 与文档 PR 相关: #5277

@tiansuo114

Add to PR issue body would be great, thank you!添加到 PR 问题正文会很棒,谢谢!

image

Ok, I modified the pr and the other two questions about pr and added links to it

tiansuo114 avatar Aug 13 '24 07:08 tiansuo114

Ask @zhzhuang-zju have a look. /assign @zhzhuang-zju

XiShanYongYe-Chang avatar Aug 15 '24 09:08 XiShanYongYe-Chang

/hold need squash the commits when ready to merge.

liangyuanpeng avatar Sep 03 '24 07:09 liangyuanpeng

/hold /抓住 need squash the commits when ready to merge.准备合并时需要压缩提交。

Ok, I will squash commit after the problem in comment is solved

tiansuo114 avatar Sep 03 '24 07:09 tiansuo114

@zhzhuang-zju anyelse comment here?

liangyuanpeng avatar Sep 11 '24 08:09 liangyuanpeng

@zhzhuang-zju anyelse comment here?

Can this pr be merged now or does it need to be further modified😭😭

tiansuo114 avatar Sep 15 '24 01:09 tiansuo114

/lgtm assign @XiShanYongYe-Chang

zhzhuang-zju avatar Sep 18 '24 01:09 zhzhuang-zju

The command in this feature PR has been modified to match the current documentation format, but its functionality remains unchanged and is still the same as it was initially. @liangyuanpeng @RainbowMango

tiansuo114 avatar Oct 11 '24 12:10 tiansuo114

Based on community meetings, it seems that this feature is not necessary and will increase maintenance costs, so this pr is temporarily closed

tiansuo114 avatar Oct 24 '24 00:10 tiansuo114

https://github.com/karmada-io/karmada/pull/5744 is migration to here (for Summer OSPP 2024)

liangyuanpeng avatar Oct 28 '24 09:10 liangyuanpeng

Based on the OSPP project's requirements, this PR has been reopened. However, the relevant content in this PR has been changed to add automated testing for the new karmadactl init --config command as indicated in the link.

@liangyuanpeng @RainbowMango @zhzhuang-zju

tiansuo114 avatar Oct 28 '24 11:10 tiansuo114

/hold cancel

tiansuo114 avatar Oct 28 '24 11:10 tiansuo114

#5744 is migration to here (for Summer OSPP 2024)

The code in this PR has been re-pushed and tested, and after a code clean-up, I’ve removed the unnecessary metadata part in KarmadaInitConfig. We can now continue with the previous review.🎉

If need to track this issue, please refer to the relevant changes in this PR. @RainbowMango @liangyuanpeng

tiansuo114 avatar Oct 28 '24 13:10 tiansuo114

@liangyuanpeng: GitHub didn't allow me to request PR reviews from the following users: want, to, review, for, if, you.

Note that only karmada-io members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

thank you! /lgtm /cc @zhzhuang-zju if you want to review for karmadactl

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

karmada-bot avatar Oct 28 '24 16:10 karmada-bot

It seems this is the last PR for the summer OSPP program. #5387. Please let me know if I miss anything.

RainbowMango avatar Oct 29 '24 03:10 RainbowMango

It seems this is the last PR for the summer OSPP program. #5387. Please let me know if I miss anything.

Yes, this PR is the last one for the OSPP tasks. Up until now, with the merge of this PR into the main branch, all planned PRs have been incorporated into Karmada. PR Link 1: https://github.com/karmada-io/karmada/pull/5277 PR Link 2: https://github.com/karmada-io/karmada/pull/5306 PR Link 3: https://github.com/karmada-io/karmada/pull/5357 PR Link 4: https://github.com/karmada-io/website/pull/690 PR Link 5: https://github.com/karmada-io/karmada/pull/5321

tiansuo114 avatar Oct 29 '24 03:10 tiansuo114

It seems this is the last PR for the summer OSPP program. https://github.com/karmada-io/karmada/issues/5387.

Yes, it is. /lgtm /approve

liangyuanpeng avatar Oct 29 '24 06:10 liangyuanpeng

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: liangyuanpeng, RainbowMango

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

karmada-bot avatar Oct 29 '24 06:10 karmada-bot