Skip to content

Commit 791347b

Browse files
committed
Update help for stage command
Signed-off-by: irbekrm <[email protected]>
1 parent 647e293 commit 791347b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

cmd/cmrel/cmd/stage.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ staging release bucket.
4141

4242
var (
4343
stageExample = fmt.Sprintf(`
44-
To stage a release of the 'master' branch to the default staging bucket, run:
44+
To stage a release of the 'master' branch to the default staging bucket at 'devel' path, run:
4545
46-
%s %s --git-ref=master
46+
%s %s --branch=master
4747
48-
To stage a release of the 'release-0.14' branch to the default staging bucket,
48+
To stage a release of the 'release-0.14' branch to the default staging bucket at 'release' path,
4949
overriding the release version as 'v0.14.0', run:
5050
51-
%s %s --git-ref=release-0.14 --release-version=v0.14.0`, rootCommand, stageCommand, rootCommand, stageCommand)
51+
%s %s --branch=release-0.14 --release-version=v0.14.0`, rootCommand, stageCommand, rootCommand, stageCommand)
5252
)
5353

5454
type stageOptions struct {
@@ -61,7 +61,7 @@ type stageOptions struct {
6161
// Name of the GitHub repo to fetch cert-manager sources from
6262
Repo string
6363

64-
// Name of the GitHub repo to build cert-manager sources from
64+
// Name of the branch in the GitHub repo to build cert-manager sources from
6565
Branch string
6666

6767
// Optional commit ref of cert-manager that should be staged
@@ -70,7 +70,7 @@ type stageOptions struct {
7070
// The path to the cloudbuild.yaml file used to perform the cert-manager crossbuild
7171
CloudBuildFile string
7272

73-
// Project to run the GCB job in
73+
// GCP project to run the GCB job in
7474
Project string
7575

7676
// ReleaseVersion, if set, overrides the version git version tag used
@@ -95,7 +95,7 @@ func (o *stageOptions) AddFlags(fs *flag.FlagSet, markRequired func(string)) {
9595
fs.StringVar(&o.CloudBuildFile, "cloudbuild", "./gcb/stage/cloudbuild.yaml", "The path to the cloudbuild.yaml file used to perform the cert-manager crossbuild. "+
9696
"The default value assumes that this tool is run from the root of the release repository.")
9797
fs.StringVar(&o.Project, "project", release.DefaultReleaseProject, "The GCP project to run the GCB build jobs in.")
98-
fs.StringVar(&o.ReleaseVersion, "release-version", "", "Optional release version override used to force the version strings used during the release to a specific value.")
98+
fs.StringVar(&o.ReleaseVersion, "release-version", "", "Optional release version override used to force the version strings used during the release to a specific value. If not set, build is treated as development build and artifacts staged to 'devel' path.")
9999
fs.StringVar(&o.PublishedImageRepository, "published-image-repo", release.DefaultImageRepository, "The docker image repository set when building the release.")
100100
markRequired("branch")
101101
}

0 commit comments

Comments
 (0)