From 69294ef56d7417c94dd63b442c97bdbbc4801983 Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Tue, 26 Jan 2021 22:17:28 +0100 Subject: [PATCH] Use correct type in various get source commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes a bug where the wrong type was displayed for various `get source` commands. ```console $ flux get sources helm --namespace default ✗ no Bucket objects found in default namespace ``` Signed-off-by: Hidde Beydals --- cmd/flux/get_source_chart.go | 2 +- cmd/flux/get_source_git.go | 2 +- cmd/flux/get_source_helm.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/flux/get_source_chart.go b/cmd/flux/get_source_chart.go index d46cafd6..1033041b 100644 --- a/cmd/flux/get_source_chart.go +++ b/cmd/flux/get_source_chart.go @@ -35,7 +35,7 @@ var getSourceHelmChartCmd = &cobra.Command{ flux get sources chart --all-namespaces `, RunE: getCommand{ - apiType: bucketType, + apiType: helmChartType, list: &helmChartListAdapter{&sourcev1.HelmChartList{}}, }.run, } diff --git a/cmd/flux/get_source_git.go b/cmd/flux/get_source_git.go index b4dfdea3..79bbbe5a 100644 --- a/cmd/flux/get_source_git.go +++ b/cmd/flux/get_source_git.go @@ -35,7 +35,7 @@ var getSourceGitCmd = &cobra.Command{ flux get sources git --all-namespaces `, RunE: getCommand{ - apiType: bucketType, + apiType: gitRepositoryType, list: &gitRepositoryListAdapter{&sourcev1.GitRepositoryList{}}, }.run, } diff --git a/cmd/flux/get_source_helm.go b/cmd/flux/get_source_helm.go index f4602b7b..55ab1c81 100644 --- a/cmd/flux/get_source_helm.go +++ b/cmd/flux/get_source_helm.go @@ -35,7 +35,7 @@ var getSourceHelmCmd = &cobra.Command{ flux get sources helm --all-namespaces `, RunE: getCommand{ - apiType: bucketType, + apiType: helmRepositoryType, list: &helmRepositoryListAdapter{&sourcev1.HelmRepositoryList{}}, }.run, }