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 // Make sure it is a known plugin type
p, found := s.pluginStore.Plugin(ctx, settings.Type) p, found := s.pluginStore.Plugin(ctx, settings.Type)
if !found { if !found {
return nil, errutil.BadRequest("datasource.unknownPlugin", // Ignore non-existing plugins for the time being
errutil.WithPublicMessage(fmt.Sprintf("plugin '%s' not found", settings.Type))) return settings, nil
} }
// When the APIVersion is set, the client must also implement AdmissionHandler // When the APIVersion is set, the client must also implement AdmissionHandler