-
Notifications
You must be signed in to change notification settings - Fork 446
Add storageClass as part of tenant info api response #196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
07684c3
to
5c2f413
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
restapi/admin_tenants_test.go
Outdated
got, err := getTenantAdminClient(tt.args.ctx, tt.args.client, tt.args.namespace, tt.args.tenantName, tt.args.serviceName, tt.args.scheme) | ||
_, err := getTenantAdminClient(tt.args.ctx, tt.args.client, tt.args.namespace, tt.args.tenantName, tt.args.serviceName, tt.args.scheme) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why we stop comparing the actual result?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is just to ensure that an adminClient is created, we don't need to check the elements of it since that is not the purpose of that function but, I can add an assertion that the type is the one we expect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also because all contents on AdminClient are Private XD but I've added the validation
5c2f413
to
eaac292
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
storage_class is not being returned by API, Is there anything special that needs to be done?
{
"creation_date": "2020-07-10 19:56:19 +0000 UTC",
"currentState": "Ready",
"image": "minio/minio:RELEASE.2020-06-03T22-13-49Z",
"instance_count": 11,
"name": "minio-tenant-1",
"namespace": "default",
"total_size": 94489280512,
"used_size": 227723329536,
"volume_count": 44,
"volume_size": 2147483648,
"volumes_per_server": 4,
"zone_count": 5,
"zones": [
{
"name": "zone-0",
"servers": 1
},
{
"name": "zone-asdfasdfasdfasdfs",
"servers": 2
},
{
"name": "zone-3-8cca5.e6f026a7",
"servers": 1
},
{
"name": "zone-4-2ba58",
"servers": 5
},
{
"name": "zone-5-1b03ea",
"servers": 2
}
]
}
API call: http://localhost:9090/api/v1/namespaces/default/tenants/minio-tenant-1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, Need to add storage class in instance definition
No description provided.