Commit 65f84b1
authored
CORS-3566: Azure CAPI: disable natgw by setting node subnet id (openshift#8727)
* Azure CAPI: disable natgw by setting node subnet id
Setting the ID on the Subnet disables natgw creation. See:
https://github.com/kubernetes-sigs/cluster-api-provider-azure/blob/21479a9a4c640b43e0bef028487c522c55605d06/api/v1beta1/azurecluster_default.go#L160
Because the node subnet does not already exist, we are using an arbitrary value.
We could populate this with the proper subnet ID in the case of BYO VNET, but
the value currently has no practical effect.
* Set subnet ID to UNKNOWN.
Sets the subnet ID to a clearly unknown value to avoid confusion.1 parent 3ca43c1 commit 65f84b1
1 file changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
80 | 93 | | |
81 | 94 | | |
82 | 95 | | |
| |||
136 | 149 | | |
137 | 150 | | |
138 | 151 | | |
| 152 | + | |
139 | 153 | | |
140 | 154 | | |
141 | 155 | | |
| |||
0 commit comments