Upgrading specific images

You can specify a parameter in your deployment CR file to enable a test fix upgrade for a specific image.

Before you begin

You need Operand images.

About this task

Using the autoRemoveHotfix parameter, you can apply a test fix to specific images instead of performing a complete installation or upgrade.

Procedure

  1. Edit the CR file by using the following command.
    $ kubectl edit productmaster productmaster-cr
  2. To enable a test fix upgrade,
    • Update the value of the autoRemoveHotfix parameter to false. To disable, and proceed with normal deployment, set the value to true.
    • Update the spec.image_digests section with the SHA value of the latest images.
    Example
    cat <<EOF |oc apply -f -
    apiVersion: productmaster.cpd.ibm.com/v1
    kind: ProductMaster
    metadata:
      name: productmaster-cr
      labels:
        app.kubernetes.io/instance: ibm-cpd-productmaster-operator
        app.kubernetes.io/managed-by: ibm-cpd-productmaster-operator
        app.kubernetes.io/name: ibm-cpd-productmaster-operator
    spec:
      version: "4.1.0"
      scaleConfig: small
      license:
        accept: false
      shutdown: "false"
      autoScaleConfig: false
      fileStorageClass: portworx-rwx-gp3-sc
      blockStorageClass: portworx-rwx-gp3-sc
      enable_vendor: 0
      enable_dam: 0
      enable_ml: 0
      enable_gds: 0
      enable_wkc: 0
      enable_sso: 0
      enable_mountmgr: 0
      enable_magento: 0
      autoRemoveHotfix: false
      image_digests: 
        admin_service: sha256:xxxxxxx
        ftsind_service: sha256:xxxxxxx
        ftspim_service: sha256:xxxxxxx
        gds_service: sha256:xxxxxxx
        hazelcast_service: sha256:xxxxxxx
        magento_service: sha256:xxxxxxx
        messagearchive_service: sha256:xxxxxxx
        ml_service: sha256:xxxxxxx
        mongodb_service: sha256:xxxxxxx
        mq_service: sha256:xxxxxxx
        personaui_service: sha256:xxxxxxx
        restapi_service: sha256:xxxxxxx
        sch_service: sha256:xxxxxxx
        wfl_service: sha256:xxxxxxx
    EOF