1
0
mirror of https://github.com/rancher/types.git synced 2025-04-27 18:25:05 +00:00

Merge pull request #1142 from cbron/istio-dest-rule-lb-nullable

Istios UseSourceIP must be nullable or it fails LBs validation
This commit is contained in:
Caleb Bron 2020-05-18 15:54:35 -07:00 committed by GitHub
commit 048e08ca75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -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{}
}{}).

View File

@ -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"`
}