Argo-cd: Display List of Git Branches as Drop Down

Created on 23 Oct 2020  路  8Comments  路  Source: argoproj/argo-cd

HI,

Summary

Is it possible to display list of all branches under a github repo. Since you guys support both branches and tags may be an additional drop drop where user will select he needs branches or tags , if branches is selected then show list of branches as an other drop and if tags is selected then fetch and show list of tags as drop down

image

Motivation

We are evaluating using argoCD as an deployment option through which our customers can install/upgrade software on varous kubernetes environments. One feedback that has come in, how to customers discover new software releases where release/20.4 is one release and release/20.5 is an other release but how do customers know that from release/20.4 they have to go to release/20.5 without visiting github repo

Thanks

config-management enhancement help wanted

Most helpful comment

I will pick this up

All 8 comments

I will pick this up

  1. Is there a use-case for tags here, too? Or are we only interested in branches?

    Obviously I don't want to show every revision, since a list of all commit hashes would not be very useful.

  2. Is there any preference for the order to display the branches in?

    • Most recently updated
    • Lexographic
    • something else?

image

I went with HEAD, then branches, then tags. I think a way to toggle "show branches" and "show tags" options would be useful, but I will keep it simpler for now.

I added it to the App summary page too.
image

@tetchel Thanks for picking this up so quickly, I was on vacation, so I missed your comments....if we can add toggle option as well i.e. tags vs branches defaulting it to branches it will be more helpful as we use both branches and tags

and w.r.t the order in which branches has to be displayed, usually our branches are named like this release/v20.4, release/v20.10 , so release/v20.10 should come first

shall I raise a different ticket for the toggle feature ? BTW in which argoCD version this feature will be available ?

Hi Rajiv, I opened a new issue for your request.

I _believe_ this feature will be available in the next argocd release, 1.8. But Alex can confirm

@alexmt can you please confirm which argo version will have this change ? I just now installed argo 1.7.9 and I couldn't see this change

image

Installed 1.8 and I can see this change, thanks a lot for making this change

Was this page helpful?
0 / 5 - 0 ratings