mirror of
https://github.com/fluxcd/flux2.git
synced 2026-02-24 00:21:46 +00:00
Merge pull request #794 from fluxcd/get-type-fixes
Use correct type in various get source commands
This commit is contained in:
commit
5401e1ace4
3 changed files with 3 additions and 3 deletions
|
|
@ -35,7 +35,7 @@ var getSourceHelmChartCmd = &cobra.Command{
|
||||||
flux get sources chart --all-namespaces
|
flux get sources chart --all-namespaces
|
||||||
`,
|
`,
|
||||||
RunE: getCommand{
|
RunE: getCommand{
|
||||||
apiType: bucketType,
|
apiType: helmChartType,
|
||||||
list: &helmChartListAdapter{&sourcev1.HelmChartList{}},
|
list: &helmChartListAdapter{&sourcev1.HelmChartList{}},
|
||||||
}.run,
|
}.run,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ var getSourceGitCmd = &cobra.Command{
|
||||||
flux get sources git --all-namespaces
|
flux get sources git --all-namespaces
|
||||||
`,
|
`,
|
||||||
RunE: getCommand{
|
RunE: getCommand{
|
||||||
apiType: bucketType,
|
apiType: gitRepositoryType,
|
||||||
list: &gitRepositoryListAdapter{&sourcev1.GitRepositoryList{}},
|
list: &gitRepositoryListAdapter{&sourcev1.GitRepositoryList{}},
|
||||||
}.run,
|
}.run,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ var getSourceHelmCmd = &cobra.Command{
|
||||||
flux get sources helm --all-namespaces
|
flux get sources helm --all-namespaces
|
||||||
`,
|
`,
|
||||||
RunE: getCommand{
|
RunE: getCommand{
|
||||||
apiType: bucketType,
|
apiType: helmRepositoryType,
|
||||||
list: &helmRepositoryListAdapter{&sourcev1.HelmRepositoryList{}},
|
list: &helmRepositoryListAdapter{&sourcev1.HelmRepositoryList{}},
|
||||||
}.run,
|
}.run,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue