Uploaded image for project: 'Openshift sandboxed containers'
  1. Openshift sandboxed containers
  2. KATA-4110

prow add trustee catasrc creation

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • OSC 1.11
    • CI
    • None
    • 1
    • False
    • Hide

      None

      Show
      None
    • False
    • Blanc #1
    • 0

      Unlike OSC, trustee does not have the Julienned versioning system of X.Y.Z-epoch_time.

       

      Until then, trustee's ,method is

      OCP_VERSION=4.19 # or 4.16-4.18
      OCP_VER=$(echo $OCP_VERSION | tr '.' '-')
      subfolder=""
      APIURL="https://quay.io/api/v1/repository/redhat-user-workloads/ose-osc-tenant/${subfolder}trustee-fbc-${OCP_VER}"
      TIDX=quay.io/redhat-user-workloads/ose-osc-tenant/${subfolder}trustee-fbc-${OCP_VER}
      TVER=$(page=1; while resp=$(curl -sf "$APIURL/tag/?limit=100&page=$page") && jq -e '.tags | length > 0' <<<"$resp" >/dev/null; do echo "$resp"; ((page++)); done | jq -r --arg test_string "^trustee-fbc-${OCP_VER}-on-push-.*-build-image-index$" '.tags[]? | select(.name | test($test_string)) | "\(.start_ts) \(.name)"' | sort -nr | head -n1 | awk '{print $2}')
      TRUSTEE_CATALOG_SOURCE_IMAGE=${TIDX}:${TVER}
      # echo "TRUSTEE_CATALOG_SOURCE_IMAGE=$TIDX:$TVER"
      

       

      Changes will probably be in

      ci-operator/step-registry/sandboxed-containers-operator/env-cm

       

       

              tbuskey-rh Tom Buskey
              tbuskey-rh Tom Buskey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: