From f271fdfb2bbdb9f16f3cb3c656dc05bace68f8d8 Mon Sep 17 00:00:00 2001 From: Jordan Keister Date: Tue, 9 Aug 2022 14:58:43 -0500 Subject: [PATCH 1/4] examples for to generate channel graph images Signed-off-by: Jordan Keister --- cmd/opm/render/cmd.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/cmd/opm/render/cmd.go b/cmd/opm/render/cmd.go index 448097a73..5b65d6749 100644 --- a/cmd/opm/render/cmd.go +++ b/cmd/opm/render/cmd.go @@ -26,6 +26,31 @@ func NewCmd() *cobra.Command { Long: `Generate a declarative config blob from the provided index images, bundle images, and sqlite database files ` + sqlite.DeprecationMessage, + Example: ` +# +# Output declarative configuration view of an index-image in JSON format +# +$ opm render quay.io/operatorhubio/catalog:latest + +# +# Output declarative configuration view of a bundle-image in YAML format +# +$ opm render quay.io/operatorhubio/ack-apigatewayv2-controller@sha256:14c507f2ecb4a64928bcfcf5897f4495d9988f4d7ff58f41e029359a9fe78c38 + +# +# Output channel graph of a catalog in mermaid format +# +$ opm render quay.io/operatorhubio/catalog:latest -o mermaid + +# +# Output channel graph of a catalog and generate a scaled vector graphic (SVG) representation +# Note: this pipeline filters out the comments about lacking skipRange support +# +$ opm render quay.io/operatorhubio/catalog:latest -o mermaid | \ + grep -Ev '^