diff --git a/pkg/controller/catalog/initialize.go b/pkg/controller/catalog/initialize.go index 0ab5472434..5d1ec67f8b 100644 --- a/pkg/controller/catalog/initialize.go +++ b/pkg/controller/catalog/initialize.go @@ -102,9 +102,14 @@ func (action *initializeAction) Handle(ctx context.Context, catalog *v1.CamelCat func initializeSpectrum(options spectrum.Options, ip *v1.IntegrationPlatform, catalog *v1.CamelCatalog) (*v1.CamelCatalog, error) { target := catalog.DeepCopy() + organization := ip.Status.Build.Registry.Organization + if organization == "" { + organization = catalog.Namespace + } imageName := fmt.Sprintf( - "%s/camel-k-runtime-%s-builder:%s", + "%s/%s/camel-k-runtime-%s-builder:%s", ip.Status.Build.Registry.Address, + organization, catalog.Spec.Runtime.Provider, strings.ToLower(catalog.Spec.Runtime.Version), )