mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
d17c7e7fc0
This PR achieves the following goals: * Utilise upstream version of kind instead of a patched version which allows binding to networks other than the default "kind" * Utilises the registry cache which is setup one level above the kind cluster The former point was required to successfully run our integration tests in a Kubernetes environment, however this is now possible without running a patched version of kind. The second point is because DockerHub has introduced rate limiting for container downloads. If there are a large number of CI jobs nodes may occasionally be rejected due to the Kubernetes suite not pulling down from the registry cache.
6 lines
348 B
Bash
Executable File
6 lines
348 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# This script patches the kubeconfig generated by Kind in order to access the cluster container via this container
|
|
|
|
echo "Patching Kubeconfig to target Kube container without link"
|
|
sed -i "s/127.0.0.1:.*/$(docker inspect -f '{{(index .NetworkSettings.Networks "authelia_authelianet").IPAddress}}' kind-control-plane):6443/" ${KUBECONFIG} |