Coder Social home page Coder Social logo

Comments (16)

sbose78 avatar sbose78 commented on August 18, 2024 1

Will the build v2 replace the build v1 in OpenShift in future?

No plans as of now. Both will co-exist for a significant amount of time.

And do your CORE components (Such as Build v1 in OpenShift) also need to be managed by OLM lifecycle?

In openshift 4, everything is managed/lifecycle'd by operators.

Out of these operators:

Because Build v1 predates Operator framework / OLM , and is not even a CRD, it is today lifecycle'd by CVO. But there are plans to eventually move everything ( incl Build v1 ) that's not needed in the control plane to be managed by OLM.

from build.

zhangtbj avatar zhangtbj commented on August 18, 2024 1

Thanks a lot for the introduction Shoubhik! :)

from build.

sbose78 avatar sbose78 commented on August 18, 2024

@zhangtbj @qu1queee Thoughts?

from build.

zhangtbj avatar zhangtbj commented on August 18, 2024

Hi @sbose78 ,

I agree and we need to install the well-known cluster scope strategoes so that every one in every namespace can use it without any additional configuration directly.

About How ?
When the operator starts up, install the well known strategies in the cluster scope.
[Jordan] I think first of all, we need to modify the hack/crd.sh to install the cluster scope buildstrategies: https://github.com/redhat-developer/build/blob/master/hack/crd.sh#L20-L24
Then modify the README.md to tell users how to use it: https://github.com/redhat-developer/build/blob/master/README.md

If they change, ensure they are reconciled in the ClusterBuildStrategy controller/reconciler.
[Jordan] Right now, we don't have any trigger policy, so I think there is no too much we can do in the ClusterBuildStrategy reconcile logic.

I think we can:

  • If ClusterBuildStrategy is updated, add a new label in all builds which belong to this ClusterBuildStrategy that JUST tell the ClusterBuildStrategy is updated, and end-user can notice that and manually decide what he want to do next

  • Do nothing in our Alaph, and plan it with trigger feature support in next release, such as there is a new type of trigger: buildStrategy trigger, if the BuildStrategy is updated, auto-rebuild the image.

from build.

sbose78 avatar sbose78 commented on August 18, 2024

Note: the hack/ scripts are for local development only.

from build.

sbose78 avatar sbose78 commented on August 18, 2024

Remind me: do you plan to have Olm lifecycle the Operator?

from build.

zhangtbj avatar zhangtbj commented on August 18, 2024

NO! :), and do you plan to have OLM lifecycle the Operator?

I hope it is not, because it is also an important reason that we choose the Build v2.

With OLM, we have to take many effects to solve the OLM dependencies in our system...

from build.

sbose78 avatar sbose78 commented on August 18, 2024

We do.

OLM is more like a package manager: helps us package the operator, manifests and metadata as a bundle - and then version and lifecycle them as a whole.

However, you can skip using that packaging - just like software installed without a package manager doesn't affect any functionality/code at all.

Nothing should change for your if you didn't want to use olm :)

from build.

zhangtbj avatar zhangtbj commented on August 18, 2024

Cool, I remember our team member tried to use some redhat operator but reported some OLM import packages error, so we didn't touch that. :(

But it is great if we can skip it easily.

Anyway, go ahead of your OLM support. And we may ask your help then about how to skip it. Thanks! :)

from build.

sbose78 avatar sbose78 commented on August 18, 2024

👍 Ideally, you should see nothing in this repository. I'll keep the bundling/packaging metadata in a different repo to keep this repo pure :-)

from build.

zhangtbj avatar zhangtbj commented on August 18, 2024

Awesome! :)

from build.

qu1queee avatar qu1queee commented on August 18, 2024

I will add my comments on this, I just want to check something first, therefore I need more time.

from build.

zhangtbj avatar zhangtbj commented on August 18, 2024

And one more question Shoubhik,

Is there any background behind the OLM lifecycle the build operator ?

Will the build v2 replace the build v1 in OpenShift in future?

And do your CORE components (Such as Build v1 in OpenShift) also need to be managed by OLM lifecycle?

Thanks!

from build.

qu1queee avatar qu1queee commented on August 18, 2024

@sbose78 similar to this issue, what do you think about installing the CRDs during runtime, see current manual approach. I could PR this, not sure how critical this is though. It will make the flow from zero to a running controller easier.

from build.

sbose78 avatar sbose78 commented on August 18, 2024

@sbose78 similar to this issue, what do you think about installing the CRDs during runtime

Let me start a thread for operator/CRD lifecyle.

from build.

qu1queee avatar qu1queee commented on August 18, 2024

this is already done, can we close?

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.