Merge pull request #524 from cdrage/fix-typo

Fix typo in replicas and organize flags
This commit is contained in:
Tomas Kral 2017-04-03 14:58:19 +02:00 committed by GitHub
commit f5e3985405
2 changed files with 4 additions and 4 deletions

View File

@ -101,10 +101,10 @@ func init() {
// OpenShift only // OpenShift only
convertCmd.Flags().BoolVar(&ConvertDeploymentConfig, "deployment-config", true, "Generate an OpenShift deploymentconfig object") convertCmd.Flags().BoolVar(&ConvertDeploymentConfig, "deployment-config", true, "Generate an OpenShift deploymentconfig object")
convertCmd.Flags().MarkHidden("deployment-config")
convertCmd.Flags().StringVar(&ConvertBuildRepo, "build-repo", "", "Specify source repository for buildconfig (default remote origin)") convertCmd.Flags().StringVar(&ConvertBuildRepo, "build-repo", "", "Specify source repository for buildconfig (default remote origin)")
convertCmd.Flags().MarkHidden("build-repo")
convertCmd.Flags().StringVar(&ConvertBuildBranch, "build-branch", "", "Specify repository branch to use for buildconfig (default master)") convertCmd.Flags().StringVar(&ConvertBuildBranch, "build-branch", "", "Specify repository branch to use for buildconfig (default master)")
convertCmd.Flags().MarkHidden("deployment-config")
convertCmd.Flags().MarkHidden("build-repo")
convertCmd.Flags().MarkHidden("build-branch") convertCmd.Flags().MarkHidden("build-branch")
// Standard between the two // Standard between the two

View File

@ -54,7 +54,7 @@ var upCmd = &cobra.Command{
} }
func init() { func init() {
upCmd.Flags().BoolVar(&UpEmptyVols, "emptyvols", false, "Use Empty Volumes. Do not generate PVCs") upCmd.Flags().BoolVar(&UpEmptyVols, "emptyvols", false, "Use empty volumes. Do not generate PersistentVolumeClaim")
upCmd.Flags().IntVar(&UpReplicas, "replicas", 1, "Specify the number of repliaces in the generate resource spec") upCmd.Flags().IntVar(&UpReplicas, "replicas", 1, "Specify the number of replicas generated")
RootCmd.AddCommand(upCmd) RootCmd.AddCommand(upCmd)
} }