[VTAdmin] Validate, ValidateShard, ValidateVersionShard, GetFullStatus#11438
Merged
ajm188 merged 20 commits intovitessio:mainfrom Oct 6, 2022
Merged
[VTAdmin] Validate, ValidateShard, ValidateVersionShard, GetFullStatus#11438ajm188 merged 20 commits intovitessio:mainfrom
Validate, ValidateShard, ValidateVersionShard, GetFullStatus#11438ajm188 merged 20 commits intovitessio:mainfrom
Conversation
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Contributor
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
If a new flag is being introduced:
If a workflow is added or modified:
Bug fixes
Non-trivial changes
New/Existing features
Backward compatibility
|
Validate, ValidateShard, GetFullStatus
Collaborator
|
LGTM visually. Let's get a code review as well. |
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
Validate, ValidateShard, GetFullStatusValidate, ValidateShard, ValidateVersionShard, GetFullStatus
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
ajm188
reviewed
Oct 6, 2022
Contributor
ajm188
left a comment
There was a problem hiding this comment.
couple nits but also some required minor changes on the golang side, but looking great!
go/vt/vtadmin/api.go
Outdated
| return nil, err | ||
| } | ||
|
|
||
| if !api.authz.IsAuthorized(ctx, c.ID, rbac.TabletResource, rbac.GetAction) { |
Contributor
There was a problem hiding this comment.
we might want to revisit this and create a new resource; it may make sense to allow some users to "get" a tablet (i.e. see what's in the topo) without being able to view the full status
Contributor
Author
There was a problem hiding this comment.
Added a TabletFullStatusResource. It can be changed if another resource seems better.
Signed-off-by: notfelineit <notfelineit@gmail.com>
Signed-off-by: notfelineit <notfelineit@gmail.com>
ajm188
approved these changes
Oct 6, 2022
3 tasks
frouioui
pushed a commit
that referenced
this pull request
Oct 12, 2022
…nShard`, `GetFullStatus` (#11438) (#11452) * Add validate Signed-off-by: notfelineit <notfelineit@gmail.com> * Add validate to cluster page Signed-off-by: notfelineit <notfelineit@gmail.com> * Run lint prettier fix Signed-off-by: notfelineit <notfelineit@gmail.com> * Add UI for validate shard Signed-off-by: notfelineit <notfelineit@gmail.com> * Add validateShard Signed-off-by: notfelineit <notfelineit@gmail.com> * Run make web proto Signed-off-by: notfelineit <notfelineit@gmail.com> * Refactor validation results and implement validateShard Signed-off-by: notfelineit <notfelineit@gmail.com> * add http shards Signed-off-by: notfelineit <notfelineit@gmail.com> * Add GetFullStatus Signed-off-by: notfelineit <notfelineit@gmail.com> * Add keys and comment Signed-off-by: notfelineit <notfelineit@gmail.com> * Run lint prettier fix Signed-off-by: notfelineit <notfelineit@gmail.com> * Add ValidateVersionShard to vtctldclient Signed-off-by: notfelineit <notfelineit@gmail.com> * Add ValidateVersionShard Signed-off-by: notfelineit <notfelineit@gmail.com> * Update test for vtctldclient Signed-off-by: notfelineit <notfelineit@gmail.com> * Add test for ValidateVersionShard Signed-off-by: notfelineit <notfelineit@gmail.com> * run lint prettier fix again Signed-off-by: notfelineit <notfelineit@gmail.com> * Modify during 1:1 with gomez Signed-off-by: notfelineit <notfelineit@gmail.com> * Run lint prettier fix Signed-off-by: notfelineit <notfelineit@gmail.com> * Address PR review comments Signed-off-by: notfelineit <notfelineit@gmail.com> * Update indentation Signed-off-by: notfelineit <notfelineit@gmail.com> Signed-off-by: notfelineit <notfelineit@gmail.com> Co-authored-by: notfelineit <notfelineit@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR completes "VTAdmin Parity" by implementing:
ValidateValidateShardValidateVersionsGetFullStatusValidate

Validate is added to the clusters list, since validation occurs at the cluster level:
ValidateShard

GetFullStatus

GetFullStatusreplacesReplication Statussince it also includes that in its payload:ValidateVersionShard

Related Issue(s)
Checklist
Deployment Notes