Skip to content

Commit

Permalink
Updates local-path-destination-image with the default value
Browse files Browse the repository at this point in the history
Signed-off-by: Caroline Scherf <[email protected]>
  • Loading branch information
fcaroline2020 committed Aug 3, 2023
1 parent 82f1e43 commit 8aae4ba
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/kp_image_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ kp image create my-image --tag my-registry.com/my-repo --blob https://my-blob-ho
--git-revision string git revision such as commit, tag, or branch (default "main")
-h, --help help for create
--local-path string path to local source code
--local-path-destination-image string registry location of where the local source code will be uploaded to
--local-path-destination-image string registry location of where the local source code will be uploaded to (default "<image-tag-repo>-source")
-n, --namespace string kubernetes namespace
--output string print Kubernetes resources in the specified format; supported formats are: yaml, json.
The output can be used with the "kubectl apply -f" command. To allow this, the command
Expand Down
4 changes: 2 additions & 2 deletions docs/kp_image_save.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ kp image save my-image --tag my-registry.com/my-repo --blob https://my-blob-host
--git string git repository url
--git-revision string git revision such as commit, tag, or branch (default "main")
-h, --help help for save
--local-path string registry location of where the local source code will be uploaded to
--local-path-destination-image string registry location of source image
--local-path string path to local source code
--local-path-destination-image string registry location of where the local source code will be uploaded to (default "<image-tag-repo>-source")
-n, --namespace string kubernetes namespace
--output string print Kubernetes resources in the specified format; supported formats are: yaml, json.
The output can be used with the "kubectl apply -f" command. To allow this, the command
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/image/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ kp image create my-image --tag my-registry.com/my-repo --blob https://my-blob-ho
cmd.Flags().StringVar(&factory.GitRevision, "git-revision", "", "git revision such as commit, tag, or branch (default \"main\")")
cmd.Flags().StringVar(&factory.Blob, "blob", "", "source code blob url")
cmd.Flags().StringVar(&factory.LocalPath, "local-path", "", "path to local source code")
cmd.Flags().StringVar(&factory.LocalPathDestinationImage, "local-path-destination-image", "", "registry location of where the local source code will be uploaded to")
cmd.Flags().StringVar(&factory.LocalPathDestinationImage, "local-path-destination-image", "", "registry location of where the local source code will be uploaded to (default \"<image-tag-repo>-source\")")
cmd.Flags().StringVar(&subPath, "sub-path", "", "build code at the sub path located within the source code directory")
cmd.Flags().StringVarP(&factory.Builder, "builder", "b", "", "builder name")
cmd.Flags().StringVarP(&factory.ClusterBuilder, "cluster-builder", "c", "", "cluster builder name")
Expand Down
4 changes: 2 additions & 2 deletions pkg/commands/image/save.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ kp image save my-image --tag my-registry.com/my-repo --blob https://my-blob-host
cmd.Flags().StringVar(&factory.GitRepo, "git", "", "git repository url")
cmd.Flags().StringVar(&factory.GitRevision, "git-revision", "", "git revision such as commit, tag, or branch (default \"main\")")
cmd.Flags().StringVar(&factory.Blob, "blob", "", "source code blob url")
cmd.Flags().StringVar(&factory.LocalPath, "local-path", "", "registry location of where the local source code will be uploaded to")
cmd.Flags().StringVar(&factory.LocalPathDestinationImage, "local-path-destination-image", "", "registry location of source image")
cmd.Flags().StringVar(&factory.LocalPath, "local-path", "", "path to local source code")
cmd.Flags().StringVar(&factory.LocalPathDestinationImage, "local-path-destination-image", "", "registry location of where the local source code will be uploaded to (default \"<image-tag-repo>-source\")")
cmd.Flags().StringVar(&subPath, "sub-path", "", "build code at the sub path located within the source code directory")
cmd.Flags().StringVar(&factory.CacheSize, "cache-size", "", "cache size as a kubernetes quantity (default \"2G\")")
cmd.Flags().StringVarP(&factory.Builder, "builder", "b", "", "builder name")
Expand Down

0 comments on commit 8aae4ba

Please sign in to comment.