Comments (4)
This discussion is related to this Issue:
#17784
from argo-cd.
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.
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.
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)
- App of apps regularly gets out of sync when some apps have explictly specified empty sync policy HOT 2
- Container log keyword filter inconsistant results HOT 2
- ArgoCD CLI refresh-token does not regenerate new access token when it expire.
- ApplicationSet apparently doesn't respect `reposerver.enable.git.submodule: "false"` HOT 3
- Service Account argocd-applicationset-controller need in permissions on listing appprojects HOT 2
- Argo CD Release v2.12
- hydrator: make README template configurable via argocd-cm
- hydrator: throw error on conflicting write repo/branch/path
- hydrator: add UI/CLI to create/update repo write credentials
- hydrator: handle `sourceHydrator` fields from webhook
- hydrator: add unit tests for new git client functions HOT 4
- hydrator: add metrics server to commit-server
- Helm chart values not rendered as expected
- UI - bad color contrast in filter components HOT 1
- hydrator: report hydration commands from kustomize HOT 1
- hydrator: remove temp dir path from `helm template` commands
- Not able to add helm enable OCI Private repo through Argocd GUI as well as through command line HOT 3
- Follow logs not working on UI for applications or pods (multiple ArgoCD versions) HOT 1
- Navigation error with location.href ends with `/` HOT 3
- UI - Dark theme background on Application Details panel page HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from argo-cd.