Skip to content

Conversation

cesnietor
Copy link
Collaborator

No description provided.

@cesnietor cesnietor self-assigned this Jul 15, 2020
@cesnietor cesnietor force-pushed the add-storageclass-tenant branch from 07684c3 to 5c2f413 Compare July 15, 2020 22:44
Alevsk
Alevsk previously approved these changes Jul 16, 2020
Copy link
Contributor

@Alevsk Alevsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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)
Copy link
Contributor

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?

Copy link
Collaborator Author

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.

Copy link
Collaborator Author

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

Copy link
Collaborator

@bexsoft bexsoft left a 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

Copy link
Collaborator

@bexsoft bexsoft left a 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

@cesnietor cesnietor merged commit 28ac29c into minio:master Jul 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants