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 K8s version parameter to kind cluster creation #3500

Merged
merged 4 commits into from
Dec 15, 2023
Merged

Conversation

busma13
Copy link
Contributor

@busma13 busma13 commented Dec 14, 2023

  • This PR allows for the setting of a K8S_VERSION env variable when running yarn test:k8s or yarn k8s (K8s - parameterize k8s version in kind (e2e tests and k8s-env command) #3482)
  • The env variable is converted to a command option which is used by the Kind class to create a kind cluster using that k8s version.
  • A map of kind versions to available images lives in the Kind class and will need to be updated with new kind versions.
  • K8s images are limited to one minor version per kind version, with the patch level equal to the latest version at release time. For example:
    • kind v0.20.0 --> kindest/node:v1.26.6
    • kind v0.19.0 --> kindest/node:v1.26.4
    • kind v0.19.0 --> kindest/node:v1.26.3
  • Create Kind class
  • add clusterName option to k8s

@busma13 busma13 marked this pull request as ready for review December 14, 2023 16:35
@busma13 busma13 requested a review from godber December 14, 2023 16:35
}
}

const map = {
Copy link
Member

Choose a reason for hiding this comment

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

I would avoid every using a name as generic as map. You don't need to change this now, but next time your come across this I'd give it a more descriptive name.

@godber
Copy link
Member

godber commented Dec 14, 2023

I want to merge this, please bump the version and let me know after you do and I will merge it.

@godber godber merged commit d66820a into master Dec 15, 2023
39 checks passed
@godber godber deleted the k8s-version-feature branch December 15, 2023 00:44
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.

2 participants