Skip to content

Commit

Permalink
Rename package-version parameter to just version (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
alenkacz authored and kensipe committed Jul 9, 2019
1 parent 4cf6a31 commit beca886
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/kudoctl/cmd/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func newInstallCmd() *cobra.Command {
installCmd.Flags().StringVar(&options.InstanceName, "instance", "", "The instance name. (default to Operator name)")
installCmd.Flags().StringVar(&options.Namespace, "namespace", "default", "The namespace used for the package installation. (default \"default\"")
installCmd.Flags().StringArrayVarP(&parameters, "parameter", "p", nil, "The parameter name and value separated by '='")
installCmd.Flags().StringVar(&options.PackageVersion, "package-version", "", "A specific package version on the official GitHub repo. (default to the most recent)")
installCmd.Flags().StringVar(&options.PackageVersion, "version", "v", "A specific package version on the official GitHub repo. (default to the most recent)")
installCmd.Flags().BoolVar(&options.SkipInstance, "skip-instance", false, "If set, install will install the Operator and OperatorVersion, but not an instance. (default \"false\")")

const usageFmt = "Usage:\n %s\n\nFlags:\n%s"
Expand Down
2 changes: 1 addition & 1 deletion pkg/kudoctl/util/repo/repo_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func parseIndexFile(data []byte) (*IndexFile, error) {
func (i IndexFile) GetByNameAndVersion(name, version string) (*BundleVersion, error) {
vs, ok := i.Entries[name]
if !ok || len(vs) == 0 {
return nil, fmt.Errorf("no operator of given name %s", name)
return nil, fmt.Errorf("no operator of given name %s found", name)
}

for _, ver := range vs {
Expand Down

0 comments on commit beca886

Please sign in to comment.