mirror of
https://github.com/containers/podman
synced 2024-10-20 17:23:30 +00:00
e06f17f580
Specifically pertaining to executing tests in google cloud, there are default, pre-allocated class-a subnetworks for each region (data-center). Each includes a gateway using a `.1` LSB and all are routable from other regions in google cloud via these gateways. Because the default CNI configuration also utilizes class-a subnetworks, this creates the possibility for IPv4 address-space clashes. Since the default regional cloud subnets are pre-defined/known, preventing clashes can be accomplished by seeding these subnets in a dummy CNI configuration. The default behavior of podman is to grab the highest priority CNI configuration. Name the dummy config. appropriate so it always loads last. Also name the bridge itself with an obvious name `do-not-use`, such that any related testing errors should be easier to debug. Also: * Minor cleanup of `install_test_configs()` * Move install_test_configs in `setup_environment.sh` to after possible run of `remove_packaged_podman_files()` because that also strips out `/etc/cni/net.d/87-podman-bridge.conflist`. Signed-off-by: Chris Evich <cevich@redhat.com>
22 lines
514 B
Plaintext
22 lines
514 B
Plaintext
{
|
|
"cniVersion": "0.4.0",
|
|
"name": "do-not-use-google-subnets",
|
|
"plugins": [
|
|
{
|
|
"type": "bridge",
|
|
"name": "do-not-use-google-subnets",
|
|
"bridge": "do-not-use-google-subnets",
|
|
"ipam": {
|
|
"type": "host-local",
|
|
"ranges": [
|
|
[
|
|
{
|
|
"subnet": "10.128.0.0/9"
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|