Uploaded image for project: 'Agent-based Installer for OpenShift'
  1. Agent-based Installer for OpenShift
  2. AGENT-575

Use oc image info to check that configured architecture matches release image

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      The command `oc image info` can be used to check that the release image matches the architecture configured in install-config.yaml, even if the release image is multiarch. We should use this as an additional validation.

      For example, with a multiarch release image this command can be used to check the architecture

      $ oc image info --registry-config=./pull_secret.json quay.io/openshift-release-dev/ocp-release-nightly@sha256:100897930bf57b52fee373bf1f1f88cd7492f279ff2188ce74af17ee85d18afe -o json --filter-by-os linux/arm64 | jq -r '.config.architecture'
      arm64
      [bfournie@bfournie workspace-agent]$ oc version
      Client Version: 4.12.0-0.nightly-2022-07-07-144231
      Kustomize Version: v4.5.4

            Unassigned Unassigned
            bfournie@redhat.com Robert Fournier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: