"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "pilot/pkg/bootstrap/mesh.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.

mesh.go  (istio-1.10.0):mesh.go  (istio-1.10.1)
skipping to change at line 102 skipping to change at line 102
if multiWatch { if multiWatch {
kubemesh.AddUserMeshConfig( kubemesh.AddUserMeshConfig(
s.kubeClient, s.environment.Watcher, args.Namespace, conf igMapKey, features.SharedMeshConfig) s.kubeClient, s.environment.Watcher, args.Namespace, conf igMapKey, features.SharedMeshConfig)
} }
} }
// initMeshNetworks loads the mesh networks configuration from the file provided // initMeshNetworks loads the mesh networks configuration from the file provided
// in the args and add a watcher for changes in this file. // in the args and add a watcher for changes in this file.
func (s *Server) initMeshNetworks(args *PilotArgs, fileWatcher filewatcher.FileW atcher) { func (s *Server) initMeshNetworks(args *PilotArgs, fileWatcher filewatcher.FileW atcher) {
if mw, ok := s.environment.Watcher.(mesh.NetworksWatcher); ok {
// The mesh config watcher is also a NetworksWatcher, this is com
mon for reading ConfigMap
// directly from Kubernetes
log.Infof("initializing mesh networks from mesh config watcher")
s.environment.NetworksWatcher = mw
return
}
log.Info("initializing mesh networks") log.Info("initializing mesh networks")
if args.NetworksConfigFile != "" { if args.NetworksConfigFile != "" {
var err error var err error
s.environment.NetworksWatcher, err = mesh.NewNetworksWatcher(file Watcher, args.NetworksConfigFile) s.environment.NetworksWatcher, err = mesh.NewNetworksWatcher(file Watcher, args.NetworksConfigFile)
if err != nil { if err != nil {
log.Info(err) log.Info(err)
} }
} }
if s.environment.NetworksWatcher == nil { if s.environment.NetworksWatcher == nil {
 End of changes. 1 change blocks. 
0 lines changed or deleted 8 lines changed or added

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