Argo-cd: Setting "revision history limit" errors in UI

Created on 1 May 2020  路  4Comments  路  Source: argoproj/argo-cd

Checklist:

  • [x] I've searched in the docs and FAQ for my answer: http://bit.ly/argocd-faq.
  • [x] I've included steps to reproduce the bug.
  • [x] I've pasted the output of argocd version.

Describe the bug

Setting a revision history limit (App Details > Edit > REVISION HISTORY LIMIT) and saving generates the following error in the UI:

Unable to save changes: json: cannot unmarshal string into Go struct field ApplicationSpec.spec.revisionHistoryLimit of type int64

To Reproduce
Editing the following Application manifest via the UI causes this error for me every time:
apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: grafana namespace: argocd spec: destination: namespace: default server: https://kubernetes.default.svc project: default source: chart: grafana helm: valueFiles: - values.yaml repoURL: https://kubernetes-charts.storage.googleapis.com/ targetRevision: 5.0.*

Expected behavior

By my understanding it should set the revision limit without erroring

Screenshots

Screenshot from 2020-05-01 17-15-40

Version

v1.5.2+c2c19f4
bug medium minor ui

Most helpful comment

v1.5.5+0fdef48 too

Anyways, it can be set directly on application.yaml files:

spec:
  destination:
    namespace: svc-test
    server: 'https://kubernetes.default.svc'
  project: poc
  revisionHistoryLimit: 5
  source:
    path: test/argo-csharp/webserver
    repoURL: 'https://bitbucket/scm/poc/gitops.git'
    targetRevision: HEAD
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions:
      - Validate=false

All 4 comments

Confirmed as of v1.5.3+095c5d6 as well.

v1.5.5+0fdef48 too

Anyways, it can be set directly on application.yaml files:

spec:
  destination:
    namespace: svc-test
    server: 'https://kubernetes.default.svc'
  project: poc
  revisionHistoryLimit: 5
  source:
    path: test/argo-csharp/webserver
    repoURL: 'https://bitbucket/scm/poc/gitops.git'
    targetRevision: HEAD
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions:
      - Validate=false

Always in 1.7.10, any news ?

Was this page helpful?
0 / 5 - 0 ratings