Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ResourceFromString (0.2 sec)

  1. pilot/pkg/status/resource.go

    	"istio.io/istio/pkg/config/schema/collections"
    	"istio.io/istio/pkg/config/schema/gvk"
    	"istio.io/istio/pkg/log"
    )
    
    var scope = log.RegisterScope("status",
    	"status controller for istio")
    
    func ResourceFromString(s string) *Resource {
    	pieces := strings.Split(s, "/")
    	if len(pieces) != 6 {
    		scope.Errorf("cannot unmarshal %s into resource identifier", s)
    		return nil
    	}
    	return &Resource{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 30 16:13:59 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  2. pilot/pkg/status/distribution/state.go

    			}
    		}
    	}
    }
    
    func (c *Controller) handleReport(d Report) {
    	defer c.mu.Unlock()
    	c.mu.Lock()
    	for resstr := range d.InProgressResources {
    		res := *status.ResourceFromString(resstr)
    		if _, ok := c.CurrentState[res]; !ok {
    			c.CurrentState[res] = make(map[string]Progress)
    		}
    		c.CurrentState[res][d.Reporter] = Progress{d.InProgressResources[resstr], d.DataPlaneCount}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 7.7K bytes
    - Viewed (0)
Back to top