Plugins: Update missed ConversionHandler checks (#92011)

This commit is contained in:
Todd Treece 2024-08-16 09:10:32 -04:00 committed by GitHub
parent ca56f16615
commit a12b372556
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ func (cp *corePlugin) ValidateAdmission(ctx context.Context, req *backend.Admiss
}
func (cp *corePlugin) ConvertObjects(ctx context.Context, req *backend.ConversionRequest) (*backend.ConversionResponse, error) {
if cp.AdmissionHandler != nil {
if cp.ConversionHandler != nil {
ctx = backend.WithGrafanaConfig(ctx, req.PluginContext.GrafanaConfig)
return cp.ConversionHandler.ConvertObjects(ctx, req)
}

View File

@ -955,7 +955,7 @@ func (tp *testPlugin) MutateAdmission(ctx context.Context, req *backend.Admissio
// ConvertObject implements backend.AdmissionHandler.
func (tp *testPlugin) ConvertObjects(ctx context.Context, req *backend.ConversionRequest) (*backend.ConversionResponse, error) {
if tp.AdmissionHandler != nil {
if tp.ConversionHandler != nil {
return tp.ConversionHandler.ConvertObjects(ctx, req)
}