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

Update to Kubernetes v1.30.2 #425

Merged
merged 1 commit into from
Jun 26, 2024
Merged

Update to Kubernetes v1.30.2 #425

merged 1 commit into from
Jun 26, 2024

Conversation

mikkeloscar
Copy link
Collaborator

Update dependencies to Kubernetes v1.30.2

@mikkeloscar mikkeloscar added the dependencies Pull requests that update a dependency file label Jun 25, 2024
@otrosien
Copy link
Member

@mikkeloscar you have been doing all the kubernetes upgrades so far. Is there some template or documentation you're following for this? (in order to spread some knowledge among the maintainers..)

@linki
Copy link
Member

linki commented Jun 25, 2024

👍

Signed-off-by: Mikkel Oscar Lyderik Larsen <[email protected]>
@otrosien
Copy link
Member

👍

@mikkeloscar
Copy link
Collaborator Author

@otrosien This update was particularly non-trivial because the code gen tools were updated and the flags etc. changed, so I went through what changed and adjusted it.

Normally it's just about updating the version in go.mod. Here is a simple script to simplify it:

#!/usr/bin/env bash

set -euo pipefail

package_path="${1:-"."}"
k8s_version="v0.30.2"
go_version="1.22"

cd "$package_path" || exit

sed -i "s/^\(\s\+k8s.io\/.*\)\sv0\.[[:digit:]]\+\.[[:digit:]]\+$/\1 ${k8s_version}/g" go.mod
sed -i "s/^go 1\.[[:digit:]]\+$/go ${go_version}/g" go.mod

for p in $(go mod edit -json | jq -r '.Require[] | select(.Indirect != true) | .Path' | grep -v "k8s.io"); do
    go get -u "$p"
done

go mod tidy


# verify build
make clean
make
make test

@mikkeloscar
Copy link
Collaborator Author

👍

@mikkeloscar mikkeloscar merged commit dcb643d into master Jun 26, 2024
8 checks passed
@mikkeloscar mikkeloscar deleted the kubernetes-v1.30.2 branch June 26, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants