Skip to content

failed parsing on parameters with comma #1660

Closed
@privatecloud-username

Description

@privatecloud-username

Describe the bug
when a parameter with comma[,] is set via CLI leads to the following issue:
rpc error: code = Unknown desc = Error: failed parsing --set data: key "18 * * *" has no value

To Reproduce
If we cannot reproduce, we cannot fix! Steps to reproduce the behavior:

  1. create an application:
    argocd app create guestbook --repo https://github.com/argoproj/argocd-example-apps.git --path helm-guestbook --dest-server https://kubernetes.default.svc --dest-namespace default
  2. provide the following parameter via cli
    key=schedule
    value=0 6,18 * * *
    command variations tried:
    argocd app set guestbook -p 'gitGC.schedule=0 6,18 * * *'
    argocd app set guestbook -p gitGC.schedule='0 6,18 * * *'
  3. check the error in the UI
    rpc error: code = Unknown desc = Error: failed parsing --set data: key "18 * * *" has no value
    If this property is present in the values yaml it will be set correctly but the error will be visible and will prevent the healty status of the application.

PS
real example with git helm chart for k8s.
for the easy reproduction, guestbook app is used.

Expected behavior
If the parameter is not in values yaml to be discarded
if there is such parameter to be set correctly and no additional issue to rise

Version

argocd: v1.0.0+c74ca22
  BuildDate: 2019-05-16T20:04:43Z
  GitCommit: c74ca22023cbee245cb83fb23224978fbe23703c
  GitTreeState: clean
  GoVersion: go1.11.4
  Compiler: gc
  Platform: darwin/amd64
argocd-server: v1.0.0+c74ca22
  BuildDate: 2019-05-16T20:04:21Z
  GitCommit: c74ca22023cbee245cb83fb23224978fbe23703c
  GitTreeState: clean
  GoVersion: go1.11.4
  Compiler: gc
  Platform: linux/amd64
  Ksonnet Version: 0.13.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions