GithubHelp home page GithubHelp logo

Comments (4)

brunokino avatar brunokino commented on September 27, 2024 3

This discussion is related to this Issue:
#17784

from argo-cd.

agaudreault avatar agaudreault commented on September 27, 2024 2

So from my understanding, if Kubernetes does not return an error on duplicated values and it is a valid live manifest, I think Argo should handle to diff and sync manifest with duplicated values.

If you can open a pull request, I think it will be a good contribution 👍

from argo-cd.

agaudreault avatar agaudreault commented on September 27, 2024

You mention

I expected that argocd would be able to sync the application even with duplicate variables because kubernetes only blocks this operation if applied with Server Side Apply, but even when applied without serverSideApply, argocd returns an error.

Is there a way to make it fail the first time when argocd will sync without server-side apply?

Or does this happen when existing live manifest not deployed from Argo have duplicated entries in their spec?

from argo-cd.

brunokino avatar brunokino commented on September 27, 2024

@agaudreault ,

The problem occurs with live manifest created before adding the mentioned configuration

resource.customizations.ignoreDifferences.all: |-
  managedFieldsManagers:
  - kube-controller-manager

This configuration is manually added by ScaleOps, which is a continuous workload optimization tool.

However, once the manifest with duplicate variable exists and the configuration has been applied, users are not able to sync their applications and even remove the duplicate variable by themselves via GitOps, it needs an admin to remove it from the live manifest first.

In our company, we had to make a script to remove duplicates from all objects via kubectl. After that, users stop getting the TypedLive error and start getting a TypeConfig error during sync, but this time they are able to remove the duplication in git and continue with the Sync.

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.