Coder Social home page Coder Social logo

Pruning of BuildRun Objects about build HOT 7 OPEN

shipwright-io avatar shipwright-io commented on August 18, 2024
Pruning of BuildRun Objects

from build.

Comments (7)

sbose78 avatar sbose78 commented on August 18, 2024

related code in build v1
https://github.com/openshift/openshift-controller-manager/blob/071b34b64ea82e87014bccb2ed14f6c2cf4ac9fe/pkg/build/controller/common/util.go#L40

from build.

qu1queee avatar qu1queee commented on August 18, 2024

@sbose78 so we want this? looks ideal to have from my side

from build.

adambkaplan avatar adambkaplan commented on August 18, 2024

Upstream Tekton supports manual pruning of TaskRun/PipelineRun via the tkn cli. Perhaps we can take a similar approach with our cli.

from build.

qu1queee avatar qu1queee commented on August 18, 2024

Another alternative is to control this per namespace. Kubernetes supports resource quotas( see https://kubernetes.io/docs/concepts/policy/resource-quotas/#object-count-quota ) for CRDs. However I dont think this approach is ideal for this issue. I think this needs to be worked on Tekton side, I will ask the Tekton community inside IBM for more information.

from build.

gabemontero avatar gabemontero commented on August 18, 2024

Another alternative is to control this per namespace. Kubernetes supports resource quotas( see https://kubernetes.io/docs/concepts/policy/resource-quotas/#object-count-quota ) for CRDs. However I dont think this approach is ideal for this issue. I think this needs to be worked on Tekton side, I will ask the Tekton community inside IBM for more information.

I'll be curious what you hear on the Tekton/IBM side (and who precisely, as I may have interacted with some of the folks you talk to).

My high level interpretation over the last year of so:

  • they defer to manual / outside of the project efforts for this a la what @adambkaplan noted above
  • there was some hope a while back on working off of the upstream k8s efforts around Job pruning, but that has fizzled / now worked out (both upstream k8s and tekton)

from build.

qu1queee avatar qu1queee commented on August 18, 2024

@gabemontero yes, from Tekton ( mainly communicating with https://github.com/afrittoli ) side what they have is external ways for deleting existing resources, e.g.:

  • nightly CIs ( e.g. cronjob )
  • tkn provides that feature to delete resources ( e.g. we could reuse their go pkg for deleting )

but nothing related to a mechanism for pruning resources based on some threshold that was reached ( e.g. we exceed 100 taskruns per namespace ) .

We should continue using this issue to provide more ideas on how to achieve this for us.

from build.

SaschaSchwarze0 avatar SaschaSchwarze0 commented on August 18, 2024

Ship: shipwright-io/community#61

from build.

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.