Skip to content

Wrong URL is displayed in argocd app sync ... output #5333

Closed
@yujunz

Description

Checklist:

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

Describe the bug

argocd app sync ... seems using API as base URL for the app. When UI is configured on a different URL, it will be an invalid address.

To Reproduce

Configure a different URL from API, e.g.

❯ kubectl get -n argocd cm argocd-cm -o yaml
apiVersion: v1
data:
...
  url: https://argocd.domain.name
kind: ConfigMap
metadata:
  name: argocd-cm
  namespace: argocd

❯ echo $ARGOCD_SERVER
argocd-api.domain.name

Run argocd app sync APPNAME against an out of sync app.

Expected behavior

It should display correct URL with UI as base, i.e. https://argocd.domain.name but actually it shows https://argocd-api.domain.name.

Screenshots

N/A

Version

argocd: v1.8.3+0f9c684.dirty
  BuildDate: 2021-01-23T03:52:47Z
  GitCommit: 0f9c68427882bf4633d395cbfcd7c9271795fd9b
  GitTreeState: dirty
  GoVersion: go1.15.7
  Compiler: gc
  Platform: darwin/amd64
argocd-server: v1.9.0+7613d9a
  BuildDate: 2021-01-11T03:10:33Z
  GitCommit: 7613d9a85295e15fcbaf0b5f6ba9ed69a74a0919
  GitTreeState: clean
  GoVersion: go1.14.12
  Compiler: gc
  Platform: linux/amd64
  Ksonnet Version: v0.13.1
  Kustomize Version: v3.8.7 2020-11-11T23:14:14Z
  Helm Version: v3.4.1+gc4e7485
  Kubectl Version: v1.17.8
  Jsonnet Version: v0.17.0

Logs

❯ argocd app sync app-projects --prune
TIMESTAMP                  GROUP              KIND    NAMESPACE                  NAME            STATUS   HEALTH        HOOK  MESSAGE
...

Name:               app-projects
Project:            argocd-bootstrap
Server:             https://kubernetes.default.svc
Namespace:          argocd
URL:                https://argocd-api.domain.name/applications/app-projects

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions