GithubHelp home page GithubHelp logo

Comments (3)

bharathkkb avatar bharathkkb commented on September 27, 2024

Thanks for the report @sarathmohan4
Since this is a kpt issue, I would recommend opening an issue here https://github.com/GoogleContainerTools/kpt

As kpt is git aware, is there any way that the render will happen only for the changed or newly created blueprints in the repository?

AFAIK this is not currently supported within kpt.

any other steps to improve the rendering stage performance

One possibility is if you have a flat structure with independent packages, you could script something where you git diff, find the top level folders that have changed and execute kpt fn render $FOLDER. Scripting parallel kpt execution maybe another possibility if you are running in a machine with more resources.

from blueprints.

morgante avatar morgante commented on September 27, 2024

Yes, this is best addressed at the kpt level (feel free to open a new issue).

I know the team is already looking at improving function performance (tracking issue: kptdev/kpt#2469), but caching/fingerprinting is a good suggestion as well.

from blueprints.

sarathmohan4 avatar sarathmohan4 commented on September 27, 2024

@bharathkkb Thanks for the reply. We tried with the git diff approach, and end up in a scenario which need separate handling for resource deletions. As only modified packages are rendered, and we cannot update the sync repo by completely removing all files (git rm), but need to overwrite the rendered packages only in sync repo.

This will not have any implicit knowledge of deleted resources. The deleted resources from the hydration repo will not get delete from the sync repo. Deletion of resources might need to handle separately.

from blueprints.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.