-
Notifications
You must be signed in to change notification settings - Fork 35
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 support for 2.3.0 schema version #219
Add support for 2.3.0 schema version #219
Conversation
Signed-off-by: Michael Valdron <[email protected]>
Signed-off-by: Michael Valdron <[email protected]>
N/A |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #219 +/- ##
==========================================
+ Coverage 61.01% 61.12% +0.11%
==========================================
Files 43 43
Lines 5112 5119 +7
==========================================
+ Hits 3119 3129 +10
+ Misses 1804 1802 -2
+ Partials 189 188 -1 ☔ View full report in Codecov by Sentry. |
pkg/devfile/parse_test.go
Outdated
@@ -46,7 +46,7 @@ func TestParseDevfileAndValidate(t *testing.T) { | |||
|
|||
devfileStruct := schema.DevWorkspaceTemplate{ | |||
TypeMeta: metav1.TypeMeta{ | |||
APIVersion: "2.1.0", | |||
APIVersion: "2.3.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of moving this to 2.3.0
what do you think about having a struct for each version to test against, it looks to me like we are moving to only testing 2.3.0
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't need to update all the tests to be 2.3.0
, library is, and should be, backward compatible, so for any existing features we test with, leave it as it's previous version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only bump-up devfile version in test if the unit test covers new features introduced in the latest version
@michael-valdron
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, just created this issue: devfile/api#1603
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only bump-up devfile version in test if the unit test covers new features introduced in the latest version @michael-valdron
@yangcao77 @Jdubrick Reverted with 267aa8b, though I left in the changes to the unsupportedSchemaError
test case since the result will change with the addition of 2.3.0
.
Signed-off-by: Michael Valdron <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: michael-valdron, yangcao77 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 |
* update schema version to 2.2.2 for nodejs test child devfiles (#213) Signed-off-by: Michael Valdron <[email protected]> * add ubuntu server bypass error case for invalid registry urls (#217) Signed-off-by: Michael Valdron <[email protected]> * Fix parent version on test devfile (#216) * Fix parent version on test devfile Signed-off-by: thepetk <[email protected]> * Update parent version Signed-off-by: thepetk <[email protected]> --------- Signed-off-by: thepetk <[email protected]> * bump k8s api (#212) Signed-off-by: Kartikey-star <[email protected]> * update references to Go 1.21 in docs (#218) Signed-off-by: Michael Valdron <[email protected]> * Add support for 2.3.0 schema version (#219) * updateApi.sh script includes newer schema versions Signed-off-by: Michael Valdron <[email protected]> * devfile 2.3.0 support Signed-off-by: Michael Valdron <[email protected]> * revert schema versions for testing older features Signed-off-by: Michael Valdron <[email protected]> --------- Signed-off-by: Michael Valdron <[email protected]> * Bump github.com/docker/docker (#221) Bumps [github.com/docker/docker](https://github.com/docker/docker) from 25.0.1+incompatible to 25.0.6+incompatible. - [Release notes](https://github.com/docker/docker/releases) - [Commits](moby/moby@v25.0.1...v25.0.6) --- updated-dependencies: - dependency-name: github.com/docker/docker dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * update readme for 2.3.0 schema (#222) Signed-off-by: Jordan Dubrick <[email protected]> --------- Signed-off-by: Michael Valdron <[email protected]> Signed-off-by: thepetk <[email protected]> Signed-off-by: Kartikey-star <[email protected]> Signed-off-by: dependabot[bot] <[email protected]> Signed-off-by: Jordan Dubrick <[email protected]> Co-authored-by: Michael Valdron <[email protected]> Co-authored-by: Theofanis Petkos <[email protected]> Co-authored-by: Kartikey Mamgain <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
What does this PR do?:
A summary of changes made in this PR can be found below:
updateApi.sh
include recent API versionsWhich issue(s) this PR fixes:
fixes devfile/api#1593
PR acceptance criteria:
Testing and documentation do not need to be complete in order for this PR to be approved. We just need to ensure tracking issues are opened and linked to this PR, if they are not in the PR scope due to various constraints.
Unit/Functional tests
QE Integration test
Documentation (READMEs, Product Docs, Blogs, Education Modules, etc.)
Client Impact
Gosec scans
How to test changes / Special notes to the reviewer: