Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for FormatLabels (0.17 sec)

  1. staging/src/k8s.io/apimachinery/pkg/labels/labels.go

    // instead, which does not copy.
    func (ls Set) AsSelectorPreValidated() Selector {
    	return SelectorFromValidatedSet(ls)
    }
    
    // FormatLabels converts label map into plain string
    func FormatLabels(labelMap map[string]string) string {
    	l := Set(labelMap).String()
    	if l == "" {
    		l = "<none>"
    	}
    	return l
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 14 16:39:04 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/printers/tableprinter.go

    	var values []string
    	for _, key := range opts.ColumnLabels {
    		values = append(values, itemLabels[key])
    	}
    	if opts.ShowLabels {
    		values = append(values, labels.FormatLabels(itemLabels))
    	}
    	return values
    }
    
    // appendLabelCells returns a slice of value columns matching the requested print options.
    // Intended for use with tables.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Oct 30 15:08:43 UTC 2022
    - 16.7K bytes
    - Viewed (0)
  3. pkg/printers/internalversion/printers.go

    	row := metav1.TableRow{
    		Object: runtime.RawExtension{Object: obj},
    	}
    	names, images := layoutContainerCells(obj.Template.Spec.Containers)
    	row.Cells = append(row.Cells, obj.Name, names, images, labels.FormatLabels(obj.Template.Labels))
    	return []metav1.TableRow{row}, nil
    }
    
    func printPodTemplateList(list *api.PodTemplateList, options printers.GenerateOptions) ([]metav1.TableRow, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 14:04:15 UTC 2024
    - 128.3K bytes
    - Viewed (0)
Back to top