Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#1408] add fetch-kubernetes-hash script #1409

Merged
merged 1 commit into from
Jul 27, 2022

Conversation

yjqg6666
Copy link
Contributor

@yjqg6666 yjqg6666 commented Jul 26, 2022

What type of PR is this?

/kind feature

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #1408

Special notes for reviewers:

This script is used to help adding new k8s version support.
This script require jq had been installed.
Hash file kubernetes-hashes.json would be created and can be diffed to pkg/files/file.go.

Reference: #1306.
Related to: #1407.

@ks-ci-bot ks-ci-bot added kind/feature Categorizes issue or PR as related to a new feature. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Jul 26, 2022
@yjqg6666 yjqg6666 force-pushed the k8s-hash-script branch 2 times, most recently from 8edaff2 to 9611bdc Compare July 27, 2022 02:10
@yjqg6666
Copy link
Contributor Author

Running this script could have output in the following format(for copy&paste into file.go):

$ bash ./scripts/fetch-kubernetes-hash.sh

kubeadm@amd64
"v1.23.9": "947571c50ab840796fdd4ffb129154c005dfcb0fe83c6eff392d46cf187fd296",
"v1.24.3": "406d5a80712c45d21cdbcc51aab298f0a43170df9477259443d48eac116998ff",
kubeadm@arm64
"v1.23.9": "a0a007023db78e5f78d3d4cf3268b83f093201847c1c107ffb3dc695f988c113",
"v1.24.3": "ea0fb451b69d78e39548698b32fb8623fad61a1a95483fe0add63e3ffb6e31b5",
kubelet@amd64
"v1.23.9": "a5975920be1de0768e77ef101e4e42b179406add242c0883a7dc598f2006d387",
"v1.24.3": "da575ceb7c44fddbe7d2514c16798f39f8c10e54b5dbef3bcee5ac547637db11",
kubelet@arm64
"v1.23.9": "c11b14ab3fa8e567c54e893c5a937f53618b26c9b62416cc8aa7760835f68350",
"v1.24.3": "6c04ae25ee9b434f40e0d2466eb4ef5604dc43f306ddf1e5f165fc9d3c521e12",
kubectl@amd64
"v1.23.9": "053561f7c68c5a037a69c52234e3cf1f91798854527692acd67091d594b616ce",
"v1.24.3": "8a45348bdaf81d46caf1706c8bf95b3f431150554f47d444ffde89e8cdd712c1",
kubectl@arm64
"v1.23.9": "66659f614d06d0fe80c5eafdba7073940906de98ea5ee2a081d84fa37d8c5a21",
"v1.24.3": "bdad4d3063ddb7bfa5ecf17fb8b029d5d81d7d4ea1650e4369aafa13ed97149a",

The hash info have saved to file kubernetes-hashes.json.

$ cat kubernetes-hash.json

image

@24sama
Copy link
Collaborator

24sama commented Jul 27, 2022

Hi @yjqg6666 , it's a very useful script. And could you please move this file into hack directory? Because we usually use this directory to store some tool scripts.

@yjqg6666
Copy link
Contributor Author

@24sama Moved and rebased on the current master.

@24sama
Copy link
Collaborator

24sama commented Jul 27, 2022

@24sama Moved and rebased on the current master.

Thanks!

/lgtm
/approve

@ks-ci-bot ks-ci-bot added the lgtm Indicates that a PR is ready to be merged. label Jul 27, 2022
@ks-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 24sama, yjqg6666

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

@ks-ci-bot
Copy link
Collaborator

LGTM label has been added.

Git tree hash: 277477761c160b71579fb2c9dc07b1fcb31656d5

@ks-ci-bot ks-ci-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 27, 2022
@ks-ci-bot ks-ci-bot merged commit 691611a into kubesphere:master Jul 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add shell script for batch fetching k8s file hashes
3 participants