fix(platform): Default to pod build strategy for Kaniko
@@ -68,11 +68,11 @@ func ConfigureDefaults(ctx context.Context, c client.Client, p *v1.IntegrationPl
// The only global strategy we have for now
p.Status.Build.BuildStrategy = v1.IntegrationPlatformBuildStrategyPod
} else {
- if p.Status.Build.PublishStrategy == v1.IntegrationPlatformBuildPublishStrategyBuildah {
+ if p.Status.Build.PublishStrategy == v1.IntegrationPlatformBuildPublishStrategyS2I {
+ p.Status.Build.BuildStrategy = v1.IntegrationPlatformBuildStrategyRoutine
+ } else {
// The build output has to be shared via a volume
p.Status.Build.BuildStrategy = v1.IntegrationPlatformBuildStrategyPod
- } else {
- p.Status.Build.BuildStrategy = v1.IntegrationPlatformBuildStrategyRoutine
}
}
}
