upbound / up

The @upbound CLI
Apache License 2.0
52 stars 41 forks source link

Add alpha commands for MCP connector #288

Closed turkenh closed 1 year ago

turkenh commented 1 year ago

Description of your changes

This PR adds the following two (alpha) commands to connect to an MCP from an application cluster:

I have:

How has this code been tested

Tested against my MCP in production as a result of FRE.

❯ up alpha ctp list
NAME   ID                                     STATUS
cp     5b2e4d3e-58bf-4747-b91a-0337e8049aba   ready

❯ up alpha ctp connect cp --token $API_TOKEN
Connected to the MCP "cp", ready for binding APIs!

❯ up alpha ctp bind database.starter.org/v1alpha1
APIs under database.starter.org/v1alpha1 were bound to the Managed Control Plane!

❯ kubectl api-resources |grep starter
postgresqlinstances                            database.starter.org/v1alpha1          true         PostgreSQLInstance
turkenh commented 1 year ago

@turkenh a few nitpicks that are mostly non-blocking, but I think we need to fix the hard-coded kubeconfig path prior to merge 👍🏻

Fixed it and responded to others.