Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1838881

Summary: [operator-sdk][upstream] "generate crds" doesn't work in ansible & helm type operators
Product: OpenShift Container Platform Reporter: Fan Jia <jfan>
Component: Operator SDKAssignee: Joe Lanford <jlanford>
Status: CLOSED WONTFIX QA Contact: Fan Jia <jfan>
Severity: high Docs Contact:
Priority: medium    
Version: 4.5CC: aos-bugs, fabian, jesusr, marobrie
Target Milestone: ---   
Target Release: 4.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-27 16:31:14 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:

Description Fan Jia 2020-05-22 01:32:13 UTC
Description of problem:
Operator-sdk generate crds command can't work for ansible&helm type operator with error "deploy/crds: file does not exist". The command works well for go type operators.

Version-Release number of selected component (if applicable):
1. operator-sdk version: "v0.17.0-106-gab710951", commit: "ab71095122431788fe6b8775d9606c050895c47d", kubernetes version: "v1.18.2", go version: "go1.13.5 linux/amd64"
2. the operator examples: https://github.com/operator-framework/operator-sdk-samples

How reproducible:
always

Steps to Reproduce:
1. run "operator-sdk generate crds" in the ansible type operaor
2.run "operator-sdk generate crds" in the helm type operaor
3.run "operator-sdk generate crds" in the go type operaor

Actual results:
1. the helm& ansible command result
$ operator-sdk generate crds
`
INFO[0000] Running CRD generator.                       
FATA[0000] error generating CRDs from APIs in pkg/apis: error generating CRD manifests: error reading CRD cache dir deploy/crds: open deploy/crds: file does not exist
`
2. the go type operator command result
$operator-sdk generate crds
`
INFO[0000] Running CRD generator.                       
INFO[0000] CRD generation complete. 
`
Expected results:
1. the ansible & helm type operators should also generate the crds success

Additional info:
The 'deploy/crds' exists in the ansible & helm type operators

Comment 1 Red Hat Bugzilla 2023-09-14 06:01:00 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days