From 4ec10135ea423dfec56bec725f04f96eeda97edb Mon Sep 17 00:00:00 2001 From: Alex Buchanan Date: Tue, 8 Oct 2024 11:53:23 -0700 Subject: [PATCH] fix: xor with --chart and --chart-version flags (#130) --- internal/cmd/local/local_install.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/internal/cmd/local/local_install.go b/internal/cmd/local/local_install.go index 474f91f..6b01f1f 100644 --- a/internal/cmd/local/local_install.go +++ b/internal/cmd/local/local_install.go @@ -15,7 +15,7 @@ import ( type InstallCmd struct { Chart string `help:"Path to chart." xor:"chartver"` - ChartVersion string `default:"latest" help:"Version to install." xor:"chartver"` + ChartVersion string `help:"Version to install." xor:"chartver"` DockerEmail string `group:"docker" help:"Docker email." env:"ABCTL_LOCAL_INSTALL_DOCKER_EMAIL"` DockerPassword string `group:"docker" help:"Docker password." env:"ABCTL_LOCAL_INSTALL_DOCKER_PASSWORD"` DockerServer string `group:"docker" default:"https://index.docker.io/v1/" help:"Docker server." env:"ABCTL_LOCAL_INSTALL_DOCKER_SERVER"` @@ -133,10 +133,6 @@ func (i *InstallCmd) Run(ctx context.Context, provider k8s.Provider, telClient t InsecureCookies: i.InsecureCookies, } - if opts.HelmChartVersion == "latest" { - opts.HelmChartVersion = "" - } - if err := lc.Install(ctx, opts); err != nil { spinner.Fail("Unable to install Airbyte locally") return err