Skip to content

Commit e9de8f5

Browse files
authored
Merge pull request #145 from darkowlzz/use-applier
Embed Applier interface in kubectlClient interface
2 parents 27159f8 + baf9712 commit e9de8f5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/patterns/declarative/pkg/applier/type.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ import (
55
)
66

77
type Applier interface {
8-
Applyx(ctx context.Context, namespace string, manifest string, validate bool, extraArgs ...string) error
8+
Apply(ctx context.Context, namespace string, manifest string, validate bool, extraArgs ...string) error
99
}

pkg/patterns/declarative/reconciler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ type Reconciler struct {
6565
}
6666

6767
type kubectlClient interface {
68-
Apply(ctx context.Context, namespace string, manifest string, validate bool, args ...string) error
68+
applier.Applier
6969
}
7070

7171
type DeclarativeObject interface {

0 commit comments

Comments
 (0)