Coder Social home page Coder Social logo

Comments (4)

furykerry avatar furykerry commented on June 3, 2024

it may not be the best solution to determine whether the cloneset is reconciled or not. The defaulting logics are the implementation detail of openkruise. For example, SetDefaultsCloneSets will reference the package "k8s.io/kubernetes/pkg/apis/core/v1" not just "k8s.io/api/core/v1". And if there is other mutating webhook that alter cloneset object, the logic also breaks. Maybe one solution is to record the update cloneset spec in the cloneset annotation or other CR.

from kruise.

ahmetb avatar ahmetb commented on June 3, 2024

I think it is not an internal implementation detail. It's standard practice to offer such a method just like core APIs do.

We already disable PodTemplate defaulting feature gate on Kruise, so realistically we're only interested in the Kruise-specific fields.

As you noted, this defaulting won't be guaranteed and susceptible to library version vs API version drifts but we'll take it. :)

from kruise.

manan1979 avatar manan1979 commented on June 3, 2024

I want to try to solve this issue, can you assign it to me ?

from kruise.

ahmetb avatar ahmetb commented on June 3, 2024

We can actually close this issue. I realized this pkg imports k8s.io/kubernetes module, which is a massive pain in the back to import in any Go project.

from kruise.

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.