|Index|Deploying SUSE AI Factory with NVIDIA|How do I upgrade SUSE AI Factory with NVIDIA?
Applies to SUSE AI Factory with NVIDIA

4 How do I upgrade SUSE AI Factory with NVIDIA?

To upgrade SUSE AI Factory with NVIDIA and its template dependencies, use the Helm command-line interface. This procedure explains how to apply custom override configurations, automatically pull dependency updates, and safely deploy the latest operator version.

Important
Important

New releases may include breaking changes that require manual intervention. Always review the companion README file for release-specific instructions before upgrading.

To upgrade SUSE AI Factory with NVIDIA on the command line, follow these steps:

  1. (Optional) Identify the operator chart version number that you want to upgrade to, for example:

    > skopeo list-tags docker://ghcr.io/suse/chart/aif-operator

    The latest version is 2.4.0.

  2. Save all values of the AIF Operator Helm chart to values.yaml and customize them if required. Omit --version to display the latest chart.

    > helm show values oci://ghcr.io/suse/chart/aif-operator \
      --version 2.4.0 \
      --output yaml \
      > values.yaml
  3. Upgrade SUSE AI Factory Operator. Omit --version to upgrade to the latest chart.

    > helm upgrade --install \
      aif-operator oci://ghcr.io/suse/chart/aif-operator \
      -n aif-operator \
      --version 2.4.0 \
      -f values.yaml

    The upgrade can take a few minutes.

Note
Note: Custom resource definitions on upgrade

CRDs are installed on first installation through the standard crds/ directory of the chart. Because Helm never upgrades that directory, the chart applies CRD schema changes through a pre-install and pre-upgrade job (crds.manageWithJob=true). The job only creates or updates CRDs; it never deletes them.

The job requires the kubectl image defined by the crds.image values. In an air-gapped environment, mirror this image or override the registry.

In restricted environments where the installer cannot create cluster-scoped RBAC, set crds.rbac.create=false, create the service account, cluster role and cluster role binding in advance, and set crds.serviceAccountName to the name of the service account in the release namespace.

To skip the job entirely, set crds.manageWithJob=false. You are then responsible for applying the CRDs from the chart’s crds/ directory with kubectl apply --server-side -f crds/ before each upgrade.

Note
Note: Rancher Prime readiness check

Before the operator is installed or upgraded, a pre-install and pre-upgrade job waits until the required Fleet and Rancher Prime catalog CRDs and the cattle-ui-plugin-system namespace are available. The job waits for as long as the installer allows, for example as set by helm --timeout or by the Fleet helm.timeoutSeconds option. If Rancher Prime does not become ready within that time, the installation or upgrade fails.

The job uses the kubectl image defined by the global.kubectl.image values, by default registry.suse.com/suse/kubectl:1.35. In an air-gapped environment, mirror this image or override the registry.

Important
Important: Changes to review before upgrading to 2.4.0
  • Upgrade the operator and the UI extension to matching versions. The fixes for None and partial secret references on the Settings page require both the operator and the UI extension in version 2.4.0.

  • The Settings and InstallAIExtension CRDs are updated. The name and key of a secret reference must not be empty. The CRD job applies this change during the upgrade. On Kubernetes 1.30 and later, a Settings resource that already stores a secret reference without a key, or a key without a secret, can still be updated as long as that field is not changed. Complete or clear such references the next time you edit the settings, as described in Section 3.7, “How do I change or remove secret references in the settings?”.

  • New installations use a random default namespace. The installation wizards suggest a namespace such as <APP>-k3x9q2a instead of <APP>-system. If your scripts or policies expect <APP>-system, enter that namespace explicitly in the wizard. Existing workloads keep their namespace.

Important
Important: Changes to review when upgrading from 2.3.0
  • The partner blueprint catalog is enabled by default. The chart creates the Fleet GitRepo resource fleet-local/aif-partner-blueprints, which synchronizes the SUSE partner blueprints from GitHub. If you already added a catalog on the Settings page that points to the same repository, remove it after upgrading. Otherwise, two GitRepo resources synchronize the same blueprints and conflict. In air-gapped environments, disable the catalog or point it at a mirror, as described in Section 3.9.1, “SUSE partner blueprint catalog”.

  • Catalogs declared in blueprintCatalogs are read-only outside Helm. Change or remove them only with helm upgrade, and always pass --reuse-values so that Helm keeps the other values you set. If a catalog added on the Settings page has the same name as a Helm-declared catalog but a different repository, branch or paths, helm upgrade fails with a server-side apply conflict. Remove or rename that catalog first.

  • Server-side apply is required to combine both kinds of catalogs. If blueprintCatalogs is not empty and you also add catalogs on the Settings page, upgrade with server-side apply. Releases first installed with Helm 3, including releases upgraded through Rancher Prime Apps, keep using client-side apply, which drops the catalogs added on the Settings page. Run one helm upgrade --server-side=true to switch the release to server-side apply; later upgrades keep it.

  • Blueprints with source: Community require 2.3.1 or newer. Operator version 2.3.0 and earlier reject this value. If you publish blueprint catalogs, do not use it until 2.3.1 is the minimum operator version that you support.

Important
Important: Changes to review when upgrading from 2.2.x
  • Upgrade the operator and the UI extension to matching versions. Repository chart-access checks, blueprint customization and partner icons require both the operator and the UI extension in version 2.3.0 or newer.

  • Mirror the new kubectl image in air-gapped environments. The Rancher Prime readiness job uses the image defined by global.kubectl.image.

  • New CRD and CRD changes. The blueprintcatalogs.ai-factory.suse.com CRD is added, and the AIWorkload, Blueprint and Settings CRDs are updated. The CRD job applies these changes during the upgrade.

  • The status of application workloads deployed with Helm may change. Workloads that previously showed Running may show Pending or Degraded after the upgrade if their pods are not ready.

  • The aif-ui-config ConfigMap is retained when the UI extension is uninstalled. If you install the UI extension chart on its own, without the operator, over an existing aif-ui-config ConfigMap, run helm install or helm upgrade with the --take-ownership option (Helm 3.15 or newer).

  • Custom repository names are reserved. Custom chart repositories cannot use the names of built-in SUSE AI Factory with NVIDIA repositories, default Rancher Prime repositories, NVIDIA team repositories or other existing ClusterRepo resources.

  • Blueprints with source: Partner require 2.3.0 or newer. Operator version 2.2.0 rejects this value. If you publish blueprint catalogs, do not use it until 2.3.0 is the minimum operator version that you support.