Skip to content

Add skipVersionCheck option for K8s#2222

Merged
cb-github-robot merged 2 commits intocloud-barista:mainfrom
seokho-son:main
Nov 25, 2025
Merged

Add skipVersionCheck option for K8s#2222
cb-github-robot merged 2 commits intocloud-barista:mainfrom
seokho-son:main

Conversation

@seokho-son
Copy link
Copy Markdown
Member

Add skipVersionCheck option for K8s.

  • this option would be useful for dev & testing K8s provisioning.

Signed-off-by: Seokho Son <shsongist@gmail.com>
Copilot AI review requested due to automatic review settings November 24, 2025 09:41
@seokho-son
Copy link
Copy Markdown
Member Author

PTAL @hanizang77

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a skipVersionCheck query parameter to Kubernetes cluster creation and upgrade APIs, enabling developers to bypass version validation during development and testing with unlisted K8s versions.

Key Changes:

  • Added skipVersionCheck boolean query parameter to RestPostK8sCluster and RestPutUpgradeK8sCluster endpoints
  • Modified validation functions (validateAtCreateK8sCluster and validateAtUpgradeK8sCluster) to conditionally skip version checks
  • Updated Swagger documentation to reflect the new parameter

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/interface/rest/server/resource/k8scluster.go Added query parameter parsing and updated function calls to pass skipVersionCheck flag to create and upgrade functions
src/interface/rest/docs/swagger.yaml Added skipVersionCheck parameter definition to OpenAPI spec for both create and upgrade endpoints
src/interface/rest/docs/docs.go Generated documentation reflecting the new skipVersionCheck parameter
src/core/resource/k8scluster.go Updated function signatures and validation logic to support conditional version checking with appropriate warning logs
src/core/infra/provisioning.go Updated dynamic cluster creation to pass skipVersionCheck=false by default

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: Seokho Son <shsongist@gmail.com>
@seokho-son
Copy link
Copy Markdown
Member Author

/approve

@github-actions github-actions bot added the approved This PR is approved and will be merged soon. label Nov 25, 2025
@cb-github-robot cb-github-robot merged commit ea62d3c into cloud-barista:main Nov 25, 2025
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved This PR is approved and will be merged soon.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants