Bug 1913864 - BuildConfig YAML template references ruby ImageStreamTag that no longer exists
Summary: BuildConfig YAML template references ruby ImageStreamTag that no longer exists
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.7
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.7.0
Assignee: Samuel Padgett
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-07 18:13 UTC by Samuel Padgett
Modified: 2021-02-24 15:51 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
In the web console, the sample BuildConfig YAML resource referenced an ImageStreamTag that has since been removed. The sample has been updated to use a newer ImageStreamTag.
Clone Of:
Environment:
Version: 4.7.0-0.nightly-2020-12-21-131655 Cluster ID: 9497f966-1581-4082-b638-026d2d7c24e9 Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:84.0) Gecko/20100101 Firefox/84.0
Last Closed: 2021-02-24 15:50:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 7758 0 None open Bug 1913864: Update ImageStreamTag in sample BuildConfig YAML 2021-01-07 19:53:25 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:51:13 UTC

Description Samuel Padgett 2021-01-07 18:13:07 UTC
You see the following error when starting a Build with the example BuildConfig YAML:

Error "Error resolving ImageStreamTag ruby:2.4 in namespace openshift: unable to find latest tagged image" for field "from".

We need to update the ImageStreamTag we use.

Comment 2 Yadan Pei 2021-01-11 03:24:26 UTC
Now BuildConfig YAML is

apiVersion: build.openshift.io/v1
kind: BuildConfig
metadata:
  name: example
  namespace: default
spec:
  source:
    git:
      ref: master
      uri: 'https://github.com/openshift/ruby-ex.git'
    type: Git
  strategy:
    type: Source
    sourceStrategy:
      from:
        kind: ImageStreamTag
        name: 'ruby:2.7'
        namespace: openshift
      env: []
  triggers:
    - type: ImageChange
      imageChange: {}
    - type: ConfigChange

build can be created successfully

Verified on 4.7.0-0.nightly-2021-01-10-070949

Comment 5 errata-xmlrpc 2021-02-24 15:50:58 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2020:5633


Note You need to log in before you can comment on or make changes to this bug.