Bug 1957386

Summary: Config serve and validate command should be under alpha
Product: OpenShift Container Platform Reporter: Vu Dinh <vdinh>
Component: OLMAssignee: Vu Dinh <vdinh>
OLM sub component: OLM QA Contact: Jian Zhang <jiazha>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium    
Version: 4.8   
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 23:06:39 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Vu Dinh 2021-05-05 17:45:27 UTC
Description of problem:
The serve and validate command for declarative config is currently under the opm root. However, those two commands are not production-ready and still under development so they should be under opm alpha instead.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:

Actual results:

Expected results:

Additional info:

Comment 2 Jian Zhang 2021-05-06 03:45:28 UTC
[root@preserve-olm-env operator-framework-olm]# ./bin/opm version
Version: version.Version{OpmVersion:"24d0123", GitCommit:"24d012397dabf9815f8b3d6c968e5a3e091cca6c", BuildDate:"2021-05-06T03:39:36Z", GoOs:"linux", GoArch:"amd64"}

The two commands(serve, validate) have been migrated to `alpha`. LGTM, verify it.
[root@preserve-olm-env operator-framework-olm]# ./bin/opm --help
CLI to interact with operator-registry and build indexes of operator content

  opm [command]

Available Commands:
  help        Help about any command
  index       generate operator index container images
  registry    interact with operator-registry database
  version     Print the opm version

[root@preserve-olm-env operator-framework-olm]# ./bin/opm alpha --help
Run an alpha subcommand

  opm alpha [command]

Available Commands:
  bundle      Operator bundle commands
  serve       serve declarative configs
  validate    Validate the declarative index config

[root@preserve-olm-env operator-framework-olm]# ./bin/opm alpha serve --help
serve declarative configs via grpc

  opm alpha serve <source_path> [flags]

      --debug                    enable debug logging
  -h, --help                     help for serve
  -p, --port string              port number to serve on (default "50051")
  -t, --termination-log string   path to a container termination log file (default "/dev/termination-log")

Global Flags:
      --skip-tls   skip TLS certificate verification for container image registries while pulling bundles or index
[root@preserve-olm-env operator-framework-olm]# ./bin/opm alpha validate --help
Validate the declarative config JSON file(s) in a given directory

  opm alpha validate <directory> [flags]

  -d, --debug   enable debug log output
  -h, --help    help for validate

Global Flags:
      --skip-tls   skip TLS certificate verification for container image registries while pulling bundles or index

Comment 5 errata-xmlrpc 2021-07-27 23:06:39 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.8.2 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.