Skip to content

Commit

Permalink
draft
Browse files Browse the repository at this point in the history
  • Loading branch information
lakshmimsft committed Dec 11, 2024
1 parent a1af188 commit 73261ed
Show file tree
Hide file tree
Showing 11 changed files with 1,006 additions and 253 deletions.
10 changes: 8 additions & 2 deletions cmd/ucpd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ import (
"github.com/radius-project/radius/pkg/armrpc/hostoptions"
"github.com/radius-project/radius/pkg/ucp/dataprovider"
"github.com/radius-project/radius/pkg/ucp/hosting"
"github.com/radius-project/radius/pkg/ucp/registermanifests"
"github.com/radius-project/radius/pkg/ucp/server"
"github.com/radius-project/radius/pkg/ucp/ucpclient"
"github.com/radius-project/radius/pkg/ucp/ucplog"
)

Expand Down Expand Up @@ -75,10 +75,16 @@ var rootCmd = &cobra.Command{
}
*/

// Discuss if there is a better way to check if the server is listening..
// Start RegisterManifests in a goroutine after 15 seconds
go func() {
time.Sleep(15 * time.Second)
if err := registermanifests.RegisterManifests(cmd.Context(), &options); err != nil {
// Register manifests
ucpclient, err := ucpclient.NewUCPClient(&options)
if err != nil {
logger.Error(err, "Failed to create UCP client")
}
if err := ucpclient.RegisterManifests(cmd.Context()); err != nil {
logger.Error(err, "Failed to register manifests")
}
}()
Expand Down
251 changes: 0 additions & 251 deletions pkg/ucp/registermanifests/registermanifests.go

This file was deleted.

Loading

0 comments on commit 73261ed

Please sign in to comment.