Skip to content

Commit

Permalink
cli: use the release version as default while using release package (#…
Browse files Browse the repository at this point in the history
…421)

Signed-off-by: Amar Tumballi <amar@kadalu.io>
  • Loading branch information
amarts committed Jan 21, 2021
1 parent c453713 commit c7ab07e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions cli/kubectl_kadalu/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ def set_args(name, subparsers):

arg(
"--version",
help="Kadalu Version to Install [default: latest]",
choices=[VERSION, "devel", "latest"],
default="latest"
help="Kadalu Version to Install [default: " + VERSION + "]",
choices=[VERSION, "devel"],
default=VERSION
)
arg(
"--type",
Expand Down Expand Up @@ -63,10 +63,12 @@ def run(args):

operator_file = args.local_yaml
if not operator_file:
file_url = "https://raw.githubusercontent.com/kadalu/kadalu/devel/manifests"
file_url = ""
insttype = ""

if args.version and args.version != "latest":
if args.version and args.version == "devel":
file_url = "https://raw.githubusercontent.com/kadalu/kadalu/devel/manifests"
elif args.version:
file_url = "https://github.com/kadalu/kadalu/releases/download/%s" % args.version

if args.type and args.type != "kubernetes":
Expand Down

0 comments on commit c7ab07e

Please sign in to comment.