Skip to content

features domain broken on Tenant helm chart #1354

Allan Roger Reid edited this page Jan 5, 2023 · 12 revisions

Status: Open

Pull Request

Parse .spec.features.domains.minio array elements by allanrogerr · Pull Request #39 · allanrogerr/operator

Issues

features domain broken on Tenant helm chart · Issue #1354 · minio/operator

Steps

1a. Commented out "destroy_kind" from testing/deploy-tenant.sh

b. Added snippet to examples/kustomization/tenant-lite/tenant.yaml under .spec.features

  features:
    domains:
      minio:
        - minio.tenant-lite.svc.cluster.local
        - test.tenant-lite.svc.cluster.local
        - new.tenant-lite.svc.cluster.local:9090
        - http://old.tenant-lite.svc.cluster.local
        - rbitrary.domain.local
        - minio.tenant-lite.svc.cluster.local

c. Run testing/deploy-tenant.sh

d. Observe tenant stalled due to an http endpoint detected, util tenant was fixed image

e. Once complete, observe MINIO_DOMAIN and MINIO_SERVER_URL set correctly with

k describe statefulset/storage-lite-pool-0 -n tenant-lite
image

f. Validate that MINIO_SERVER_URL is accessible with

k -n tenant-lite exec -it storage-lite-pool-0-0 -- /bin/sh
curl https://minio.tenant-lite.svc.cluster.local
image

g. Validate tenant console accessible k port-forward service/storage-lite-console -n tenant-lite 9443 Navigate to https://127.0.0.1:9443 image

2a. Commented out "destroy_kind" from testing/check-helm.sh

b. Added snippet to helm/tenant/values.yaml

  features:
    domains:
      minio:
        - minio.default.svc.cluster.local
        - minio1.default.svc.cluster.local
        - test.default.svc.cluster.local
        - old.default.svc.cluster.local:9090
        - minio.default.svc.cluster.local
        - rbitrary.default.svc.cluster.local
        - default.svc.cluster.local

c. Run testing/check-helm.sh

d. Observe duplicate domain issue, until fixed in tenant image

e. Once complete, observe MINIO_DOMAIN and MINIO_SERVER_URL set correctly with

k describe statefulset/minio1-pool-0 -n default
image

f. Validate that MINIO_SERVER_URL is accessible with

k -n default exec -it minio1-pool-0-0 -- /bin/sh
curl https://minio.default.svc.cluster.local
image

g. Validate tenant console accessible k port-forward service/minio1-console -n default 9443 Navigate to https://127.0.0.1:9443

image