opendatahub-io / opendatahub-operator

Open Data Hub operator to manage ODH component integrations
https://opendatahub.io
Apache License 2.0
60 stars 139 forks source link

fix: dashboard image not get set in downstream due to devFlags config #1224

Closed zdtsw closed 1 month ago

zdtsw commented 2 months ago

Description

https://issues.redhat.com/browse/RHOAIENG-12300

How Has This Been Tested?

local build and test: 'quay.io/wenzhou/opendatahub-operator:2.12300.1'

steps: create DSC CR with

dashboard:
      devFlags: {}
      managementState: Managed

and

dashboard:
      managementState: Managed

does not trigger debug into OverrideManifests use

dashboard:
      managementState: Managed
     devFlags:
         manifests: [
              uri: "https://wen.zhou.com"
          ]
         }

into error, expected,"https://wen.zhou.com\": dial tcp: lookup wen.zhou.com on 172.30.0.10:53: no such host",

Screenshot or short clip

Merge criteria

zdtsw commented 2 months ago

/retest

openshift-ci[bot] commented 2 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andrewballantyne, lburgazzoli

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/opendatahub-io/opendatahub-operator/blob/incubation/OWNERS)~~ [lburgazzoli] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment
zdtsw commented 2 months ago

/retest

VaishnaviHire commented 2 months ago

/lgtm

ykaliuta commented 1 month ago

Honestly, I'm confused. if d.DevFlags != nil it should call d.OverrideManifests where it checks len(d.DevFlags.Manifests) != 0

zdtsw commented 1 month ago

Honestly, I'm confused. if d.DevFlags != nil it should call d.OverrideManifests where it checks len(d.DevFlags.Manifests) != 0

yep yep, the tricky part is, it does as you said, but then it skipped:

} else { // Update image parameters if devFlags is not provided
            imageParamMap["odh-dashboard-image"] = "RELATED_IMAGE_ODH_DASHBOARD_IMAGE"
}
ykaliuta commented 1 month ago

ah, ok, thanks!