Skip to content

Commit 60bcf0f

Browse files
authored
Merge pull request #494 from matttrach/update-1.7.5
feat: update to v1.7.5
2 parents 5aa21ac + 0e09bbf commit 60bcf0f

File tree

5 files changed

+18
-3
lines changed

5 files changed

+18
-3
lines changed

docs/resources/cluster.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ The following attributes are exported:
492492
* `mtu` - (Optional) Network provider MTU. Default `0` (int)
493493
* `options` - (Optional/Computed) Network provider options (map)
494494
* `plugin` - (Optional) Network provider plugin. `calico`, `canal` (default), `flannel`, `none` and `weave` are supported. (string)
495+
* `enable_br_netfilter` - (Optional) Enable/Disable br_netfilter on nodes. Default `true` (bool)
495496

496497
#### `calico_network_provider`
497498

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ require (
4040
github.com/ghodss/yaml v1.0.0
4141
github.com/hashicorp/go-version v1.6.0
4242
github.com/hashicorp/terraform-plugin-sdk/v2 v2.29.0
43-
github.com/rancher/rke v1.7.0
43+
github.com/rancher/rke v1.7.5
4444
github.com/satori/go.uuid v1.2.1-0.20181028125025-b2ce2384e17b
4545
github.com/sirupsen/logrus v1.9.3
4646
gopkg.in/yaml.v2 v2.4.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2374,8 +2374,8 @@ github.com/rancher/lasso v0.0.0-20240924233157-8f384efc8813 h1:V/LY8pUHZG9Kc+xED
23742374
github.com/rancher/lasso v0.0.0-20240924233157-8f384efc8813/go.mod h1:IxgTBO55lziYhTEETyVKiT8/B5Rg92qYiRmcIIYoPgI=
23752375
github.com/rancher/norman v0.0.0-20241001183610-78a520c160ab h1:ihK6See3y/JilqZlc0CG7NXPN+ue5nY9U7xUZUA8M7I=
23762376
github.com/rancher/norman v0.0.0-20241001183610-78a520c160ab/go.mod h1:qX/OG/4wY27xSAcSdRilUBxBumV6Ey2CWpAeaKnBQDs=
2377-
github.com/rancher/rke v1.7.0 h1:UFQOh/y1TXsWbbeNR3r8mDxGm9WYHyb6+F8u7rIKNL0=
2378-
github.com/rancher/rke v1.7.0/go.mod h1:+x++Mvl0A3jIzNLiu8nkraqZXiHg6VPWv0Xl4iQCg+A=
2377+
github.com/rancher/rke v1.7.5 h1:oA3GlGksu3MVT4bGuCIYac5Bcx7GmjM4mueKr/iOm/A=
2378+
github.com/rancher/rke v1.7.5/go.mod h1:+x++Mvl0A3jIzNLiu8nkraqZXiHg6VPWv0Xl4iQCg+A=
23792379
github.com/rancher/wrangler/v3 v3.0.1-rc.2 h1:sHrZTPNco7SCNw372sv51DMK9a53ra/YboL4sQJjEQM=
23802380
github.com/rancher/wrangler/v3 v3.0.1-rc.2/go.mod h1:eXqcPIuGWblud9Wd1Auh7AWRHd6gs2H24asMMPuUR/s=
23812381
github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=

rke/schema_rke_cluster_network.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,12 @@ func rkeClusterNetworkFields() map[string]*schema.Schema {
249249
Description: "Network provider plugin",
250250
ValidateFunc: validation.StringInSlice(rkeClusterNetworkPluginList, true),
251251
},
252+
"enable_br_netfilter": {
253+
Type: schema.TypeBool,
254+
Optional: true,
255+
Default: true,
256+
Description: "Enable/Disable br_netfilter on nodes",
257+
},
252258
}
253259
return s
254260
}

rke/structure_rke_cluster_network.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ func flattenRKEClusterNetwork(in rancher.NetworkConfig) []interface{} {
162162
obj["aci_network_provider"] = flattenRKEClusterNetworkAci(in.AciNetworkProvider)
163163
}
164164

165+
if in.EnableBrNetfilter != nil {
166+
obj["enable_br_netfilter"] = in.EnableBrNetfilter
167+
}
168+
165169
if in.MTU > 0 {
166170
obj["mtu"] = in.MTU
167171
}
@@ -358,5 +362,9 @@ func expandRKEClusterNetwork(p []interface{}) rancher.NetworkConfig {
358362
obj.Plugin = v
359363
}
360364

365+
if v, ok := in["enable_br_netfilter"].(bool); ok {
366+
obj.EnableBrNetfilter = &v
367+
}
368+
361369
return obj
362370
}

0 commit comments

Comments
 (0)