Skip to content

Conversation

@horis233
Copy link
Contributor

What this PR does / why we need it:

  1. Enable all the services
  2. Add resources annotation for each crd

Special notes for your reviewer:

  1. Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:

NONE

@ibm-ci-bot ibm-ci-bot requested a review from gyliu513 March 31, 2020 15:17
@horis233 horis233 changed the title Add resource annotation Add resource annotation and enable all common services Mar 31, 2020
// +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,""`
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

@gyliu513 gyliu513 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@ibm-ci-bot
Copy link
Contributor

[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

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ibm-ci-bot ibm-ci-bot merged commit dd57c6e into IBM:master Apr 1, 2020
@horis233 horis233 deleted the add-resource-annotation branch April 2, 2020 16:24
ZhuoxiLi pushed a commit to ZhuoxiLi/operand-deployment-lifecycle-manager that referenced this pull request Aug 19, 2021
ZhuoxiLi pushed a commit to ZhuoxiLi/operand-deployment-lifecycle-manager that referenced this pull request Aug 19, 2021
* Revert "don't deploy policy controller by default (IBM#282)"

This reverts commit cb32303.

* Revert "remove iam-policy-controller (IBM#286)"

This reverts commit 329c712.

* add replaces back
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants