forked from LaconicNetwork/kompose
Merge pull request #824 from surajnarwade/build-repo
Added `--build-repo` in `kompose up`
This commit is contained in:
commit
f42450b2e8
@ -34,6 +34,7 @@ var (
|
|||||||
UpOpt kobject.ConvertOptions
|
UpOpt kobject.ConvertOptions
|
||||||
UpBuild string
|
UpBuild string
|
||||||
UpBuildBranch string
|
UpBuildBranch string
|
||||||
|
UpBuildRepo string
|
||||||
)
|
)
|
||||||
|
|
||||||
var upCmd = &cobra.Command{
|
var upCmd = &cobra.Command{
|
||||||
@ -58,6 +59,7 @@ var upCmd = &cobra.Command{
|
|||||||
Namespace: UpNamespace,
|
Namespace: UpNamespace,
|
||||||
InsecureRepository: UpInsecureRepo,
|
InsecureRepository: UpInsecureRepo,
|
||||||
BuildBranch: UpBuildBranch,
|
BuildBranch: UpBuildBranch,
|
||||||
|
BuildRepo: UpBuildRepo,
|
||||||
IsNamespaceFlag: cmd.Flags().Lookup("namespace").Changed,
|
IsNamespaceFlag: cmd.Flags().Lookup("namespace").Changed,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,6 +77,7 @@ func init() {
|
|||||||
upCmd.Flags().BoolVar(&UpInsecureRepo, "insecure-repository", false, "Use an insecure Docker repository for OpenShift ImageStream")
|
upCmd.Flags().BoolVar(&UpInsecureRepo, "insecure-repository", false, "Use an insecure Docker repository for OpenShift ImageStream")
|
||||||
upCmd.Flags().StringVar(&UpNamespace, "namespace", "default", "Specify Namespace to deploy your application")
|
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(&UpBuild, "build", "local", `Set the type of build ("local"|"build-config" (OpenShift only)|"none")`)
|
||||||
|
upCmd.Flags().StringVar(&UpBuildRepo, "build-repo", "", "Specify source repository for buildconfig (default remote origin)")
|
||||||
|
|
||||||
upCmd.Flags().StringVar(&UpBuildBranch, "build-branch", "", "Specify repository branch to use for buildconfig (default master)")
|
upCmd.Flags().StringVar(&UpBuildBranch, "build-branch", "", "Specify repository branch to use for buildconfig (default master)")
|
||||||
// Deprecated
|
// Deprecated
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user