Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ToModelKey (0.6 sec)

  1. pilot/pkg/status/distribution/reporter.go

    		// if cache miss, need to skip current loop, otherwise is will cause errors like
    		// invalid memory address or nil pointer dereference
    		if _, ok := r.inProgressResources[item.ToModelKey()]; !ok {
    			continue
    		}
    		total := r.inProgressResources[item.ToModelKey()].completedIterations + 1
    		if int64(total) > (time.Minute.Milliseconds() / r.UpdateInterval.Milliseconds()) {
    			// remove from inProgressResources
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 30 17:25:17 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. pilot/pkg/status/resource.go

    	Generation string
    }
    
    func (r Resource) String() string {
    	return strings.Join([]string{r.Group, r.Version, r.GroupVersionResource.Resource, r.Namespace, r.Name, r.Generation}, "/")
    }
    
    func (r *Resource) ToModelKey() string {
    	// we have a resource here, but model keys use kind.  Use the schema to find the correct kind.
    	found, _ := collections.All.FindByGroupVersionResource(r.GroupVersionResource)
    	return config.Key(
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 30 16:13:59 UTC 2023
    - 3.2K bytes
    - Viewed (0)
Back to top