Updating the base image for existing Ansible- or Helm-based Operator projects to support OpenShift Container Platform 4.19 and later

Updated

In OpenShift 4.19 and later, the Red Hat-supported version of the Operator SDK CLI tool, including the related scaffolding and testing tools for Operator projects, is no longer released with OpenShift Container Platform.

The following related base images for Operator projects are not removed or deprecated. The runtime functionality and configuration APIs for these base images are still supported for bug fixes and for addressing CVEs.

  • The base image for Ansible-based Operator projects
  • The base image for Helm-based Operator projects

Use the following procedure to update the supported base images using the upstream version of the Operator SDK.

Prerequisites

  • An Operator project created or maintained with Operator SDK

Procedure

  • Edit the Dockerfile of your Operator project to update the base image tag to the appropriate version, similar to the following examples:

    Example Dockerfile for Ansible-based Operator projects
    $ FROM registry.redhat.io/openshift4/ose-ansible-operator:v<ocp-version>

    Example Dockerfile for Helm-based Operator projects
    FROM registry.redhat.io/openshift4/ose-helm-rhel9-operator:v<ocp-version>

    where:
    ocp-version :: Specifies the version of OpenShift you want your project to support, such as 4.19.

For information about the unsupported, community-maintained, version of the Operator SDK, see Content from sdk.operatorframework.io is not included.Operator SDK (Operator Framework).

The following table shows the compatibility matrix between OpenShift Container Platform versions and the upstream Helm and Ansible Operators.

OCP VersionHelm Operator versionAnsible Operator version
4.21helm-operator v1.42.0ansible-operator v1.42.0
4.20helm-operator v1.40.0ansible-operator v1.38.1
4.19helm-operator v1.39.2ansible-operator v1.37.2
4.18helm-operator v1.38.0ansible-operator v1.36.1
4.17helm-operator v1.36.1ansible-operator v1.35.0
4.16helm-operator v1.36.1ansible-operator v1.35.0
4.15helm-operator v1.31.0ansible-operator v1.31.0
4.14helm-operator v1.31.0ansible-operator v1.31.0
4.12helm-operator v1.25.4ansible-operator v1.25.4
Category
Components
Article Type