-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[WIP][V3] Add the new schema v3alpha1. #5695
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5695 +/- ##
==========================================
- Coverage 70.44% 70.21% -0.24%
==========================================
Files 413 415 +2
Lines 15934 16051 +117
==========================================
+ Hits 11225 11270 +45
- Misses 3877 3949 +72
Partials 832 832
Continue to review full report at Codecov.
|
This schema contains the main fields to support the new skaffold render and deployment, powered by kpt. Some config names may change based on the the user survey results. For reviewers: - `Render`: Top tier section. It contains the basic render functions `generate`, `validate` and `trasform`. It does not include the helmcharts (generate) and kpt package magement yet, which will be added on following CLs. - `Deploy`: Simplified. The deployers (helm, kubectl, kpt, kustomize) are removed. Some helm and kubectl features, and flags are not covered in the `deploy` section yet. Will be added in following CLs. - v2 and v3 versions are not compatible. So the `upgrade` functions do not need to change. But we will add more checks on other codes to guarantee the v2 and v3 are not mixed (especially in multi-config mode). - Generated doc via "go run hack/schemas/main.go".
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.
This is looking good, but we need to modify hack/check-samples here to not treat this config as the latest released one. Right now in hack/versions/cmd/latest-released/version.go
it's grabbing the latest version by doing schema.SchemaVersions[len(schema.SchemaVersions)-2].APIVersion
, which will hit v3alpha1
since that slice now looks like
...
{v2beta13.Version, v2beta13.NewSkaffoldConfig, true},
{v2beta14.Version, v2beta14.NewSkaffoldConfig, true},
{v3alpha1.Version, v3alpha1.NewSkaffoldConfig, false},
{latest.Version, latest.NewSkaffoldConfig, true},
}
Deprecated. |
Related: #5673
Description
his schema contains the main fields to support the new skaffold render and deployment, powered by kpt. Some config names may change based on the the user survey results.
For reviewers:
Render
: Top tier section. It contains the basic render functionsgenerate
,validate
andtrasform
. It does not include the helmcharts (generate) and kpt package magement yet, which will be added on following CLs.Deploy
: Simplified. The deployers (helm, kubectl, kpt, kustomize) are removed. Some helm and kubectl features, and flags are not covered in thedeploy
section yet. Will be added in following CLs.upgrade
functions do not need to change. But we will add more checks on other codes to guarantee the v2 and v3 are not mixed (especially in multi-config mode).