Skip to content

Commit

Permalink
fix: wrong var in controller template"
Browse files Browse the repository at this point in the history
  • Loading branch information
yuwenma committed Jan 12, 2025
1 parent c0ea763 commit f0dc9ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dev/tools/controllerbuilder/template/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ import (
)
func init() {
registry.RegisterModel(krm.{{.Kind}}GVK, New{{.Kind}}Model)
registry.RegisterModel(krm.{{.Kind}}GVK, New{{.ProtoResource}}Model)
}
func New{{.ProtoResource}}Model(ctx context.Context, config *config.ControllerConfig) (directbase.Model, error) {
Expand Down Expand Up @@ -129,9 +129,9 @@ func (m *model{{.ProtoResource}}) AdapterForURL(ctx context.Context, url string)
}
type {{.ProtoResource}}Adapter struct {
id *krm.{{.ProtoResource}}Ref
id *krm.{{.ProtoResource}}Identity
gcpClient *gcp.Client
desired *krm.{{.ProtoResource}}
desired *krm.{{.Kind}}
actual *{{.KCCService}}pb.{{.ProtoResource}}
}
Expand Down

0 comments on commit f0dc9ff

Please sign in to comment.