Skip to content

Commit

Permalink
GCLOUD2-15286 Remove routing_mode as we do not currently support it (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gbernady authored Jul 17, 2024
1 parent 9690479 commit 0fef967
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 17 deletions.
1 change: 0 additions & 1 deletion docs/data-sources/k8sv2.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ Read-Only:
- `lb_mode` (String)
- `mask_size` (Number)
- `mask_size_v6` (Number)
- `routing_mode` (String)
- `tunnel` (String)


Expand Down
1 change: 0 additions & 1 deletion docs/resources/k8sv2.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ Optional:
- `lb_mode` (String) The operation mode of load balancing for remote backends. Supported values are snat, dsr, hybrid. The default value is snat.
- `mask_size` (Number) Specifies the size allocated from pods_ip_pool CIDR to node.ipam.podCIDRs. The default value is 24.
- `mask_size_v6` (Number) Specifies the size allocated from pods_ipv6_pool CIDR to node.ipam.podCIDRs. The default value is 120.
- `routing_mode` (String) Enables native-routing mode or tunneling mode. The default value is tunnel.
- `tunnel` (String) Tunneling protocol to use in tunneling mode and for ad-hoc tunnels. The default value is geneve.


Expand Down
1 change: 1 addition & 0 deletions docs/resources/lblistener.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ resource "gcore_lblistener" "prometheus_9101" {
output "prometheus_password" {
value = random_password.prometheus_password.result
sensitive = true
}
```

Expand Down
6 changes: 0 additions & 6 deletions gcore/data_source_gcore_k8sv2.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,6 @@ func dataSourceK8sV2() *schema.Resource {
Description: "Is load balancer acceleration via XDP enabled or not.",
Computed: true,
},
"routing_mode": {
Type: schema.TypeString,
Description: "Is native-routing mode or tunneling mode enabled.",
Computed: true,
},
"hubble_relay": {
Type: schema.TypeBool,
Description: "Is Hubble Relay enabled or not.",
Expand Down Expand Up @@ -446,7 +441,6 @@ func dataSourceK8sV2Read(ctx context.Context, d *schema.ResourceData, m interfac
"encryption": cluster.CNI.Cilium.Encryption,
"lb_mode": cluster.CNI.Cilium.LoadBalancerMode.String(),
"lb_acceleration": cluster.CNI.Cilium.LoadBalancerAcceleration,
"routing_mode": cluster.CNI.Cilium.RoutingMode.String(),
"hubble_relay": cluster.CNI.Cilium.HubbleRelay,
"hubble_ui": cluster.CNI.Cilium.HubbleUI,
}}
Expand Down
9 changes: 0 additions & 9 deletions gcore/resource_gcore_k8sv2.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,6 @@ func resourceK8sV2() *schema.Resource {
Computed: true,
ForceNew: true,
},
"routing_mode": {
Type: schema.TypeString,
Description: "Enables native-routing mode or tunneling mode. The default value is tunnel.",
Optional: true,
Computed: true,
ForceNew: true,
},
"hubble_relay": {
Type: schema.TypeBool,
Description: "Enables Hubble Relay. The default value is false.",
Expand Down Expand Up @@ -560,7 +553,6 @@ func resourceK8sV2Create(ctx context.Context, d *schema.ResourceData, m interfac
Encryption: cilium["encryption"].(bool),
LoadBalancerMode: clusters.LBModeType(cilium["lb_mode"].(string)),
LoadBalancerAcceleration: cilium["lb_acceleration"].(bool),
RoutingMode: clusters.RoutingModeType(cilium["routing_mode"].(string)),
HubbleRelay: cilium["hubble_relay"].(bool),
HubbleUI: cilium["hubble_ui"].(bool),
}
Expand Down Expand Up @@ -745,7 +737,6 @@ func resourceK8sV2Read(ctx context.Context, d *schema.ResourceData, m interface{
"encryption": cluster.CNI.Cilium.Encryption,
"lb_mode": cluster.CNI.Cilium.LoadBalancerMode.String(),
"lb_acceleration": cluster.CNI.Cilium.LoadBalancerAcceleration,
"routing_mode": cluster.CNI.Cilium.RoutingMode.String(),
"hubble_relay": cluster.CNI.Cilium.HubbleRelay,
"hubble_ui": cluster.CNI.Cilium.HubbleUI,
}}
Expand Down

0 comments on commit 0fef967

Please sign in to comment.