upbound / up

The @upbound CLI
Apache License 2.0
49 stars 42 forks source link

`ctp configuration install` not working against Cloud Space MCPs #522

Open cwilhit opened 1 month ago

cwilhit commented 1 month ago

What happened?

I cannot use up ctp configuration install ... against an MCP in a Cloud Space.

How can we reproduce it?

  1. up web-login
  2. up ctx "org/space"
  3. up ctp create ctp1
  4. up ctp configuration install "some-config"
image

 

What environment did it happen in?

up v0.30.0 Upbound Prod in upbound-gcp-us-west-1

RedbackThomson commented 1 month ago

I check the scope of the command at the top level of up ctp, to make sure CRUD actions are happening at the group level instead of the ctp level - https://github.com/upbound/up/blob/main/cmd/up/controlplane/controlplane.go#L58-L61

This trickles down to all subcommands, meaning that commands meant to run inside the ctp are invalidated.