Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ReportFromYaml (0.16 sec)

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

    )
    
    type Report struct {
    	Reporter            string         `json:"reporter"`
    	DataPlaneCount      int            `json:"dataPlaneCount"`
    	InProgressResources map[string]int `json:"inProgressResources"`
    }
    
    func ReportFromYaml(content []byte) (Report, error) {
    	out := Report{}
    	err := yaml.Unmarshal(content, &out)
    	return out, err
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 17 12:28:05 UTC 2021
    - 971 bytes
    - Viewed (0)
  2. pilot/pkg/status/distribution/state.go

    	cm, ok := obj.(*v1.ConfigMap)
    	if !ok {
    		scope.Warnf("expected configmap, but received %v, discarding", obj)
    		return
    	}
    	rptStr := cm.Data[dataField]
    	scope.Debugf("using report: %s", rptStr)
    	dr, err := ReportFromYaml([]byte(cm.Data[dataField]))
    	if err != nil {
    		scope.Warnf("received malformed distributionReport %s, discarding: %v", cm.Name, err)
    		return
    	}
    	drh.dc.handleReport(dr)
    }
    
    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