Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-29355

Output image url link leads to 404 for Shipwright Builds

    XMLWordPrintable

Details

    • No
    • ODC Sprint 3252
    • 1
    • Rejected
    • False
    • Hide

      None

      Show
      None
    • Hide
      Previously, if there was a Build Output Image with a Image tag, then the "Output Image" Link, which is shown in the Build/BuildRun Details page in the Specification section, was not redirecting to the correct ImageStream page.
      In this fix, we have solved this issue, by generating URL for the ImageStream without adding the tag in the link.
      Show
      Previously, if there was a Build Output Image with a Image tag, then the "Output Image" Link, which is shown in the Build/BuildRun Details page in the Specification section, was not redirecting to the correct ImageStream page. In this fix, we have solved this issue, by generating URL for the ImageStream without adding the tag in the link.
    • Bug Fix
    • In Progress

    Description

      When clicking on the output image link on a Shipwright BuildRun details page, the link leads to the imagestream details page but shows 404 error.

      The image link is:

      https://console-openshift-console.apps...openshiftapps.com/k8s/ns/buildah-example/imagestreams/sample-kotlin-spring%3A1.0-shipwright
      

      The BuildRun spec

      apiVersion: shipwright.io/v1beta1
      kind: BuildRun
      metadata: 
        generateName: sample-spring-kotlin-build-
        name: sample-spring-kotlin-build-xh2dq
        namespace: buildah-example
        labels: 
          build.shipwright.io/generation: '2'
          build.shipwright.io/name: sample-spring-kotlin-build
      spec: 
        build: 
          name: sample-spring-kotlin-build
      status: 
        buildSpec: 
          output: 
            image: 'image-registry.openshift-image-registry.svc:5000/buildah-example/sample-kotlin-spring:1.0-shipwright'
          paramValues: 
            - name: run-image
              value: 'paketocommunity/run-ubi-base:latest'
            - name: cnb-builder-image
              value: 'paketobuildpacks/builder-jammy-tiny:0.0.176'
            - name: app-image
              value: 'image-registry.openshift-image-registry.svc:5000/buildah-example/sample-kotlin-spring:1.0-shipwright'
          source: 
            git: 
              url: 'https://github.com/piomin/sample-spring-kotlin-microservice.git'
            type: Git
          strategy: 
            kind: ClusterBuildStrategy
            name: buildpacks
        completionTime: '2024-02-12T12:15:03Z'
        conditions: 
          - lastTransitionTime: '2024-02-12T12:15:03Z'
            message: All Steps have completed executing
            reason: Succeeded
            status: 'True'
            type: Succeeded
        output: 
          digest: 'sha256:dc3d44bd4d43445099ab92bbfafc43d37e19cfaf1cac48ae91dca2f4ec37534e'
        source: 
          git: 
            branchName: master
            commitAuthor: Piotr MiƄkowski
            commitSha: aeb03d60a104161d6fd080267bf25c89c7067f61
        startTime: '2024-02-12T12:13:21Z'
        taskRunName: sample-spring-kotlin-build-xh2dq-j47ql
      

      Attachments

        Issue Links

          Activity

            People

              avik6028 Avik Kundu
              ssadeghi@redhat.com Siamak Sadeghianfar
              Sanket Pathak Sanket Pathak
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: