"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pilot/pkg/networking/core/v1alpha3/cluster_builder.go" between
istio-1.10.0.tar.gz and istio-1.10.1.tar.gz

About: Istio is a platform-independent service mesh that provides a uniform way to connect, secure, control, and observe microservices.

cluster_builder.go  (istio-1.10.0):cluster_builder.go  (istio-1.10.1)
skipping to change at line 954 skipping to change at line 954
return out return out
} }
// build does any final build operations needed, like marshaling etc. // build does any final build operations needed, like marshaling etc.
func (mc *MutableCluster) build() *cluster.Cluster { func (mc *MutableCluster) build() *cluster.Cluster {
if mc == nil { if mc == nil {
return nil return nil
} }
// Marshall Http Protocol options if they exist. // Marshall Http Protocol options if they exist.
if mc.httpProtocolOptions != nil { if mc.httpProtocolOptions != nil {
// UpstreamProtocolOptions is required field in Envoy. If we have
not set this option earlier
// we need to set it to default http protocol options.
if mc.httpProtocolOptions.UpstreamProtocolOptions == nil {
mc.httpProtocolOptions.UpstreamProtocolOptions = &http.Ht
tpProtocolOptions_ExplicitHttpConfig_{
ExplicitHttpConfig: &http.HttpProtocolOptions_Exp
licitHttpConfig{
ProtocolConfig: &http.HttpProtocolOptions
_ExplicitHttpConfig_HttpProtocolOptions{},
},
}
}
mc.cluster.TypedExtensionProtocolOptions = map[string]*any.Any{ mc.cluster.TypedExtensionProtocolOptions = map[string]*any.Any{
v3.HttpProtocolOptionsType: util.MessageToAny(mc.httpProt ocolOptions), v3.HttpProtocolOptionsType: util.MessageToAny(mc.httpProt ocolOptions),
} }
} }
return mc.cluster return mc.cluster
} }
// castDestinationRuleOrDefault returns the destination rule enclosed by the con fig, if not null. // castDestinationRuleOrDefault returns the destination rule enclosed by the con fig, if not null.
// Otherwise, return default (empty) DR. // Otherwise, return default (empty) DR.
func castDestinationRuleOrDefault(config *config.Config) *networking.Destination Rule { func castDestinationRuleOrDefault(config *config.Config) *networking.Destination Rule {
 End of changes. 1 change blocks. 
0 lines changed or deleted 13 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)