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

Script to update third_party directory. #78

Merged
merged 2 commits into from
Sep 6, 2024
Merged

Conversation

jvanz
Copy link
Member

@jvanz jvanz commented Sep 3, 2024

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.

@jvanz jvanz self-assigned this Sep 3, 2024
@jvanz jvanz requested a review from olblak September 3, 2024 17:57
@jvanz jvanz force-pushed the main branch 3 times, most recently from 297ffd6 to f3b79b5 Compare September 3, 2024 20:41
@jvanz jvanz marked this pull request as ready for review September 3, 2024 20:43
@jvanz jvanz requested a review from a team as a code owner September 3, 2024 20:43
@jvanz
Copy link
Member Author

jvanz commented Sep 4, 2024

I think that the e2e tests are facing the same issue reported here

Copy link
Contributor

@fabriziosestito fabriziosestito left a 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."
Copy link
Contributor

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?

Copy link
Member

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

Copy link
Member Author

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 .

Copy link
Member

@flavio flavio left a 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>
@jvanz jvanz merged commit 1882769 into kubewarden:main Sep 6, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: automate bumps of dependencies under third_party/
4 participants