Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for PVCReference (0.45 sec)

  1. pkg/kubelet/server/stats/volume_stat_calculator.go

    			}
    			continue
    		}
    		// Lookup the volume spec and add a 'PVCReference' for volumes that reference a PVC
    		volSpec := volumesSpec[name]
    		var pvcRef *stats.PVCReference
    		if pvcSource := volSpec.PersistentVolumeClaim; pvcSource != nil {
    			pvcRef = &stats.PVCReference{
    				Name:      pvcSource.ClaimName,
    				Namespace: s.pod.GetNamespace(),
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 29 00:55:10 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  2. pkg/kubelet/metrics/collectors/volume_stats_test.go

    							InodesFree:     newUint64Pointer(655344),
    							Inodes:         newUint64Pointer(655360),
    							InodesUsed:     newUint64Pointer(16),
    						},
    						Name: "test",
    						PVCRef: &statsapi.PVCReference{
    							Name:      "testpvc",
    							Namespace: "testns",
    						},
    						VolumeHealthStats: &statsapi.VolumeHealthStats{
    							Abnormal: true,
    						},
    					},
    				},
    			},
    			{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. pkg/kubelet/server/stats/volume_stat_calculator_test.go

    	})
    	// Verify 'vol1' has a PVC reference
    	assert.Contains(t, append(vs.EphemeralVolumes, vs.PersistentVolumes...), kubestats.VolumeStats{
    		Name: vol1,
    		PVCRef: &kubestats.PVCReference{
    			Name:      pvcClaimName0,
    			Namespace: namespace0,
    		},
    		FsStats:           expectedFSStats(),
    		VolumeHealthStats: expectedVolumeHealthStats(),
    	})
    	// // Verify 'vol2' has a PVC reference
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  4. pkg/kubelet/metrics/collectors/volume_stats.go

    	ctx := context.Background()
    	podStats, err := collector.statsProvider.ListPodStats(ctx)
    	if err != nil {
    		return
    	}
    	addGauge := func(desc *metrics.Desc, pvcRef *stats.PVCReference, v float64, lv ...string) {
    		lv = append([]string{pvcRef.Namespace, pvcRef.Name}, lv...)
    		ch <- metrics.NewLazyConstMetric(desc, metrics.GaugeValue, v, lv...)
    	}
    	allPVCs := sets.Set[string]{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 5.3K bytes
    - Viewed (0)
Back to top