Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One of the images has no text in web console using pipelinetemplate.json #55

Closed
spadgett opened this issue Jun 5, 2016 · 10 comments
Closed
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/P2

Comments

@spadgett
Copy link
Member

spadgett commented Jun 5, 2016

openshift_web_console

Using examples/jenkins/pipeline/pipelinetemplate.json.

/cc @jwforres

@spadgett spadgett added kind/bug Categorizes issue or PR as related to a bug. priority/P3 labels Jun 5, 2016
@liggitt
Copy link
Contributor

liggitt commented Jun 6, 2016

is this related to deployment configs being allowed to contain empty image names in their podspecs? I think some are being set to " " to avoid trying to pull bogus images before the dc is updated by a image change trigger

@spadgett
Copy link
Member Author

spadgett commented Jun 6, 2016

@liggitt
Copy link
Contributor

liggitt commented Jun 6, 2016

openshift/origin#9167 is proposing making image an optional field for dc podspecs to allow an image change trigger to populate it. asked in that pr what the UI should look at as a fallback if the dc image is empty

@spadgett
Copy link
Member Author

@liggitt Didn't see an answer in openshift/origin#9167. Any thought on what to put here?

@liggitt
Copy link
Contributor

liggitt commented Jun 20, 2016

@spadgett I think something like this:

  1. iterate over spec.triggers
  2. find triggers of type ImageChange where imageChangeParams.containerNames includes the container name whose image is set to the empty string (or possibly where imageChangeParams.containerNames is null or an empty list?)
  3. the from field of that ImageChange trigger references an imageStreamTag that will be used to populate the container's image field

@liggitt
Copy link
Contributor

liggitt commented Jun 20, 2016

@bparees, can you confirm this method ^

@bparees
Copy link
Contributor

bparees commented Jun 20, 2016

mostly confirmed. I don't think containerNames can be null/empty (for buildconfigs we do offer that sort of defaulting, but i don't think DCs do). @Kargakis would need to confirm though.

also not sure if the from field can reference a straight ImageStream or it always references an IST.

I had thought we discussed the need for this with @jwforres or even concluded the console was already doing this (ignoring the image field and displaying the ICT reference instead, when there was one)?

@0xmichalis
Copy link

mostly confirmed. I don't think containerNames can be null/empty (for buildconfigs we do offer that sort of defaulting, but i don't think DCs do). @Kargakis would need to confirm though.

I don't remember off hand but it seems this is correct:
https://github.com/openshift/origin/blob/7d6a536172ff82a6a60fbc51a71c35409e9017a0/pkg/deploy/api/validation/validation.go#L408

also not sure if the from field can reference a straight ImageStream or it always references an IST.

Always an IST:
https://github.com/openshift/origin/blob/7d6a536172ff82a6a60fbc51a71c35409e9017a0/pkg/deploy/api/v1/defaults.go#L103
https://github.com/openshift/origin/blob/7d6a536172ff82a6a60fbc51a71c35409e9017a0/pkg/deploy/api/validation/validation.go#L397

@jwforres
Copy link
Member

Bumping priority to a P2 because the pipeline example has two of these images showing up blank. We should really get this fixed

@spadgett
Copy link
Member Author

Bumping priority to a P2 because the pipeline example has two of these images showing up blank. We should really get this fixed

Also a problem for the DB templates.

sg00dwin pushed a commit to sg00dwin/origin-web-console that referenced this issue Aug 22, 2017
Refactoring LESS layout, simplifying gray background shading, &
f0x11 pushed a commit to f0x11/origin-web-console that referenced this issue Dec 22, 2017
Update octopus-dependencies.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/P2
Projects
None yet
Development

No branches or pull requests

5 participants