From 86cf7e0732ca8c446b476f8435318e1fb3c64e1a Mon Sep 17 00:00:00 2001 From: Lennart Kats Date: Fri, 20 Dec 2024 16:49:46 +0100 Subject: [PATCH] Restore Target logic --- bundle/config/mutator/apply_presets_catalog_schema.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bundle/config/mutator/apply_presets_catalog_schema.go b/bundle/config/mutator/apply_presets_catalog_schema.go index 269cfd47b..692b0792d 100644 --- a/bundle/config/mutator/apply_presets_catalog_schema.go +++ b/bundle/config/mutator/apply_presets_catalog_schema.go @@ -73,6 +73,11 @@ func (m *applyPresetsCatalogSchema) Apply(ctx context.Context, b *bundle.Bundle) if pl.Catalog == "" { pl.Catalog = p.Catalog } + if pl.Schema == "" && pl.Target == "" { + // As of 2024-12, the Schema field isn't broadly supported yet in the pipelines API. + // Until it is, we set the Target field. + pl.Target = p.Schema + } if allSameCatalog && pl.Catalog == p.Catalog { // Just for the common case where all pipelines have the same catalog, // we show a recommendation to leave it out and rely on presets.