Bug 1915095

Summary: [downstream-helm operator] Add doc on behavior related to helm operator scaffolding
Product: OpenShift Container Platform Reporter: Varsha <vnarsing>
Component: DocumentationAssignee: Alex Dellapenta <adellape>
Status: CLOSED DEFERRED QA Contact: Xiaoli Tian <xtian>
Severity: high Docs Contact: Latha S <lmurthy>
Priority: medium    
Version: 4.8CC: adellape, aos-bugs, lmurthy
Target Milestone: ---   
Target Release: 4.8.z   
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: 2023-03-09 01:00:49 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 Varsha 2021-01-11 23:42:33 UTC
Section Number and Name:
Operator-SDK documentation. Related to Helm-operators

Describe the issue: 
The following behavior in helm operator project needs to be mentioned in documentation:
While scaffolding a new project, the helm operator scaffolder tries to use the cluster config for the best information. The permissions scaffolded in roles/rbac.yaml is based on whether the cluster config can be found or not.

While scaffolding a helm based project, `operator-sdk create api` needs to have a KUBECONFIG present. If not, users will have to add the required permissions for serviceaccount (in rbac/roles.yaml) manually. 

For example:
```
- apiGroups:
  - demo.my.domain
  resources:
  - nginxes
  - nginxes/status
  - nginxes/finalizers
  verbs:
  - create
  - delete
  - get
  - list
  - patch
  - update
  - watch
- verbs:
  - "*"
  apiGroups:
  - ""
  resources:
  - "serviceaccounts"
  - "services"
- verbs:
  - "*"
  apiGroups:
  - "apps"
  resources:
  - "deployments"

```


Additional information: 
The OCP documentation should point out the behavior of helm operator scaffolder to reduce confusions related to scaffolding of roles.yaml in the project.

cc: Alex Dellapenta (alexd)

Comment 7 Shiftzilla 2023-03-09 01:00:49 UTC
OpenShift has moved to Jira for its defect tracking! This bug can now be found in the OCPBUGS project in Jira.

https://issues.redhat.com/browse/OCPBUGS-8833

Comment 8 Red Hat Bugzilla 2023-09-18 00:24:10 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days