hashicorp / vault-plugin-auth-kubernetes

Vault authentication plugin for Kubernetes Service Accounts
https://www.vaultproject.io/docs/auth/kubernetes.html
Mozilla Public License 2.0
206 stars 62 forks source link

Use port forwarding in integration tests #200

Closed tomhjp closed 1 year ago

tomhjp commented 1 year ago

Switch to port forwarding in the integration tests for communicating between the go tests and Vault within the Kubernetes cluster.

Eliminates some of the previous unsightly requirements:

To avoid importing k8s client-go into the main plugin package, I gave the integration test its own go module, which generated a lot of lines of diff, but the rest of the changes are not too big.

tomhjp commented 1 year ago

Thanks!