Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ require (
k8s.io/apimachinery v0.32.3
k8s.io/client-go v0.32.3
k8s.io/klog/v2 v2.130.1
kmodules.xyz/client-go v0.32.6
kmodules.xyz/resource-metadata v0.32.0
kmodules.xyz/client-go v0.32.7
kmodules.xyz/resource-metadata v0.36.0
sigs.k8s.io/controller-runtime v0.20.4
)

Expand Down Expand Up @@ -118,7 +118,7 @@ require (
kmodules.xyz/apiversion v0.2.0 // indirect
kmodules.xyz/go-containerregistry v0.0.14 // indirect
kmodules.xyz/offshoot-api v0.32.0 // indirect
kmodules.xyz/resource-metrics v0.30.9 // indirect
kmodules.xyz/resource-metrics v0.30.11-0.20250808121819-d4255c017e68 // indirect
sigs.k8s.io/json v0.0.0-20241014173422-cfa47c3a1cc8 // indirect
sigs.k8s.io/randfill v1.0.0 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.6.0 // indirect
Expand Down
12 changes: 6 additions & 6 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -564,16 +564,16 @@ k8s.io/utils v0.0.0-20241210054802-24370beab758 h1:sdbE21q2nlQtFh65saZY+rRM6x6aJ
k8s.io/utils v0.0.0-20241210054802-24370beab758/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
kmodules.xyz/apiversion v0.2.0 h1:vAQYqZFm4xu4pbB1cAdHbFEPES6EQkcR4wc06xdTOWk=
kmodules.xyz/apiversion v0.2.0/go.mod h1:oPX8g8LvlPdPX3Yc5YvCzJHQnw3YF/X4/jdW0b1am80=
kmodules.xyz/client-go v0.32.6 h1:/V9T0aLfe38PsyF+5FeU5QaC3GcqD8hQoWSCZw/uOpI=
kmodules.xyz/client-go v0.32.6/go.mod h1:ZwLnc7UqEXUNSe43n/SnER6+7YAQCu38L2te6YefoHU=
kmodules.xyz/client-go v0.32.7 h1:vBAbp8vs4coYRhY4wqm1Hw/eBEDiVU238AyMLSoRJ1c=
kmodules.xyz/client-go v0.32.7/go.mod h1:ZwLnc7UqEXUNSe43n/SnER6+7YAQCu38L2te6YefoHU=
kmodules.xyz/go-containerregistry v0.0.14 h1:8MgLFa74HymAJEyjH7fyQJn5u2Ok6qPPFQX8ARfcXp0=
kmodules.xyz/go-containerregistry v0.0.14/go.mod h1:xz0iGC3noyMi5NNAzXWTH6KqfiIgFWZAomw+U2zVOXs=
kmodules.xyz/offshoot-api v0.32.0 h1:gogc5scSZe2JoXtZof72UGRl3Tit0kFaFRMkLLT1D8o=
kmodules.xyz/offshoot-api v0.32.0/go.mod h1:tled7OxYZ3SkUJcrVFVVYyd+zXjsRSEm1R6Q3k4gcx0=
kmodules.xyz/resource-metadata v0.32.0 h1:BabYnN+mlSC8ZEfCvHpXjKCRExmzaahrPIwdhRXqJW4=
kmodules.xyz/resource-metadata v0.32.0/go.mod h1:wHC24BVzKb1gzkDCSI5l9CXK4AKD5gMamxEqVys50lI=
kmodules.xyz/resource-metrics v0.30.9 h1:A25GC7+UpYAEJCVx44CxQYLE9vqDxC8R+suSNoWDEyY=
kmodules.xyz/resource-metrics v0.30.9/go.mod h1:5K+0A0iU+4JBFPZEuj716/oSgI9xUTnVTANS+cwhHIs=
kmodules.xyz/resource-metadata v0.36.0 h1:KDVSrq4XcOoyAB8NTdHCqYduGfCUwP3AivRxkFdATJA=
kmodules.xyz/resource-metadata v0.36.0/go.mod h1:rwXNC2Byb0m0XJv9PxSxPJwMM6OdU+6uOidUCHu74zU=
kmodules.xyz/resource-metrics v0.30.11-0.20250808121819-d4255c017e68 h1:Wzj3OzURb0qx/CeoFnA7U8xjBuPjW606txW83Rd1SZo=
kmodules.xyz/resource-metrics v0.30.11-0.20250808121819-d4255c017e68/go.mod h1:5K+0A0iU+4JBFPZEuj716/oSgI9xUTnVTANS+cwhHIs=
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
sigs.k8s.io/controller-runtime v0.20.4 h1:X3c+Odnxz+iPTRobG4tp092+CvBU9UK0t/bRf+n0DGU=
sigs.k8s.io/controller-runtime v0.20.4/go.mod h1:xg2XB0K5ShQzAgsoujxuKN4LNXR2LfwwHsPj7Iaw+XY=
Expand Down
1 change: 1 addition & 0 deletions vendor/kmodules.xyz/client-go/meta/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (
// ref: https://github.com/kubernetes-sigs/application/blob/4ead7f1b87048b7717b3e474a21fdc07e6bce636/pkg/controller/application/application_controller.go#L28
const (
NameLabelKey = "app.kubernetes.io/name"
NamespaceLabelKey = "app.kubernetes.io/namespace"
VersionLabelKey = "app.kubernetes.io/version"
InstanceLabelKey = "app.kubernetes.io/instance"
PartOfLabelKey = "app.kubernetes.io/part-of"
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,23 @@ type FeatureList []string

type PageBlockTableDefinition struct {
Columns []ResourceColumnDefinition `json:"columns,omitempty"`
Sort *TableSortOption `json:"sort,omitempty"`
}

type TableSortOption struct {
Order TableSortOrder `json:"order,omitempty"`
FieldName string `json:"fieldName,omitempty"`
}

// +kubebuilder:validation:Enum=Ascending;Descending

type TableSortOrder string

const (
TableSortOrderAscending TableSortOrder = "Ascending"
TableSortOrderDescending TableSortOrder = "Descending"
)

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +kubebuilder:object:root=true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ type PageBlockOutline struct {
type ResourceTableDefinitionRef struct {
Name string `json:"name,omitempty"`
Columns []ResourceColumnDefinition `json:"columns,omitempty"`
Sort *TableSortOption `json:"sort,omitempty"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,16 @@ spec:
type: array
name:
type: string
sort:
properties:
fieldName:
type: string
order:
enum:
- Ascending
- Descending
type: string
type: object
type: object
width:
type: integer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,16 @@ spec:
- type
type: object
type: array
sort:
properties:
fieldName:
type: string
order:
enum:
- Ascending
- Descending
type: string
type: object
type: object
width:
type: integer
Expand Down Expand Up @@ -515,6 +525,16 @@ spec:
- type
type: object
type: array
sort:
properties:
fieldName:
type: string
order:
enum:
- Ascending
- Descending
type: string
type: object
type: object
width:
type: integer
Expand Down Expand Up @@ -773,6 +793,16 @@ spec:
- type
type: object
type: array
sort:
properties:
fieldName:
type: string
order:
enum:
- Ascending
- Descending
type: string
type: object
type: object
width:
type: integer
Expand Down Expand Up @@ -1008,6 +1038,16 @@ spec:
- type
type: object
type: array
sort:
properties:
fieldName:
type: string
order:
enum:
- Ascending
- Descending
type: string
type: object
type: object
width:
type: integer
Expand Down Expand Up @@ -1279,6 +1319,16 @@ spec:
- type
type: object
type: array
sort:
properties:
fieldName:
type: string
order:
enum:
- Ascending
- Descending
type: string
type: object
type: object
width:
type: integer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,16 @@ spec:
type: array
name:
type: string
sort:
properties:
fieldName:
type: string
order:
enum:
- Ascending
- Descending
type: string
type: object
type: object
width:
type: integer
Expand Down Expand Up @@ -599,6 +609,16 @@ spec:
type: array
name:
type: string
sort:
properties:
fieldName:
type: string
order:
enum:
- Ascending
- Descending
type: string
type: object
type: object
width:
type: integer
Expand Down Expand Up @@ -855,6 +875,16 @@ spec:
type: array
name:
type: string
sort:
properties:
fieldName:
type: string
order:
enum:
- Ascending
- Descending
type: string
type: object
type: object
width:
type: integer
Expand Down Expand Up @@ -1088,6 +1118,16 @@ spec:
type: array
name:
type: string
sort:
properties:
fieldName:
type: string
order:
enum:
- Ascending
- Descending
type: string
type: object
type: object
width:
type: integer
Expand Down Expand Up @@ -1357,6 +1397,16 @@ spec:
type: array
name:
type: string
sort:
properties:
fieldName:
type: string
order:
enum:
- Ascending
- Descending
type: string
type: object
type: object
width:
type: integer
Expand Down
Loading
Loading