Skip to content

Commit

Permalink
Add a visibility API endpoint for fetching pending workloads in a Loc…
Browse files Browse the repository at this point in the history
…alQueue
  • Loading branch information
PBundyra committed Nov 24, 2023
1 parent a12e570 commit ed71fff
Show file tree
Hide file tree
Showing 23 changed files with 1,789 additions and 21 deletions.
91 changes: 91 additions & 0 deletions apis/visibility/v1alpha1/openapi/zz_generated.openapi.go

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

19 changes: 19 additions & 0 deletions apis/visibility/v1alpha1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,25 @@ type ClusterQueueList struct {
Items []ClusterQueue `json:"items"`
}

// +genclient
// +kubebuilder:object:root=true
// +k8s:openapi-gen=true
// +genclient:method=GetPendingWorkloadsSummary,verb=get,subresource=pendingworkloads,result=sigs.k8s.io/kueue/apis/visibility/v1alpha1.PendingWorkloadsSummary
type LocalQueue struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`

Summary PendingWorkloadsSummary `json:"pendingworkloadsummary"`
}

// +kubebuilder:object:root=true
type LocalQueueList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`

Items []LocalQueue `json:"items"`
}

// +k8s:openapi-gen=true
// +kubebuilder:object:root=true

Expand Down
58 changes: 58 additions & 0 deletions apis/visibility/v1alpha1/zz_generated.deepcopy.go

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

2 changes: 2 additions & 0 deletions client-go/applyconfiguration/utils.go

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

Loading

0 comments on commit ed71fff

Please sign in to comment.