Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:Update
kubernetes1.23.35296
kubernetes-sort-custom-column-print-flags.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kubernetes-sort-custom-column-print-flags.patch of Package kubernetes1.23.35296
From 968a8359f4a92920d4fed6f0304dc2f2240c0510 Mon Sep 17 00:00:00 2001 From: kkkkun <scuzk373x@gmail.com> Date: Thu, 3 Mar 2022 22:31:58 +0800 Subject: [PATCH] sort custom column print flags (cherry picked from commit 36ed148761cb5a30c21b45a64d95cabd1a9d07ff) --- staging/src/k8s.io/kubectl/pkg/cmd/get/customcolumn_flags.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/staging/src/k8s.io/kubectl/pkg/cmd/get/customcolumn_flags.go b/staging/src/k8s.io/kubectl/pkg/cmd/get/customcolumn_flags.go index eee919b49b3..efd7fcf7524 100644 --- a/staging/src/k8s.io/kubectl/pkg/cmd/get/customcolumn_flags.go +++ b/staging/src/k8s.io/kubectl/pkg/cmd/get/customcolumn_flags.go @@ -19,6 +19,7 @@ package get import ( "fmt" "os" + "sort" "strings" "github.com/spf13/cobra" @@ -45,6 +46,7 @@ func (f *CustomColumnsPrintFlags) AllowedFormats() []string { for format := range columnsFormats { formats = append(formats, format) } + sort.Strings(formats) return formats } -- 2.35.3
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor