mirror of
https://github.com/rancher/types.git
synced 2025-04-27 10:20:48 +00:00
Istios UseSourceIP must be nullable or it fails LBs validation
You can have only one ConsistentHashLB setting, and since useSourceIp was not nullable and defaulting to false, it was always getting set. Meaning setting any of the either two would fail validation. This PR turns bool to pointer, making it nullable. See: https://archive.istio.io/v1.4/docs/reference/config/networking/destination-rule/#LoadBalancerSettings-ConsistentHashLB
This commit is contained in:
parent
8b729a8f3a
commit
d421c6e7b3
@ -1115,6 +1115,9 @@ func istioTypes(schemas *types.Schemas) *types.Schemas {
|
||||
MustImport(&Version, istiov1alpha3.VirtualService{}, projectOverride{}, struct {
|
||||
Status interface{}
|
||||
}{}).
|
||||
MustImport(&Version, istiov1alpha3.ConsistentHashLB{}, struct {
|
||||
UseSourceIP *bool `json:"useSourceIp,omitempty"`
|
||||
}{}).
|
||||
MustImport(&Version, istiov1alpha3.DestinationRule{}, projectOverride{}, struct {
|
||||
Status interface{}
|
||||
}{}).
|
||||
|
@ -12,5 +12,5 @@ type ConsistentHashLB struct {
|
||||
HTTPCookie *HTTPCookie `json:"httpCookie,omitempty" yaml:"httpCookie,omitempty"`
|
||||
HTTPHeaderName string `json:"httpHeaderName,omitempty" yaml:"httpHeaderName,omitempty"`
|
||||
MinimumRingSize int64 `json:"minimumRingSize,omitempty" yaml:"minimumRingSize,omitempty"`
|
||||
UseSourceIP bool `json:"useSourceIp,omitempty" yaml:"useSourceIp,omitempty"`
|
||||
UseSourceIP *bool `json:"useSourceIp,omitempty" yaml:"useSourceIp,omitempty"`
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user