sql: rename MANAGETENANT to MANAGEVIRTUALCLUSTER#110932
sql: rename MANAGETENANT to MANAGEVIRTUALCLUSTER#110932craig[bot] merged 1 commit intocockroachdb:masterfrom
Conversation
pkg/sql/privilege/privilege.go
Outdated
| MODIFYSQLCLUSTERSETTING Kind = 28 | ||
| REPLICATION Kind = 29 | ||
| MANAGETENANT Kind = 30 | ||
| MANAGEVIRTUALCLUSTER Kind = 30 |
There was a problem hiding this comment.
Not sure if this is just a display issue or an actual spacing issue.
|
is this setting used by anyone currently? if so, there needs to be a migration to convert the name in the system.privileges table |
|
Uff. Good catch, I completely forgot that these are stored as strings in that table. Theoretically this was included in the private preview in 23.1. By the letter of the law we are allowed to break that but we probably shouldn't. |
|
For my own edification, where do we write privileges into the system table? On a somewhat quick search I only found a single UPDATE stmt in an existing migration. Do we use direct KV commands? |
|
it is through SQL, but just not that easy to grep for: cockroach/pkg/sql/grant_revoke_system.go Lines 139 to 149 in a499165 |
22fe950 to
7891f88
Compare
7891f88 to
8fadba8
Compare
knz
left a comment
There was a problem hiding this comment.
Thanks for the rebase!
Reviewed 11 of 11 files at r5, all commit messages.
Reviewable status:complete! 0 of 0 LGTMs obtained (waiting on @yuzefovich)
Release note (cluster virtualization): the privilege that controls access to CREATE VIRTUAL CLUSTER and other vcluster management syntax is now called MANAGEVIRTUALCLUSTER.
8fadba8 to
78077b7
Compare
yuzefovich
left a comment
There was a problem hiding this comment.
RFAL @stevendanna @rafiss
Reviewed 8 of 8 files at r1, 4 of 11 files at r5, 41 of 41 files at r6, all commit messages.
Reviewable status:complete! 0 of 0 LGTMs obtained (waiting on @knz, @rafiss, and @stevendanna)
stevendanna
left a comment
There was a problem hiding this comment.
Thanks for picking this up.
|
TFTR! bors r+ |
|
Build failed (retrying...): |
|
Build succeeded: |
Fixes #110927.
Epic: CRDB-29380
Release note (cluster virtualization): the privilege that controls access to CREATE VIRTUAL CLUSTER and other vcluster management syntax is now called MANAGEVIRTUALCLUSTER.