Skip to content

Commit

Permalink
fix(buildah): Add fullname default baseImage override into the ip for…
Browse files Browse the repository at this point in the history
… buildah
  • Loading branch information
gansheer committed Jun 14, 2023
1 parent d8d3bf6 commit 594ceeb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/builder/buildah.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package builder
const BuildahPlatform = "BuildahPlatform"
const BuildahImage = "BuildahImage"
const BuildahDefaultImageName = "quay.io/buildah/stable"
const BuildahDefaultBaseImageName = "docker.io/library/eclipse-temurin:11"

var buildahSupportedOptions = map[string]PublishStrategyOption{
BuildahPlatform: {
Expand Down
3 changes: 3 additions & 0 deletions pkg/platform/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,9 @@ func setPlatformDefaults(p *v1.IntegrationPlatform, verbose bool) error {
if p.Status.Build.BaseImage == "" {
log.Debugf("Integration Platform %s [%s]: setting base image", p.Name, p.Namespace)
p.Status.Build.BaseImage = defaults.BaseImage()
if p.Status.Build.PublishStrategy == v1.IntegrationPlatformBuildPublishStrategyBuildah {
p.Status.Build.BaseImage = builder.BuildahDefaultBaseImageName
}
}
if p.Status.Build.Maven.LocalRepository == "" {
log.Debugf("Integration Platform %s [%s]: setting local repository", p.Name, p.Namespace)
Expand Down

0 comments on commit 594ceeb

Please sign in to comment.