Skip to content

Commit

Permalink
fix build time errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaan-jaff committed Oct 21, 2024
1 parent 4d2f846 commit e434fd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apis/litellm.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ package apis
import (
"k8s.io/apimachinery/pkg/runtime"

samplev1alpha1 "github.com/crossplane/provider-litellm/apis/sample/v1alpha1"
keyv1alpha1 "github.com/crossplane/provider-litellm/apis/key/v1alpha1"
litellmv1alpha1 "github.com/crossplane/provider-litellm/apis/v1alpha1"
)

func init() {
// Register the types with the Scheme so the components can map objects to GroupVersionKinds and back
AddToSchemes = append(AddToSchemes,
litellmv1alpha1.SchemeBuilder.AddToScheme,
samplev1alpha1.SchemeBuilder.AddToScheme,
keyv1alpha1.SchemeBuilder.AddToScheme,
)
}

Expand Down
4 changes: 2 additions & 2 deletions internal/controller/litellm.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ import (
ctrl "sigs.k8s.io/controller-runtime"

"github.com/crossplane/provider-litellm/internal/controller/config"
"github.com/crossplane/provider-litellm/internal/controller/mytype"
"github.com/crossplane/provider-litellm/internal/controller/key"
)

// Setup creates all Litellm controllers with the supplied logger and adds them to
// the supplied manager.
func Setup(mgr ctrl.Manager, o controller.Options) error {
for _, setup := range []func(ctrl.Manager, controller.Options) error{
config.Setup,
mytype.Setup,
key.Setup,
} {
if err := setup(mgr, o); err != nil {
return err
Expand Down

0 comments on commit e434fd5

Please sign in to comment.