Plugins: Update missed ConversionHandler checks (#92011)
This commit is contained in:
1 parent
ca56f16615
commit
a12b372556
2 files changed
+2
-2
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user