"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pkg/test/framework/components/namespace/kube.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.

kube.go  (istio-1.10.0):kube.go  (istio-1.10.1)
skipping to change at line 197 skipping to change at line 197
return n, nil return n, nil
} }
// createNamespaceLabels will take a namespace config and generate the proper k8 s labels // createNamespaceLabels will take a namespace config and generate the proper k8 s labels
func createNamespaceLabels(ctx resource.Context, cfg *Config) map[string]string { func createNamespaceLabels(ctx resource.Context, cfg *Config) map[string]string {
l := make(map[string]string) l := make(map[string]string)
l["istio-testing"] = "istio-test" l["istio-testing"] = "istio-test"
if cfg.Inject { if cfg.Inject {
// do not add namespace labels when dealing with multiple revisio ns since // do not add namespace labels when dealing with multiple revisio ns since
// this disables the necessary object selectors // this disables the necessary object selectors
if !ctx.Settings().IstioVersions.IsMultiVersion() { if !ctx.Settings().Revisions.IsMultiVersion() {
if cfg.Revision != "" { if cfg.Revision != "" {
l[label.IoIstioRev.Name] = cfg.Revision l[label.IoIstioRev.Name] = cfg.Revision
} else { } else {
l["istio-injection"] = "enabled" l["istio-injection"] = "enabled"
} }
} }
} else { } else {
// for multiversion environments, disable the entire namespace ex plicitly // for multiversion environments, disable the entire namespace ex plicitly
// so that object selectors are ignored // so that object selectors are ignored
if ctx.Settings().IstioVersions.IsMultiVersion() { if ctx.Settings().Revisions.IsMultiVersion() {
l["istio-injection"] = "disabled" l["istio-injection"] = "disabled"
} }
} }
// bring over supplied labels // bring over supplied labels
for k, v := range cfg.Labels { for k, v := range cfg.Labels {
l[k] = v l[k] = v
} }
return l return l
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

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