"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pilot/pkg/serviceregistry/serviceentry/conversion_test.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.

conversion_test.go  (istio-1.10.0):conversion_test.go  (istio-1.10.1)
skipping to change at line 141 skipping to change at line 141
Resolution: networking.ServiceEntry_STATIC, Resolution: networking.ServiceEntry_STATIC,
}, },
} }
var httpDNSnoEndpoints = &config.Config{ var httpDNSnoEndpoints = &config.Config{
Meta: config.Meta{ Meta: config.Meta{
GroupVersionKind: gvk.ServiceEntry, GroupVersionKind: gvk.ServiceEntry,
Name: "httpDNSnoEndpoints", Name: "httpDNSnoEndpoints",
Namespace: "httpDNSnoEndpoints", Namespace: "httpDNSnoEndpoints",
CreationTimestamp: GlobalTime, CreationTimestamp: GlobalTime,
Labels: map[string]string{label.SecurityTlsMode.Name: model.IstioMutualTLSModeLabel},
}, },
Spec: &networking.ServiceEntry{ Spec: &networking.ServiceEntry{
Hosts: []string{"google.com", "www.wikipedia.org"}, Hosts: []string{"google.com", "www.wikipedia.org"},
Ports: []*networking.Port{ Ports: []*networking.Port{
{Number: 80, Name: "http-port", Protocol: "http"}, {Number: 80, Name: "http-port", Protocol: "http"},
{Number: 8080, Name: "http-alt-port", Protocol: "http"}, {Number: 8080, Name: "http-alt-port", Protocol: "http"},
}, },
Location: networking.ServiceEntry_MESH_EXTERNAL, Location: networking.ServiceEntry_MESH_EXTERNAL,
Resolution: networking.ServiceEntry_DNS, Resolution: networking.ServiceEntry_DNS,
}, },
skipping to change at line 177 skipping to change at line 176
Resolution: networking.ServiceEntry_DNS, Resolution: networking.ServiceEntry_DNS,
}, },
} }
var httpDNS = &config.Config{ var httpDNS = &config.Config{
Meta: config.Meta{ Meta: config.Meta{
GroupVersionKind: gvk.ServiceEntry, GroupVersionKind: gvk.ServiceEntry,
Name: "httpDNS", Name: "httpDNS",
Namespace: "httpDNS", Namespace: "httpDNS",
CreationTimestamp: GlobalTime, CreationTimestamp: GlobalTime,
Labels: map[string]string{label.SecurityTlsMode.Name: model.IstioMutualTLSModeLabel},
}, },
Spec: &networking.ServiceEntry{ Spec: &networking.ServiceEntry{
Hosts: []string{"*.google.com"}, Hosts: []string{"*.google.com"},
Ports: []*networking.Port{ Ports: []*networking.Port{
{Number: 80, Name: "http-port", Protocol: "http"}, {Number: 80, Name: "http-port", Protocol: "http"},
{Number: 8080, Name: "http-alt-port", Protocol: "http"}, {Number: 8080, Name: "http-alt-port", Protocol: "http"},
}, },
Endpoints: []*networking.WorkloadEntry{ Endpoints: []*networking.WorkloadEntry{
{ {
Address: "us.google.com", Address: "us.google.com",
skipping to change at line 212 skipping to change at line 210
Resolution: networking.ServiceEntry_DNS, Resolution: networking.ServiceEntry_DNS,
}, },
} }
var tcpDNS = &config.Config{ var tcpDNS = &config.Config{
Meta: config.Meta{ Meta: config.Meta{
GroupVersionKind: gvk.ServiceEntry, GroupVersionKind: gvk.ServiceEntry,
Name: "tcpDNS", Name: "tcpDNS",
Namespace: "tcpDNS", Namespace: "tcpDNS",
CreationTimestamp: GlobalTime, CreationTimestamp: GlobalTime,
Labels: map[string]string{label.SecurityTlsMode.Name: model.IstioMutualTLSModeLabel},
}, },
Spec: &networking.ServiceEntry{ Spec: &networking.ServiceEntry{
Hosts: []string{"tcpdns.com"}, Hosts: []string{"tcpdns.com"},
Ports: []*networking.Port{ Ports: []*networking.Port{
{Number: 444, Name: "tcp-444", Protocol: "tcp"}, {Number: 444, Name: "tcp-444", Protocol: "tcp"},
}, },
Endpoints: []*networking.WorkloadEntry{ Endpoints: []*networking.WorkloadEntry{
{ {
Address: "lon.google.com", Address: "lon.google.com",
Labels: map[string]string{label.SecurityTlsMode. Name: model.IstioMutualTLSModeLabel}, Labels: map[string]string{label.SecurityTlsMode. Name: model.IstioMutualTLSModeLabel},
skipping to change at line 240 skipping to change at line 237
Resolution: networking.ServiceEntry_DNS, Resolution: networking.ServiceEntry_DNS,
}, },
} }
var tcpStatic = &config.Config{ var tcpStatic = &config.Config{
Meta: config.Meta{ Meta: config.Meta{
GroupVersionKind: gvk.ServiceEntry, GroupVersionKind: gvk.ServiceEntry,
Name: "tcpStatic", Name: "tcpStatic",
Namespace: "tcpStatic", Namespace: "tcpStatic",
CreationTimestamp: GlobalTime, CreationTimestamp: GlobalTime,
Labels: map[string]string{label.SecurityTlsMode.Name: model.IstioMutualTLSModeLabel},
}, },
Spec: &networking.ServiceEntry{ Spec: &networking.ServiceEntry{
Hosts: []string{"tcpstatic.com"}, Hosts: []string{"tcpstatic.com"},
Addresses: []string{"172.217.0.1"}, Addresses: []string{"172.217.0.1"},
Ports: []*networking.Port{ Ports: []*networking.Port{
{Number: 444, Name: "tcp-444", Protocol: "tcp"}, {Number: 444, Name: "tcp-444", Protocol: "tcp"},
}, },
Endpoints: []*networking.WorkloadEntry{ Endpoints: []*networking.WorkloadEntry{
{ {
Address: "1.1.1.1", Address: "1.1.1.1",
skipping to change at line 269 skipping to change at line 265
Resolution: networking.ServiceEntry_STATIC, Resolution: networking.ServiceEntry_STATIC,
}, },
} }
var httpNoneInternal = &config.Config{ var httpNoneInternal = &config.Config{
Meta: config.Meta{ Meta: config.Meta{
GroupVersionKind: gvk.ServiceEntry, GroupVersionKind: gvk.ServiceEntry,
Name: "httpNoneInternal", Name: "httpNoneInternal",
Namespace: "httpNoneInternal", Namespace: "httpNoneInternal",
CreationTimestamp: GlobalTime, CreationTimestamp: GlobalTime,
Labels: map[string]string{label.SecurityTlsMode.Name: model.IstioMutualTLSModeLabel},
}, },
Spec: &networking.ServiceEntry{ Spec: &networking.ServiceEntry{
Hosts: []string{"*.google.com"}, Hosts: []string{"*.google.com"},
Ports: []*networking.Port{ Ports: []*networking.Port{
{Number: 80, Name: "http-number", Protocol: "http"}, {Number: 80, Name: "http-number", Protocol: "http"},
{Number: 8080, Name: "http2-number", Protocol: "http2"}, {Number: 8080, Name: "http2-number", Protocol: "http2"},
}, },
Location: networking.ServiceEntry_MESH_INTERNAL, Location: networking.ServiceEntry_MESH_INTERNAL,
Resolution: networking.ServiceEntry_NONE, Resolution: networking.ServiceEntry_NONE,
}, },
} }
var tcpNoneInternal = &config.Config{ var tcpNoneInternal = &config.Config{
Meta: config.Meta{ Meta: config.Meta{
GroupVersionKind: gvk.ServiceEntry, GroupVersionKind: gvk.ServiceEntry,
Name: "tcpNoneInternal", Name: "tcpNoneInternal",
Namespace: "tcpNoneInternal", Namespace: "tcpNoneInternal",
CreationTimestamp: GlobalTime, CreationTimestamp: GlobalTime,
Labels: map[string]string{label.SecurityTlsMode.Name: model.IstioMutualTLSModeLabel},
}, },
Spec: &networking.ServiceEntry{ Spec: &networking.ServiceEntry{
Hosts: []string{"tcpinternal.com"}, Hosts: []string{"tcpinternal.com"},
Addresses: []string{"172.217.0.0/16"}, Addresses: []string{"172.217.0.0/16"},
Ports: []*networking.Port{ Ports: []*networking.Port{
{Number: 444, Name: "tcp-444", Protocol: "tcp"}, {Number: 444, Name: "tcp-444", Protocol: "tcp"},
}, },
Location: networking.ServiceEntry_MESH_INTERNAL, Location: networking.ServiceEntry_MESH_INTERNAL,
Resolution: networking.ServiceEntry_NONE, Resolution: networking.ServiceEntry_NONE,
}, },
} }
var multiAddrInternal = &config.Config{ var multiAddrInternal = &config.Config{
Meta: config.Meta{ Meta: config.Meta{
GroupVersionKind: gvk.ServiceEntry, GroupVersionKind: gvk.ServiceEntry,
Name: "multiAddrInternal", Name: "multiAddrInternal",
Namespace: "multiAddrInternal", Namespace: "multiAddrInternal",
CreationTimestamp: GlobalTime, CreationTimestamp: GlobalTime,
Labels: map[string]string{label.SecurityTlsMode.Name: model.IstioMutualTLSModeLabel},
}, },
Spec: &networking.ServiceEntry{ Spec: &networking.ServiceEntry{
Hosts: []string{"tcp1.com", "tcp2.com"}, Hosts: []string{"tcp1.com", "tcp2.com"},
Addresses: []string{"1.1.1.0/16", "2.2.2.0/16"}, Addresses: []string{"1.1.1.0/16", "2.2.2.0/16"},
Ports: []*networking.Port{ Ports: []*networking.Port{
{Number: 444, Name: "tcp-444", Protocol: "tcp"}, {Number: 444, Name: "tcp-444", Protocol: "tcp"},
}, },
Location: networking.ServiceEntry_MESH_INTERNAL, Location: networking.ServiceEntry_MESH_INTERNAL,
Resolution: networking.ServiceEntry_NONE, Resolution: networking.ServiceEntry_NONE,
}, },
skipping to change at line 347 skipping to change at line 340
}, },
} }
// ServiceEntry DNS with a selector // ServiceEntry DNS with a selector
var selectorDNS = &config.Config{ var selectorDNS = &config.Config{
Meta: config.Meta{ Meta: config.Meta{
GroupVersionKind: gvk.ServiceEntry, GroupVersionKind: gvk.ServiceEntry,
Name: "selector", Name: "selector",
Namespace: "selector", Namespace: "selector",
CreationTimestamp: GlobalTime, CreationTimestamp: GlobalTime,
Labels: map[string]string{label.SecurityTlsMode.Name: model.IstioMutualTLSModeLabel},
}, },
Spec: &networking.ServiceEntry{ Spec: &networking.ServiceEntry{
Hosts: []string{"selector.com"}, Hosts: []string{"selector.com"},
Ports: []*networking.Port{ Ports: []*networking.Port{
{Number: 444, Name: "tcp-444", Protocol: "tcp"}, {Number: 444, Name: "tcp-444", Protocol: "tcp"},
{Number: 445, Name: "http-445", Protocol: "http"}, {Number: 445, Name: "http-445", Protocol: "http"},
}, },
WorkloadSelector: &networking.WorkloadSelector{ WorkloadSelector: &networking.WorkloadSelector{
Labels: map[string]string{"app": "wle"}, Labels: map[string]string{"app": "wle"},
}, },
skipping to change at line 369 skipping to change at line 361
}, },
} }
// ServiceEntry with a selector // ServiceEntry with a selector
var selector = &config.Config{ var selector = &config.Config{
Meta: config.Meta{ Meta: config.Meta{
GroupVersionKind: gvk.ServiceEntry, GroupVersionKind: gvk.ServiceEntry,
Name: "selector", Name: "selector",
Namespace: "selector", Namespace: "selector",
CreationTimestamp: GlobalTime, CreationTimestamp: GlobalTime,
Labels: map[string]string{label.SecurityTlsMode.Name: model.IstioMutualTLSModeLabel},
}, },
Spec: &networking.ServiceEntry{ Spec: &networking.ServiceEntry{
Hosts: []string{"selector.com"}, Hosts: []string{"selector.com"},
Ports: []*networking.Port{ Ports: []*networking.Port{
{Number: 444, Name: "tcp-444", Protocol: "tcp"}, {Number: 444, Name: "tcp-444", Protocol: "tcp"},
{Number: 445, Name: "http-445", Protocol: "http"}, {Number: 445, Name: "http-445", Protocol: "http"},
}, },
WorkloadSelector: &networking.WorkloadSelector{ WorkloadSelector: &networking.WorkloadSelector{
Labels: map[string]string{"app": "wle"}, Labels: map[string]string{"app": "wle"},
}, },
 End of changes. 9 change blocks. 
9 lines changed or deleted 0 lines changed or added

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