Skip to content

Conversation

klueska
Copy link
Collaborator

@klueska klueska commented Mar 4, 2024

No description provided.

Signed-off-by: Kevin Klues <kklues@nvidia.com>
@klueska klueska requested a review from elezar March 4, 2024 13:31
@klueska klueska self-assigned this Mar 4, 2024
# The kubernetes tag to build the kind cluster from
# From https://github.com/kubernetes/kubernetes/tags
# See also https://hub.docker.com/r/kindest/node/tags
: ${KIND_K8S_REPO:="https://github.com/kubernetes/kubernetes.git"}
Copy link
Member

Choose a reason for hiding this comment

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

When I tried this locally, there were issues with extracting the version as below since we're doing a shallow-clone. Were you able to get around this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

What do you mean exactly by "issues with extracting the version as below"?

I didn't have any issues. The only place this variable is even used is in build-kind-image.sh, so now this just allows what used to be hard-coded there to be overwritten.

Copy link
Member

Choose a reason for hiding this comment

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

Let's say that you want to check out a branch:

KIND_K8S_REPO=https://github.com/pohly/kubernetes \
KIND_K8S_TAG=dra-structured-parameters \
    ./demo/clusters/kind/create-cluster.sh

Since we do a shallow clone of the repo and this does not contain tag information the kubernets build fails.

I was able to get around this locally in initial testing by setting KUBE_GIT_VERSION=v1.30.0 in addition to the envvars above. This could also be addressed by:

  1. Building a full repo clone that's already checked out instead.
  2. "unshallowing" the clone so that git describe --tags returns some sane version string in the repo.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am also setting KUBE_GIT_VERSION=v1.30.0 (because this is what you told me to do in slack). I never tried without it (nor really attempted to understand why it was necessary, apparently).

@klueska klueska added this to the unscheduled milestone Aug 13, 2025
@klueska klueska added the ci/testing issue/PR related to CI and/or testing label Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/testing issue/PR related to CI and/or testing
Projects
Status: Backlog
Development

Successfully merging this pull request may close these issues.

2 participants