-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Script to update third_party directory. #78
Conversation
297ffd6
to
f3b79b5
Compare
I think that the e2e tests are facing the same issue reported here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've never used updatecli but everything LGTM, including the source file list
|
||
# Check if the base directory exists | ||
if [ ! -d "$REPOSITORY_DIR" ]; then | ||
echo "Error: Base directory $base_directory does not exist." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where does $base_directory
come from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 here
what happen if $base_directory is unset?
Since you are using bash, you could leverage parameter substitution as explained on
https://tldp.org/LDP/abs/html/parameter-substitution.html
I usually like to start my bash script with
set -eux
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ops, copy and paste problems. Sorry. Let me fix it .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wow, that's pretty cool!
Everything LGTM, modulo what Fabrizio pointed out
Adds a new updatecli script to update the third_party directory files with the latest releases of the apiserver and apimachinery. Signed-off-by: José Guilherme Vanz <jguilhermevanz@suse.com> Signed-off-by: José Guilherme Vanz <jguilhermevanz@suse.com>
Updates the Github actions to get the Sigstore fix and make kwctl able to run the policy again. Signed-off-by: José Guilherme Vanz <jguilhermevanz@suse.com>
Description
Adds a new updatecli script to update the third_party directory files with the latest releases of the apiserver and apimachinery.
Fix #72
It's possible to see the CI job and the consequent PR generated using the initial version of this PR in my fork.