Bug 1915095 - [downstream-helm operator] Add doc on behavior related to helm operator scaffolding
Summary: [downstream-helm operator] Add doc on behavior related to helm operator scaff...
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Documentation
Version: 4.8
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: ---
: 4.8.z
Assignee: Alex Dellapenta
QA Contact: Xiaoli Tian
Latha S
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-11 23:42 UTC by Varsha
Modified: 2023-09-18 00:24 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-03-09 01:00:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


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