Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for itemLabels (0.2 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/printers/tableprinter.go

    // labelValues returns a slice of value columns matching the requested print options.
    func labelValues(itemLabels map[string]string, opts PrintOptions) []string {
    	var values []string
    	for _, key := range opts.ColumnLabels {
    		values = append(values, itemLabels[key])
    	}
    	if opts.ShowLabels {
    		values = append(values, labels.FormatLabels(itemLabels))
    	}
    	return values
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Oct 30 15:08:43 UTC 2022
    - 16.7K bytes
    - Viewed (0)
Back to top