Add flag to support store manifest when kompose up (#1208)

This commit is contained in:
Hang Yan
2019-12-26 19:30:03 +08:00
committed by GitHub
parent bc28ffc675
commit e0c8f6d23d
3 changed files with 11 additions and 0 deletions
+3
View File
@@ -29,6 +29,7 @@ import (
var (
UpReplicas int
UpEmptyVols bool
StoreManifest bool
UpVolumes string
UpInsecureRepo bool
UpNamespace string
@@ -56,6 +57,7 @@ var upCmd = &cobra.Command{
UpOpt = kobject.ConvertOptions{
Build: UpBuild,
PushImage: UpPushImage,
StoreManifest: StoreManifest,
Replicas: UpReplicas,
InputFiles: GlobalFiles,
Provider: GlobalProvider,
@@ -86,6 +88,7 @@ func init() {
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().BoolVar(&UpPushImage, "push-image", true, "If we should push the docker image we built")
upCmd.Flags().BoolVar(&StoreManifest, "store-manifest", false, "Store the generated manifest (default false)")
upCmd.Flags().StringVar(&UpController, "controller", "", `Set the output controller ("deployment"|"daemonSet"|"replicationController")`)
upCmd.Flags().MarkHidden("insecure-repository")
upCmd.Flags().MarkHidden("build-repo")