Giter Club home page Giter Club logo

Comments (2)

ChristianCiach avatar ChristianCiach commented on August 21, 2024

I believe you have a little misunderstanding about how ArgoCD syncs work, or actually kubectl apply in general.

ArgoCD (and kubectl apply) performs a "three-way merge patch" to diff and apply resources. When performing this type of merge, ArgoCD only compares (and applies) the attributes that are defined inside the original manifests (inside your git repo). As a consequence, you could also scale your Deployments by patching the .spec.replicas attribute of your Deployment inside the cluster and ArgoCD wouldn't complain at all (as long as your versioned manifest does not declare this attribute).

My point is: This is expected behavior. Also, this issue seems to be a duplicate of #4537 where you can read more about this behavior.

from argo-cd.

Shani-Cohen avatar Shani-Cohen commented on August 21, 2024

Hi, thank you for the quick answer.
after reading all the comments in the previous issue (#4537) I guess my only question is-
it seems like this behavior is unexpected and not trivial to a lot of people that encountered the same problem. is there an option to rethink this? maybe have the env vars appear somewhere or marked somehow?

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.