Coder Social home page Coder Social logo

Comments (5)

lmxia avatar lmxia commented on July 21, 2024 1

I pull a request on this topic like the case on kubefed, could you take a look and take more discussion. @dixudx

from clusternet.

panpan0000 avatar panpan0000 commented on July 21, 2024

@dixudx mentioned:

I think the situation here might be a bit different, as the pic in this artice shows: users can exists in child cluster, so
personally i think it is reasonable to make changes in child cluster directly.

It's reasonable in Edge situation.
But there's not only day 1 but day 2 for Application LCM .
Assuming below case:

(1) in Hub Cluster, admin distributed an app to all clusters
(2) in Child Cluster, another one modified the app, example, changing its label or cpu limit
(3) In Hub Cluster, admin updated the app (e.g. from v1.0 to v2.0)
(4) the change in step 2 got lost. the final state of this app will be aligned with original label or cpu limit in hub cluster yaml.

s0, Double-Head management will be a problem.

from clusternet.

dixudx avatar dixudx commented on July 21, 2024

Good scenarios. 👍👍👍 @panpan0000

clusternet-agent needs to watch the resource changes and sync back the diffs.

from clusternet.

lmxia avatar lmxia commented on July 21, 2024

Very interesting. If it is possible, I want to on it.
Here is my thought, need more discussion.

  1. deployer in clusternet-agent need a map[*metav1.APIResource] ResourceInformer to watch the resource changes
  2. enqueue the namespacedname of the associated Description.

however, now we can't resolve out the Description name from the raw content in the Description.
we can Set Annotations with Description namespacedname info into the raw objet when clusternet-agent Create the raw obj.

from clusternet.

dixudx avatar dixudx commented on July 21, 2024

@lmxia Yes, and we also need to consider,

  1. The configuration diffs between other clusters. It seems Localization could help solve this. Or a fix-named Localization could be used to help sync and aggregate all the diffs from a child cluster.
  2. RBACs.
  3. Others to be considered.

from clusternet.

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.