"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "istioctl/cmd/add-to-mesh_test.go" between
istio-1.5.4.tar.gz and istio-1.6.0.tar.gz

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

add-to-mesh_test.go  (istio-1.5.4):add-to-mesh_test.go  (istio-1.6.0)
skipping to change at line 25 skipping to change at line 25
package cmd package cmd
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"strings" "strings"
"testing" "testing"
appsv1 "k8s.io/api/apps/v1" appsv1 "k8s.io/api/apps/v1"
coreV1 "k8s.io/api/core/v1" coreV1 "k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
metaV1 "k8s.io/apimachinery/pkg/apis/meta/v1" metaV1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured" "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/dynamic" "k8s.io/client-go/dynamic"
"k8s.io/client-go/dynamic/fake" "k8s.io/client-go/dynamic/fake"
"istio.io/istio/pkg/config/schema/collections" "istio.io/istio/pkg/config/schema/collections"
) )
type testcase struct { type testcase struct {
skipping to change at line 69 skipping to change at line 68
Spec: appsv1.DeploymentSpec{ Spec: appsv1.DeploymentSpec{
Replicas: &one, Replicas: &one,
Selector: &metaV1.LabelSelector{ Selector: &metaV1.LabelSelector{
MatchLabels: map[string]string{"a pp": "details"}, MatchLabels: map[string]string{"a pp": "details"},
}, },
Template: coreV1.PodTemplateSpec{ Template: coreV1.PodTemplateSpec{
ObjectMeta: metaV1.ObjectMeta{ ObjectMeta: metaV1.ObjectMeta{
Labels: map[string]string {"app": "details"}, Labels: map[string]string {"app": "details"},
}, },
Spec: coreV1.PodSpec{ Spec: coreV1.PodSpec{
Containers: []v1.Containe r{ Containers: []coreV1.Cont ainer{
{Name: "details", Image: "docker.io/istio/examples-bookinfo-details-v1:1.15.0"}, {Name: "details", Image: "docker.io/istio/examples-bookinfo-details-v1:1.15.0"},
}, },
}, },
}, },
}, },
}, },
}}, }},
&coreV1.ServiceList{Items: []coreV1.Service{ &coreV1.ServiceList{Items: []coreV1.Service{
{ {
ObjectMeta: metaV1.ObjectMeta{ ObjectMeta: metaV1.ObjectMeta{
 End of changes. 2 change blocks. 
2 lines changed or deleted 1 lines changed or added

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