Istio E2E Tests - How to create a kubernetes secret


#1

Hello everyone,

I have created an E2E Test for kiali ((https://github.com/istio/istio/pull/10800), but kiali relies on creating a kubernetes secret (https://preliminary.istio.io/docs/tasks/telemetry/kiali/#before-you-begin)

How do I create that on Istio E2E Test framework before helm install?

Best Regards,
Guilherme Baufaker Rêgo


#2

Hi,

You can run cmds from kubernetes.go directly, similarly like how we deploy yaml via kubectl today.

Examples: https://github.com/istio/istio/blob/b8e30e07ec7b36cf1ba1b445b78c81fdf0d417b9/tests/e2e/framework/kubernetes.go#L742

HTH

Lin