-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a runtime env IMAGETEST_K3S_KUBECONFIG to allow exposing the k3s …
…apiserver to the host (#132) This exposes an optional `IMAGETEST_K3S_KUBECONFIG` env var that when specified at runtime with something like: ```bash IMAGETEST_SKIP_TEARDOWN=1 IMAGETEST_K3S_KUBECONFIG=k3s.yaml terraform apply ... KUBECONFIG=k3s.yaml kubectl get po ... ``` will pick a random port to expose the k3s harness apiserver on, and write the resolved k3s kubeconfig to the relative filepath specified. the intended use if for development only (and is warned as such), where accessing the cluster on the host machine is useful for testing, such as when port-forwarding an endpoint you want to access via a browser. I don't love this approach, but squirreling it away behind an runtime env var feels better than not exposing this functionality at all.
- Loading branch information
Showing
5 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters