Fix provisioning for a missing plugin (#88354)

This commit is contained in:
Andres Martinez Gotor authored and GitHub committed 2024-05-28 01:47:45 +03:00
1 parent 39298a656a
commit 0b526acf09
1 file changed
+2 -2
@@ -315,8 +315,8 @@ func (s *Service) prepareInstanceSettings(ctx context.Context, pluginContext bac
// Make sure it is a known plugin type
p, found := s.pluginStore.Plugin(ctx, settings.Type)
if !found {
return nil, errutil.BadRequest("datasource.unknownPlugin",
errutil.WithPublicMessage(fmt.Sprintf("plugin '%s' not found", settings.Type)))
// Ignore non-existing plugins for the time being
return settings, nil
}
// When the APIVersion is set, the client must also implement AdmissionHandler