Skip to content

Argo CD should detect unknown fields in invalid specs as OutOfSync #1787

Closed
argoproj/gitops-engine
#154
@jessesuen

Description

@jessesuen

If a user has the following in their git repo, we will not detect it as OutOfSync.

apiVersion: v1
kind: ConfigMap
metadata:
  name: invalid-cm
  annotations:
    argocd.argoproj.io/sync-options: Validate=false
invalidKey: asdf

This is because we drop invalidKey as part of remarshalling/normalization when we do comparisons.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcomponent:coreSyncing, diffing, cluster state cache

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions