Bug 2013599 - Scorecard support storage is not included in ocp4.9
Summary: Scorecard support storage is not included in ocp4.9
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Operator SDK
Version: 4.9
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.10.0
Assignee: Ish Shah
QA Contact: Cuiping HUO
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-13 10:26 UTC by Fan Jia
Modified: 2022-03-10 16:19 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-10 16:19:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:0056 0 None None None 2022-03-10 16:19:54 UTC

Description Fan Jia 2021-10-13 10:26:22 UTC
Description of problem:
The "Custom Scorecard storage feature" function is not included in upstream v1.10.1, so it's not included in downstream ocp4.9 either. The PR 5028(https://github.com/operator-framework/operator-sdk/pull/5028) is not included in v1.10.x (https://github.com/operator-framework/operator-sdk/commits/v1.10.x). 


Version-Release number of selected component (if applicable):
operator-sdk version: "v1.10.1-ocp", commit: "0d49c0a295d30a25aa7b558a0597d0a9a199fa59", kubernetes version: "v1.21", go version: "go1.16.6", GOOS: "linux", GOARCH: "amd64"

How reproducible:
always

Steps to Reproduce:
$ operator-sdk version
operator-sdk version: "v1.10.1-ocp", commit: "0d49c0a295d30a25aa7b558a0597d0a9a199fa59", kubernetes version: "v1.21", go version: "go1.16.6", GOOS: "linux", GOARCH: "amd64"
$ operator-sdk scorecard -h

Actual results:
$ operator-sdk scorecard -h
Has flags to configure dsl, bundle, and selector. This command takes
one argument, either a bundle image or directory containing manifests and metadata.
If the argument holds an image tag, it must be present remotely.

Usage:
  operator-sdk scorecard [flags]

Flags:
  -c, --config string            path to scorecard config file
  -h, --help                     help for scorecard
      --kubeconfig string        kubeconfig path
  -L, --list                     Option to enable listing which tests are run
  -n, --namespace string         namespace to run the test images in
  -o, --output string            Output format for results. Valid values: text, json, xunit (default "text")
  -l, --selector string          label selector to determine which tests are run
  -s, --service-account string   Service account to use for tests (default "default")
  -x, --skip-cleanup             Disable resource cleanup after tests are run
  -w, --wait-time duration       seconds to wait for tests to complete. Example: 35s (default 30s)

Global Flags:
      --plugins strings   plugin keys to be used for this subcommand execution
      --verbose           Enable verbose logging

Expected results:
$ operator-sdk scorecard -h
Has flags to configure dsl, bundle, and selector. This command takes
one argument, either a bundle image or directory containing manifests and metadata.
If the argument holds an image tag, it must be present remotely.
Usage:
  operator-sdk scorecard [flags]
Flags:
  -c, --config string            path to scorecard config file
  -h, --help                     help for scorecard
      --kubeconfig string        kubeconfig path
  -L, --list                     Option to enable listing which tests are run
  -n, --namespace string         namespace to run the test images in
  -o, --output string            Output format for results. Valid values: text, json, xunit (default "text")
  -l, --selector string          label selector to determine which tests are run
  -s, --service-account string   Service account to use for tests (default "default")
  -x, --skip-cleanup             Disable resource cleanup after tests are run
  -t, --test-output string       Test output directory. (default "test-output")
  -w, --wait-time duration       seconds to wait for tests to complete. Example: 35s (default 30s)
Global Flags:
      --plugins strings   plugin keys to be used for this subcommand execution
      --verbose           Enable verbose logging

Additional info:

Comment 1 Jesus M. Rodriguez 2021-10-13 15:53:36 UTC
Moving this to 4.10 as the feature did not get pulled into 1.10. It is available upstream starting with operator-sdk v1.11.

Comment 2 Jesus M. Rodriguez 2021-10-13 15:54:34 UTC
Lowered the severity since this is no longer urgent for 4.9. I did make it a blocker for 4.10

Comment 3 Jesus M. Rodriguez 2021-12-15 19:08:52 UTC
The premerge PR with v1.15.0 contains support for scorecard storage. https://github.com/openshift/ocp-release-operator-sdk/pull/183 

Please verify this bug against that PR.

Comment 4 Cuiping HUO 2021-12-16 07:49:39 UTC
Verified. 
operator-sdk version: "v1.15.0-ocp", commit: "26bfc013ee8721a1cbf037babab04ed8b769483f", kubernetes version: "v1.21", go version: "go1.17.4", GOOS: "linux", GOARCH: "amd64"

$ operator-sdk scorecard -h
Has flags to configure dsl, bundle, and selector. This command takes
one argument, either a bundle image or directory containing manifests and metadata.
If the argument holds an image tag, it must be present remotely.

Usage:
  operator-sdk scorecard [flags]

Flags:
  -c, --config string            path to scorecard config file
  -h, --help                     help for scorecard
      --kubeconfig string        kubeconfig path
  -L, --list                     Option to enable listing which tests are run
  -n, --namespace string         namespace to run the test images in
  -o, --output string            Output format for results. Valid values: text, json, xunit (default "text")
  -l, --selector string          label selector to determine which tests are run
  -s, --service-account string   Service account to use for tests (default "default")
  -x, --skip-cleanup             Disable resource cleanup after tests are run
  -b, --storage-image string     Storage image to be used by the Scorecard pod (default "docker.io/library/busybox@sha256:c71cb4f7e8ececaffb34037c2637dc86820e4185100e18b4d02d613a9bd772af")
  -t, --test-output string       Test output directory. (default "test-output")
  -u, --untar-image string       Untar image to be used by the Scorecard pod (default "registry.access.redhat.com/ubi8@sha256:910f6bc0b5ae9b555eb91b88d28d568099b060088616eba2867b07ab6ea457c7")
  -w, --wait-time duration       seconds to wait for tests to complete. Example: 35s (default 30s)

Comment 8 errata-xmlrpc 2022-03-10 16:19:33 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.10.3 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.

https://access.redhat.com/errata/RHSA-2022:0056


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