Skip to content

Commit

Permalink
Merge pull request #2004 from acpana/acpana/fix-head
Browse files Browse the repository at this point in the history
chore: update merge
  • Loading branch information
google-oss-prow[bot] authored Jun 13, 2024
2 parents 00c444b + 2a28a93 commit c820b98
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/controller/direct/cloudbuild/workerpool_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
"github.com/GoogleCloudPlatform/k8s-config-connector/pkg/config"
"github.com/GoogleCloudPlatform/k8s-config-connector/pkg/controller/direct/directbase"
"github.com/GoogleCloudPlatform/k8s-config-connector/pkg/controller/direct/references"
"github.com/GoogleCloudPlatform/k8s-config-connector/pkg/controller/direct/registry"
"github.com/googleapis/gax-go/v2/apierror"
"google.golang.org/protobuf/types/known/fieldmaskpb"
"google.golang.org/protobuf/types/known/timestamppb"
Expand All @@ -42,11 +43,11 @@ import (
)

func init() {
directbase.ControllerBuilder.RegisterModel(krm.GroupVersionKind, NewModel)
registry.RegisterModel(krm.GroupVersionKind, NewModel)
}

func NewModel(config *config.ControllerConfig) directbase.Model {
return &model{config: *config}
func NewModel(ctx context.Context, config *config.ControllerConfig) (directbase.Model, error) {
return &model{config: *config}, nil
}

const ctrlName = "cloudbuild-controller"
Expand Down

0 comments on commit c820b98

Please sign in to comment.