Preparing and applying upgraded custom resource

Upgrade IBM RPA on Red Hat® OpenShift® Container Platform to the most recent version.

Before you begin

Refer Versioning reference for available versions options.

Procedure

  1. In the OpenShift Console, go to Operators > Installed Operators and click IBM Robotic Process Automation.

    Installed operators page

  2. On the Robotic Process Automation tab, click the RPA Instance.

  3. On the YAML tab, set the replicas fields to 0 in the IBM RPA CR.

    apiVersion: rpa.automation.ibm.com/v1beta1
    kind: RoboticProcessAutomation
    metadata:
    name: rpa-sample
    spec:
    license:
        accept: true
    version: 1.2.2
    tls: {}
    api:
        externalConnection:
        secretName: rpa-db
        firstTenant:
        groupMappings:
            adminGroups: IBM Development
            superAdminsGroups: IBM Manager
            userGroups: IBM User
        name: ibm
        owner:
            email: superuser@example.com
            name: superuser
        replicas: 0
        smtp:
        port: 587
        server: smtp.example.com
        userSecret:
            secretName: rpa-smtp
        storage: {}
    ui:
        replicas: 0
    ocr:
        replicas: 0
    antivirus:
        replicas: 0
    

    Click Save once you've made your changes.

  4. Wait for the ready condition to appear in the status section of the IBM RPA CR:

    status:
    conditions:
    - lastTransitionTime: '2021-11-30T15:23:36Z'
        message: RPA successfully installed
        reason: Installed
        status: 'True'
        type: Ready
    
  5. Edit the YAML file again and change the spec.version field to the version number of IBM RPA you want to install. Click Save. Refer available versions at Versioning reference.

  6. Wait for the ready condition to appear in the status section of the IBM RPA CR:

    status:
    conditions:
    - lastTransitionTime: '2021-11-30T15:23:36Z'
        message: RPA successfully installed
        reason: Installed
        status: 'True'
        type: Ready
    
  7. Edit the YAML file again and restore the replicas to their previous value.