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

add Kustomize 5.2.1 in Kind GHA testing #43

Merged
merged 4 commits into from
Mar 25, 2024

Conversation

tarilabs
Copy link
Member

Resolves #42

Description

As part of KF 1.9 release checklist, make sure Kustomize 5.2.1. is used when testing the Model Registry manifests

Merge criteria:

  • The commits and have meaningful messages; the author will squash them after approval or will ask to merge with squash.
  • [n/a] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • [n/a] The developer has manually tested the changes and verified that the changes work

Signed-off-by: Matteo Mortari <[email protected]>
@tarilabs tarilabs force-pushed the tarilabs-20240318-kustomize branch from 8dea997 to 1235c35 Compare March 18, 2024 21:18
@tarilabs tarilabs force-pushed the tarilabs-20240318-kustomize branch from 18ed6b6 to 36a97b2 Compare March 18, 2024 21:47
@tarilabs tarilabs force-pushed the tarilabs-20240318-kustomize branch from 36a97b2 to a664ac1 Compare March 18, 2024 21:50
@tarilabs tarilabs marked this pull request as ready for review March 18, 2024 21:55
@google-oss-prow google-oss-prow bot requested review from Tomcli and zijianjoy March 18, 2024 21:55
@tarilabs tarilabs requested a review from rareddy March 19, 2024 11:23
@@ -51,6 +50,7 @@ jobs:
if: env.BUILD_CONTEXT == 'main'
shell: bash
env:
IMG: ${{ env.IMG_ORG }}/${{ env.IMG_REPO }}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm probably missing something, but what's the reason for moving the IMG env variable?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

env at the top level of GHA cannot depend on one-another :(

so this was the original strategy by @lampajr and I'm just putting it back in place

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

env at the top level of GHA cannot depend on one-anothe

+1 you cannot define top-level env variables from other ones, that's is only possible at step level

run: |
echo "Download kustomize 5.2.1"
mkdir $GITHUB_WORKSPACE/kustomize
curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash -s "5.2.1" "$GITHUB_WORKSPACE/kustomize"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same question as other PR. Can we try to avoid using curl | bash?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried first an alternative with

471563b#diff-ee244f6eeb2d7ac8c604cdc91588b49204dea5594df11b20af816ad9f4b54467R36-R39

that is using a dedicated GHA to download kustomize, but the performance was horrible due to the fact the GHA action step does much more we don't currently need.

So at this time, this seems the most vanilla and default way to override for a specific version of kustomize that what bundled in GHA automatically

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

btw, by "vanilla and default way" I mean what indicated by the manual, here: https://kubectl.docs.kubernetes.io/installation/kustomize/binaries/

Copy link
Contributor

@rareddy rareddy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rareddy, tarilabs

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

@google-oss-prow google-oss-prow bot merged commit 784c9fb into kubeflow:main Mar 25, 2024
11 checks passed
rkubis pushed a commit to rkubis/model-registry that referenced this pull request Apr 17, 2024
This commit adds rest api testing to the openshift-ci deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kustomize (make sure using 5.2.1 per Manifest wg request in KF 1.9)
4 participants