From 757eac3f253428da31256abf5d709318e83e8574 Mon Sep 17 00:00:00 2001 From: Suraj Narwade Date: Mon, 18 Sep 2017 17:44:30 +0530 Subject: [PATCH] Adding --build-branch to `kompose up` In order to maintain symmetry between `kompose up` and `kompose convert`, adding `--build-branch` --- cmd/up.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/up.go b/cmd/up.go index fc7d4a11..58ed9513 100644 --- a/cmd/up.go +++ b/cmd/up.go @@ -33,6 +33,7 @@ var ( UpNamespace string UpOpt kobject.ConvertOptions UpBuild string + UpBuildBranch string ) var upCmd = &cobra.Command{ @@ -56,6 +57,7 @@ var upCmd = &cobra.Command{ Volumes: UpVolumes, Namespace: UpNamespace, InsecureRepository: UpInsecureRepo, + BuildBranch: UpBuildBranch, IsNamespaceFlag: cmd.Flags().Lookup("namespace").Changed, } @@ -74,6 +76,7 @@ func init() { upCmd.Flags().StringVar(&UpNamespace, "namespace", "default", "Specify Namespace to deploy your application") upCmd.Flags().StringVar(&UpBuild, "build", "local", `Set the type of build ("local"|"build-config" (OpenShift only)|"none")`) + upCmd.Flags().StringVar(&UpBuildBranch, "build-branch", "", "Specify repository branch to use for buildconfig (default master)") // Deprecated upCmd.Flags().BoolVar(&UpEmptyVols, "emptyvols", false, "Use empty volumes. Do not generate PersistentVolumeClaim") upCmd.Flags().MarkDeprecated("emptyvols", "emptyvols has been marked as deprecated. Use --volumes empty")