MCPcopy
hub / github.com/modelcontextprotocol/registry / main

Function main

deploy/main.go:33–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31}
32
33func main() {
34 pulumi.Run(func(ctx *pulumi.Context) error {
35 // Get configuration
36 conf := config.New(ctx, "mcp-registry")
37 environment := conf.Require("environment")
38
39 // Create provider
40 provider, err := createProvider(ctx)
41 if err != nil {
42 return err
43 }
44
45 // Create cluster
46 cluster, err := provider.CreateCluster(ctx, environment)
47 if err != nil {
48 return err
49 }
50
51 // Create backup storage
52 storage, err := provider.CreateBackupStorage(ctx, cluster, environment)
53 if err != nil {
54 return err
55 }
56
57 // Deploy to Kubernetes
58 _, err = k8s.DeployAll(ctx, cluster, storage, environment)
59 if err != nil {
60 return err
61 }
62
63 // Export outputs
64 ctx.Export("clusterName", cluster.Name)
65
66 return nil
67 })
68}

Callers

nothing calls this directly

Calls 3

createProviderFunction · 0.85
CreateClusterMethod · 0.65
CreateBackupStorageMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…