Skip to content

Latest commit

 

History

History
157 lines (113 loc) · 7.48 KB

catalog-opbundle-tutorial.md

File metadata and controls

157 lines (113 loc) · 7.48 KB
copyright lastupdated keywords subcollection content-type services account-plan completion-time
years
2021, 2022
2022-10-26
private catalog, software, onboard, operator, validate, test, Red Hat OpenShift operator, operator bundle
account
tutorial
Registry
paid
45m

{{site.data.keyword.attribute-definition-list}}

Onboarding a Certified Operator from a {{site.data.keyword.redhat_notm}} registry

{: #catalog-opbundle-tutorial} {: toc-content-type="tutorial"} {: toc-services="Registry"} {: toc-completion-time="45m"}

This tutorial walks you through how to onboard a sample Operator bundle from a {{site.data.keyword.redhat_full}} registry to your account. By completing this tutorial, you learn how to create a private catalog in your account, import the Operator bundle, and validate that it can be installed on a {{site.data.keyword.openshiftshort}} cluster. {: shortdesc}

Before you begin

{: #catalog-opbundle-prereqs}

  1. Go to the {{site.data.keyword.redhat_notm}} OperatorHub to confirm that your Operator bundle exists in the {{site.data.keyword.redhat_notm}} Certified registry.
  2. Create your {{site.data.keyword.openshiftshort}} cluster.
  3. Upload your Operator bundle and application images to {{site.data.keyword.registrylong_notm}}.
  4. Verify that you're assigned the following {{site.data.keyword.cloud_notm}} Identity and Access Management (IAM). See Assigning access to account management services and Managing access to resources for more information.
    • Administrator on all account management services and all IAM-enabled services
    • Editor on the catalog management service
    • Editor on the software instance service
    • Editor on the {{site.data.keyword.registrylong_notm}} service
    • Administrator on the {{site.data.keyword.openshiftshort}} cluster

Make sure that you use the same account to access {{site.data.keyword.registrylong_notm}} and to create the {{site.data.keyword.openshiftshort}} cluster. {: important}

Create a private catalog

{: #catalog-opbundle-private} {: step}

Private catalogs provide a way for you to make your own products available to users in your account.

  1. Go to Manage > Catalogs in the {{site.data.keyword.cloud_notm}} console, and click Create a catalog.
  2. Select Product default as the catalog type.
  3. Enter the name of your catalog, for example, Sample Operator Bundle.
  4. Select No products to exclude all products in the {{site.data.keyword.cloud}} catalog from your catalog.
  5. Click Create.

Import your Operator bundle

{: #catalog-opbundle-import} {: step}

  1. On the Private products page, click Add.
  2. Select Operator from {{site.data.keyword.redhat_notm}} registry as your deployment method.
  3. Select Certified as your {{site.data.keyword.redhat_notm}} repository.
  4. Select your Operator bundle. For example, for the purposes of this tutorial, you can select Add a Cluster Operator as your Operator.
  5. Select the Operator bundle version that you would like to import.
  6. Enter the software version that the Operator bundle installs in the format of major version, minor version, and revision. For example, you can use Operator version 1.0.0 to install software version 2.0.0.
  7. Click Add version.

Review the version details

{: #catalog-opbundle-review-version} {: step}

  1. From the Version list table, click the row that contains your operator.
  2. Review your version details from the Review the version details section. There are no actions that you need to take. When you are ready to move on, click Next.

Add end user license agreements

{: #catalog-opbundle-license} {: step}

If users are required to accept any license agreements beyond the {{site.data.keyword.cloud_notm}} Services Agreement, provide the URL to each agreement.

  1. In the Version list table, click the row that contains your Operator bundle.
  2. Click Add license agreements > Add.
  3. Enter the name and URL of the license agreement, and click Update.
  4. After entering all additional license agreements, click Next.

Review your readme file

{: #catalog-opbundle-readme} {: step}

When users install the software, they can select the link to your readme file to view product information. The information in the Readme link is generated from the readme file information in the Edit readme tab.

  1. From the Edit readme tab, click the Edit icon Edit icon.
  2. Preview how the information in the readme file will be displayed to users when they install the Operator bundle.
  3. If you need to make changes, edit the information in the source file and import the updated Operator bundle to your private catalog.
  4. Click Next.

Validate your Operator bundle

{: #catalog-opbundle-validate} {: step}

Validate that the Operator bundle can be successfully installed on the target {{site.data.keyword.openshiftshort}} cluster.

  1. Click Validate product

  2. Select the Update channel to receive version updates from.

  3. Select whether you want to apply updates automatically or manually.

  4. Select the target cluster and project, and click Next.

  5. Enter the name of your Schematics workspace, select a resource group, select a Schematics region, and click Next.

    In the Tags field, you can enter a name of a specific tag to attach to your Operator. Tags provide a way to organize, track usage costs, and manage access to the resources in your account. {: tip}

  6. Click Validate.

Manage compliance

{: #catalog-opbundle-controls} {: step}

Controls are safeguards that are used to meet security and compliance requirements. Only controls that are supported by Security and Compliance Center, formatted correctly, and validated by Code Risk Analysis and Security and Compliance Center scans appear in the catalog. For more information, see Adding compliance details.

Manage compliance controls

{: #catalog-opbundle-add-controls}

You can review the controls that were added from your readme file and add additional controls.

  1. Click Add controls.
  2. Choose a profile.
  3. Select the controls that you want to add to your version.
  4. Click Add.

Run Code Risk Analyzer scan

{: #catalog-opbundle-cra-scan}

Scan your source code with Code Risk Analyzer to identify any security vulnerabilities that you need to assess.

  1. Click Run scan.
  2. Wait for the scan to finish.

Add Security and Compliance Center scan

{: #catalog-opbundle-scc-scan}

Add the scans that you previously ran in the Security and Compliance Center. Security and Compliance Center scans determine adherence to regulatory controls. For more information, see Scheduling a scan.

  1. Select the profile that you scanned.
  2. Select the Security and Compliance Center scan.
  3. Click Add scan.
  4. Click Next.

Review requirements

{: #catalog-opbundle-review-reqs}

You must complete validation and any other requirements to publish to your account.

Next steps

{: #catalog-opbundle-next}

After you onboard and validate your Operator bundle, you're ready to publish it to your account. From the Actions menu, select Publish to account. As a result, the Operator bundle is available only to users who have access to the Sample Operator Bundle private catalog in your account.