From 07109dbbf01216b4d7e94b8e1a7e137c5204c675 Mon Sep 17 00:00:00 2001 From: Dayuan Date: Wed, 28 Feb 2024 16:57:48 +0800 Subject: [PATCH] chore: delete the redundant patcher interface --- pkg/modules/interfaces.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pkg/modules/interfaces.go b/pkg/modules/interfaces.go index d0a63d48..9d7827c2 100644 --- a/pkg/modules/interfaces.go +++ b/pkg/modules/interfaces.go @@ -11,17 +11,9 @@ type Generator interface { Generate(intent *v1.Intent) error } -// Patcher is the interface that wraps the Patch method. -type Patcher interface { - Patch(resources map[string][]*v1.Resource) error -} - // NewGeneratorFunc is a function that returns a Generator. type NewGeneratorFunc func() (Generator, error) -// NewPatcherFunc is a function that returns a Patcher. -type NewPatcherFunc func() (Patcher, error) - // GeneratorRequest defines the request of generators. type GeneratorRequest struct { // Project represents the project name