Skip to content

Commit

Permalink
fix: Fix the wrong value of the target template when s2i is rebuilded
Browse files Browse the repository at this point in the history
  • Loading branch information
harrisonliu5 committed Jun 19, 2020
1 parent 6702e73 commit fab8319
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ export default class TemplateSelect extends React.PureComponent {
return get(this.props.formTemplate, 'metadata.annotations.languageType')
}

get builderImage() {
return get(this.props.formTemplate, 'spec.config.builderImage')
}

get containerList() {
const { builderTemplate } = this.props

Expand Down Expand Up @@ -100,7 +104,9 @@ export default class TemplateSelect extends React.PureComponent {

return get(
builderTemplate.find(
template => get(template, 'spec.codeFramework') === this.languageType
template =>
get(template, 'spec.codeFramework') === this.languageType &&
get(template, 'spec.config.builderImage') === this.builderImage
),
'spec.defaultBaseImage',
''
Expand Down

0 comments on commit fab8319

Please sign in to comment.