Bug 1873916 - Should display the `deprecatetruncate` sub-command of the `opm index`
Summary: Should display the `deprecatetruncate` sub-command of the `opm index`
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.6
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Evan Cordell
QA Contact: Jian Zhang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-31 02:50 UTC by Jian Zhang
Modified: 2020-10-10 06:17 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-08-31 15:07:23 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jian Zhang 2020-08-31 02:50:21 UTC
Description of problem:

No `deprecatetruncate` sub-command:
mac:operator-registry jianzhang$ ./bin/opm index --help
generate operator index container images from preexisting operator bundles

Usage:
  opm index [command]

Available Commands:
  add               Add operator bundles to an index.
  export            Export an operator from an index into the appregistry format
  prune             prune an index of all but specified packages
  prune-stranded    prune an index of stranded bundles
  rm                delete an entire operator from an index

Flags:
  -h, --help   help for index

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

Version-Release number of selected component (if applicable):
mac:operator-registry jianzhang$ ./bin/opm  version
Version: version.Version{OpmVersion:"v1.6.1-249-gcde92c13", GitCommit:"cde92c13", BuildDate:"2020-08-31T02:14:12Z", GoOs:"darwin", GoArch:"amd64"}

How reproducible:
always

Steps to Reproduce:
1. Install the `opm` binary.
2. Check the output of the `opm index`
3.

Actual results:
No `deprecatetruncate` sub-command.

Expected results:
Should display it.

Additional info:

Comment 1 Jian Zhang 2020-08-31 02:55:31 UTC
Create a fixed PR for it: https://github.com/operator-framework/operator-registry/pull/428

Comment 2 Ankita Thomas 2020-08-31 15:07:23 UTC
Hi Jian, 

This was done on purpose, command is not yet ready to be exposed to users. See https://github.com/operator-framework/operator-registry/pull/428#issuecomment-683730101

Comment 3 Jian Zhang 2020-10-10 06:17:43 UTC
Hi Ankita,

Sorry for the late reply. Yes, I saw that comments. Actaully, for this bug: https://bugzilla.redhat.com/show_bug.cgi?id=1873483 I thought you want to public this sub-command, and just missed this `Hidden` setting.


Note You need to log in before you can comment on or make changes to this bug.