From c81afa69939c7062b7beed7d9f79568e0f5ea48c Mon Sep 17 00:00:00 2001 From: Somtochi Onyekwere Date: Tue, 22 Aug 2023 13:26:58 +0100 Subject: [PATCH] fix autocompletion for helm chart Signed-off-by: Somtochi Onyekwere --- cmd/flux/reconcile_source_chart.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/flux/reconcile_source_chart.go b/cmd/flux/reconcile_source_chart.go index 134b0a13..41540617 100644 --- a/cmd/flux/reconcile_source_chart.go +++ b/cmd/flux/reconcile_source_chart.go @@ -20,7 +20,6 @@ import ( "github.com/spf13/cobra" "k8s.io/apimachinery/pkg/types" - helmv2 "github.com/fluxcd/helm-controller/api/v2beta1" sourcev1 "github.com/fluxcd/source-controller/api/v1" sourcev1b2 "github.com/fluxcd/source-controller/api/v1beta2" ) @@ -34,7 +33,7 @@ var reconcileSourceHelmChartCmd = &cobra.Command{ # Trigger a reconciliation of the HelmCharts's source and apply changes flux reconcile helmchart podinfo --with-source`, - ValidArgsFunction: resourceNamesCompletionFunc(helmv2.GroupVersion.WithKind(helmv2.HelmReleaseKind)), + ValidArgsFunction: resourceNamesCompletionFunc(sourcev1b2.GroupVersion.WithKind(sourcev1b2.HelmChartKind)), RunE: reconcileWithSourceCommand{ apiType: helmChartType, object: helmChartAdapter{&sourcev1b2.HelmChart{}},