Skip to content

Commit 50793e7

Browse files
yxd-ymarttor
authored andcommitted
Fix result.
1 parent 90d0588 commit 50793e7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pkg/processor/webhook/mutating.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,26 +66,26 @@ func (w mwh) Process(appMeta helmify.AppMetadata, obj *unstructured.Unstructured
6666
}
6767
certName = strings.TrimPrefix(certName, appMeta.Namespace()+"/"+appMeta.ChartName()+"-")
6868
res := fmt.Sprintf(mwhTempl, appMeta.ChartName(), name, certName, string(webhooks))
69-
return true, &whResult{
69+
return true, &mwhResult{
7070
name: name,
7171
data: []byte(res),
7272
}, nil
7373
}
7474

75-
type whResult struct {
75+
type mwhResult struct {
7676
name string
7777
data []byte
7878
}
7979

80-
func (r *whResult) Filename() string {
80+
func (r *mwhResult) Filename() string {
8181
return r.name + ".yaml"
8282
}
8383

84-
func (r *whResult) Values() helmify.Values {
84+
func (r *mwhResult) Values() helmify.Values {
8585
return helmify.Values{}
8686
}
8787

88-
func (r *whResult) Write(writer io.Writer) error {
88+
func (r *mwhResult) Write(writer io.Writer) error {
8989
_, err := writer.Write(r.data)
9090
return err
9191
}

pkg/processor/webhook/validating.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func (w vwh) Process(appMeta helmify.AppMetadata, obj *unstructured.Unstructured
6666
}
6767
certName = strings.TrimPrefix(certName, appMeta.Namespace()+"/"+appMeta.ChartName()+"-")
6868
res := fmt.Sprintf(vwhTempl, appMeta.ChartName(), name, certName, string(webhooks))
69-
return true, &whResult{
69+
return true, &vwhResult{
7070
name: name,
7171
data: []byte(res),
7272
}, nil

0 commit comments

Comments
 (0)