Skip to content

Commit

Permalink
fix(alpha): update long description indentation
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Slaton <tyslaton@redhat.com>
  • Loading branch information
Tyler Slaton committed Sep 23, 2021
1 parent 8d805a2 commit b0e1aa7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 20 deletions.
27 changes: 13 additions & 14 deletions cmd/opm/alpha/bundle/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,23 @@ func newBundleBuildCmd() *cobra.Command {
Use: "build",
Short: "Build operator bundle image",
Long: `The "opm alpha bundle build" command will generate operator
bundle metadata if needed and build bundle image with operator manifest
and metadata for a specific version.
bundle metadata if needed and build bundle image with operator manifest
and metadata for a specific version.
For example: The command will generate annotations.yaml metadata plus
Dockerfile for bundle image and then build a container image from
provided operator bundle manifests generated metadata
e.g. "quay.io/example/operator:v0.0.1".
For example: The command will generate annotations.yaml metadata plus
Dockerfile for bundle image and then build a container image from
provided operator bundle manifests generated metadata
e.g. "quay.io/example/operator:v0.0.1".
After the build process is completed, a container image would be built
locally in docker and available to push to a container registry.
After the build process is completed, a container image would be built
locally in docker and available to push to a container registry.
$ opm alpha bundle build --directory /test/0.1.0/ --tag quay.io/example/operator:v0.1.0 \
--package test-operator --channels stable,beta --default stable --overwrite
$ opm alpha bundle build --directory /test/0.1.0/ --tag quay.io/example/operator:v0.1.0 \
--package test-operator --channels stable,beta --default stable --overwrite
Note:
* Bundle image is not runnable.
* All manifests yaml must be in the same directory.
`,
Note:
* Bundle image is not runnable.
* All manifests yaml must be in the same directory. `,
RunE: buildFunc,
}

Expand Down
11 changes: 5 additions & 6 deletions cmd/opm/alpha/bundle/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ func newBundleGenerateCmd() *cobra.Command {
Use: "generate",
Short: "Generate operator bundle metadata and Dockerfile",
Long: `The "opm alpha bundle generate" command will generate operator
bundle metadata if needed and a Dockerfile to build Operator bundle image.
bundle metadata if needed and a Dockerfile to build Operator bundle image.
$ opm alpha bundle generate --directory /test/0.1.0/ --package test-operator \
--channels stable,beta --default stable
$ opm alpha bundle generate --directory /test/0.1.0/ --package test-operator \
--channels stable,beta --default stable
Note:
* All manifests yaml must be in the same directory.
`,
Note:
* All manifests yaml must be in the same directory.`,
RunE: generateFunc,
}

Expand Down

0 comments on commit b0e1aa7

Please sign in to comment.