Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#174 from alculquicondor/rm-workloa…
Browse files Browse the repository at this point in the history
…d-ref

Remove unused workload reference
  • Loading branch information
k8s-ci-robot authored Apr 5, 2022
2 parents e5590b0 + 3d68126 commit c5e5aed
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 52 deletions.
18 changes: 0 additions & 18 deletions api/v1alpha1/queuedworkload_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,10 @@ package v1alpha1
import (
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
)

// QueuedWorkloadSpec defines the desired state of QueuedWorkload
type QueuedWorkloadSpec struct {
// workload that requested these resources.
Workload WorkloadReference `json:"workload"`

// pods is a list of sets of homogeneous pods, each described by a Pod spec
// and a count.
//
Expand Down Expand Up @@ -74,20 +70,6 @@ type PodSetFlavors struct {
Flavors map[corev1.ResourceName]string `json:"flavors,omitempty"`
}

type WorkloadReference struct {
// apiVersion of the referent. It includes the API group, if applicable.
APIVersion string `json:"apiVersion,omitempty"`

// kind of the referent.
Kind string `json:"kind,omitempty"`

// name of the referent.
Name string `json:"name,omitempty"`

// uid of the referent.
UID types.UID `json:"uid,omitempty"`
}

type PodSet struct {
// name is the PodSet name.
// +kubebuilder:default=main
Expand Down
16 changes: 0 additions & 16 deletions api/v1alpha1/zz_generated.deepcopy.go

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

18 changes: 0 additions & 18 deletions config/crd/bases/kueue.x-k8s.io_queuedworkloads.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7333,26 +7333,8 @@ spec:
description: queueName is the name of the queue the QueuedWorkload
is associated with.
type: string
workload:
description: workload that requested these resources.
properties:
apiVersion:
description: apiVersion of the referent. It includes the API group,
if applicable.
type: string
kind:
description: kind of the referent.
type: string
name:
description: name of the referent.
type: string
uid:
description: uid of the referent.
type: string
type: object
required:
- queueName
- workload
type: object
status:
description: QueuedWorkloadStatus defines the observed state of QueuedWorkload
Expand Down

0 comments on commit c5e5aed

Please sign in to comment.