-
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
feat: Enable render in skaffold run
v2
#6760
Conversation
latest/v2 used to depend on latest/v1 for build, tag, test. This is aimed at making sure the v1 changes on these steps can be backportting to v2. This requires engineers to update the v2 reference (e.g. bumps the latestV1 reference to a newer release) and sometimes change the v2 pipeline as well. Since v2 is not released yet, this work are not officialized and v2 always fells behind the v1 changes. This change makes latest/v2 no longe relies on v1 schema.
Co-authored-by: gsquared94 <[email protected]>
* [v2] Switch to v2 1. Remove V1 runner to minimize the CLI binary size. 2. Update the mainstream schemas reference from v1 to v2. 3. Fix unittests. 4. Cherry-pick e465820 "Add node selector option..." * [v2] integration test and env 1. update integration test schema to v3alpha2. 2. update check-samples to check against latest v2. 3. skip the integration test that does not have v2 support yet. (shall be re-enabled once the corresponding cmd is added).
* [v2] Add a new deployer kptV2. * [v2] Add proto errors for kpt deployer v2.
…ContainerTools#6270) * [backport] Add original dev, load_images and deploy logics to runner.v2 * [v2] Enable `skaffold dev` 1. Add kptV2 deployer to the deployerMux initialization. 2. Add `hydrationDir` as a RunContext field, which is used for both Renderer and Deployer to cache and hydrate the manifests. - default to <WORKDIR>/.kpt-pipeline - can be overriden by `--output` flag in `skaffold render` (Render Step) - can be overriden by `.deploy.kpt.dir` field in skaffold.yaml in `skaffold dev` and `skaffold run` (Deploy step) 3. Render is used to be called by deployers in `skaffold dev` and `skaffold run`. This logic is now removed. Follow-up work: 1. Update kubectl deployer (default) to apply the manifests from hydrationDir. 2. Dev re-render 3. Enable other commands * [v2] enable the "helm" in "manifest.generate"
…ContainerTools#6315) Co-authored-by: Marlon Gamez <[email protected]>
…Tools#6339) Root cause: The render manfiests are registered to the filewatcher before "Render" func is called. However, the renderer has its dependencies calculated and refreshed in each "Render" call. This PR separates the "Render" and "manfiestDependencies" completely.
…ools#6346) * [v2] Customize hydration-dir and render-output path. 1. Remove unused flag v2 2. Enable hydration-dir as a configurable flag. 3. Convert structured (hydrated) manifests to a flattened format and stored in a give path (--render-output/--output flag) 4. Prompt user interactive message to acknowledge users that the manifest hydration may override the hydration-dir 5. sort SkaffoldOptions to fix maligned linter error. * Skaffold master -> main (GoogleContainerTools#6263) - Rewrite the few existing uses of `skaffold/(blob|tree)/HEAD` to use `main` as GitHub's file viewer uses a commit rather than a branch. - Rewrite the buildpacks references to use `main` since they already switched. - Explicitly specify `main` for remote repositories due to GoogleContainerTools#6264 * bump v1 versions to v2beta20 * improve user experience on the prompting message Co-authored-by: Brian de Alwis <[email protected]>
This backports main branch's apply.
…Hook (GoogleContainerTools#6388) Basic backport changes. PR has been waited for a while.
Since render is necessary in the new skaffold pipeline. `skaffold run` should have render enabled.
Codecov Report
@@ Coverage Diff @@
## main #6760 +/- ##
==========================================
+ Coverage 69.94% 70.23% +0.28%
==========================================
Files 478 477 -1
Lines 18286 21820 +3534
==========================================
+ Hits 12791 15326 +2535
- Misses 4548 5485 +937
- Partials 947 1009 +62
Continue to review full report at Codecov.
|
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
wrong base branch. This is v2 feature and cannot be merged to master until v2 is merged. |
Related: #5673
Description
Since render is necessary in the new skaffold pipeline.
skaffold run
should have render enabled.