forked from LaconicNetwork/kompose
Add flag to support store manifest when kompose up (#1208)
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user