From b0e1aa770245807438dd0a323971df1183c52585 Mon Sep 17 00:00:00 2001 From: Tyler Slaton Date: Thu, 23 Sep 2021 10:47:53 -0400 Subject: [PATCH] fix(alpha): update long description indentation Signed-off-by: Tyler Slaton --- cmd/opm/alpha/bundle/build.go | 27 +++++++++++++-------------- cmd/opm/alpha/bundle/generate.go | 11 +++++------ 2 files changed, 18 insertions(+), 20 deletions(-) diff --git a/cmd/opm/alpha/bundle/build.go b/cmd/opm/alpha/bundle/build.go index 79901e1af..57e4b7ad6 100644 --- a/cmd/opm/alpha/bundle/build.go +++ b/cmd/opm/alpha/bundle/build.go @@ -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, } diff --git a/cmd/opm/alpha/bundle/generate.go b/cmd/opm/alpha/bundle/generate.go index 1aaa09232..978ace691 100644 --- a/cmd/opm/alpha/bundle/generate.go +++ b/cmd/opm/alpha/bundle/generate.go @@ -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, }