Bug 2047197
| Summary: | Sould upgrade the operator_sdk.util version to "0.4.0" for the "osdk_metric" module | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Fan Jia <jfan> |
| Component: | Operator SDK | Assignee: | Jesus M. Rodriguez <jesusr> |
| Status: | CLOSED ERRATA | QA Contact: | Fan Jia <jfan> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 4.10 | CC: | jlanford |
| Target Milestone: | --- | ||
| Target Release: | 4.11.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: |
N/A
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-08-10 10:44:20 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: | |
| Embargoed: | |||
Fixed in 4.11 in v1.18.0-ocp or later. https://github.com/openshift/ocp-release-operator-sdk/blob/master/internal/plugins/ansible/v1/scaffolds/internal/templates/requirements.go#L40-L41 operator-sdk version
operator-sdk version: "v1.18.1-ocp", commit: "eb7df29d845ba00cee6f662ab7604644786198b4", kubernetes version: "v1.22", go version: "go1.17.4", GOOS: "linux", GOARCH: "amd64"
cat requirements.yml
---
collections:
- name: community.kubernetes
version: "1.2.1"
- name: operator_sdk.util
version: "0.4.0"
- name: kubernetes.core
version: "2.2.0"
- name: cloud.common
version: "2.1.0"
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 (Important: OpenShift Container Platform 4.11.0 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. https://access.redhat.com/errata/RHSA-2022:5069 |
Description of problem: The default operator_sdk.util version of operators that generated by operator-sdk is "0.3.1". But the "osdk_metric" module is included in operator_sdk.util 0.4.0. Should update the default operator_sdk.util to "0.4.0". Version-Release number of selected component (if applicable): operator-sdk version: "v1.16.0-ocp", commit: "fedd2e9222038fa5e8221e513da1c62f0767d94a", kubernetes version: "v1.22", go version: "go1.17.4", GOOS: "linux", GOARCH: "amd64" How reproducible: always Steps to Reproduce: 1.operator-sdk init --plugins=ansible --domain=metrics.com Actual results: 1.$ cat requirements.yml --- collections: - name: community.kubernetes version: "1.2.1" - name: operator_sdk.util version: "0.3.1" - name: kubernetes.core version: "2.2.0" Expected results: $ cat requirements.yml --- collections: - name: community.kubernetes version: "1.2.1" - name: operator_sdk.util version: "0.4.0" - name: kubernetes.core version: "2.2.0" Additional info: