Coder Social home page Coder Social logo

Comments (3)

jessesuen avatar jessesuen commented on May 18, 2024

Some reference points:

Declarative Management of Kubernetes Objects Using Configuration Files
https://kubernetes.io/docs/concepts/overview/object-management-kubectl/declarative-config/

Advanced Configuration Management (kubectl apply reboot)
https://docs.google.com/document/d/1q1UGAIfmOkLSxKhVg7mKknplq3OTDWAIQGWMJandHzg/edit

Server side apply design sketch:
https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/kubernetes-sig-api-machinery/OxLyMNp8I6A/s_L6bToZAgAJ

v2 API proposal "desired vs actual"
kubernetes/kubernetes#17333

Apply v2
https://github.com/kubernetes/community/blob/master/contributors/design-proposals/cli/apply_refactor.md

from argo-cd.

jessesuen avatar jessesuen commented on May 18, 2024

For the record, a helm upgrade will do a 2-way strategic merge patch.

from argo-cd.

jessesuen avatar jessesuen commented on May 18, 2024

Given the complexity of the topic, I'm proposing that we just submit manifests literally just using the kubectl apply CLI. There's very little to be gained in any attempt to copy/re-implement kubectl's 3-way patch logic, other than having a pure go implementation, and not having to deal with forked processes.

On the other hand it provides the following benefits:

  1. meets users' expectation
  2. easy to explain -- the behavior of kubectl apply is very well documented
  3. it allows management of the application outside of Argo CD (e.g. users can perform a kubectl apply from their workstation)
  4. related to point 3, it enables Argo CD to adopt existing deployment pipelines which have been built using kubectl apply.
  5. needs no testing or code maintenance, since this logic is deferred to kubectl
  6. quick/easy to implement. we can move on to other features

from argo-cd.

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.