Fix provisioning for a missing plugin (#88354)

This commit is contained in:
Andres Martinez Gotor 2024-05-28 00:47:45 +02:00 committed by GitHub
parent 39298a656a
commit 0b526acf09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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