-
Notifications
You must be signed in to change notification settings - Fork 50
Add resource annotation and enable all common services #286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| // +kubebuilder:resource:path=operandrequests,shortName=opreq,scope=Namespaced | ||
| // +operator-sdk:gen-csv:customresourcedefinitions.displayName="OperandRequest" | ||
| // +operator-sdk:gen-csv:customresourcedefinitions.resources=`Namespace,v1,""` | ||
| // +operator-sdk:gen-csv:customresourcedefinitions.resources=`Deployment,v1,""` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@horis233 one question, can you show some detail for what is the use of those comments? Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@gyliu513 These annotations are used to generate the resources field in the csv:
- description: OperandConfig is the Schema for the operandconfigs API
displayName: OperandConfig
kind: OperandConfig
name: operandconfigs.operator.ibm.com
resources: <------ this section
- kind: Catalogsource
name: ""
version: v1alpha1
- kind: Clusterserviceversion
name: ""
version: v1alpha1
- kind: Configmap
name: ""
version: v1
- kind: Deployment
name: ""
version: v1
- kind: Installplan
The resources fields are required in the RH certification. If without these annotations, every time when the CSV is re-generated, the resources fields will be removed. Developers need to manually add them back.
gyliu513
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gyliu513, horis233 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
Special notes for your reviewer:
Release note: