mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-11-03 23:40:03 +00:00 
			
		
		
		
	Merge pull request #26454 from thockin/licenses_again
Automatic merge from submit-queue Don't allow deps with no discernible license This updates the few deps we had with no LICENSE file to current versions that do have that file. It also disallows new deps without obvious licenses.
This commit is contained in:
		@@ -417,10 +417,7 @@ func PrettyPrintJSON(metrics interface{}) string {
 | 
			
		||||
 | 
			
		||||
// extractMetricSamples parses the prometheus metric samples from the input string.
 | 
			
		||||
func extractMetricSamples(metricsBlob string) ([]*model.Sample, error) {
 | 
			
		||||
	dec, err := expfmt.NewDecoder(strings.NewReader(metricsBlob), expfmt.FmtText)
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		return nil, err
 | 
			
		||||
	}
 | 
			
		||||
	dec := expfmt.NewDecoder(strings.NewReader(metricsBlob), expfmt.FmtText)
 | 
			
		||||
	decoder := expfmt.SampleDecoder{
 | 
			
		||||
		Dec:  dec,
 | 
			
		||||
		Opts: &expfmt.DecodeOptions{},
 | 
			
		||||
@@ -429,7 +426,7 @@ func extractMetricSamples(metricsBlob string) ([]*model.Sample, error) {
 | 
			
		||||
	var samples []*model.Sample
 | 
			
		||||
	for {
 | 
			
		||||
		var v model.Vector
 | 
			
		||||
		if err = decoder.Decode(&v); err != nil {
 | 
			
		||||
		if err := decoder.Decode(&v); err != nil {
 | 
			
		||||
			if err == io.EOF {
 | 
			
		||||
				// Expected loop termination condition.
 | 
			
		||||
				return samples, nil
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user