Skip to content

Commit

Permalink
Update Cohort Documentation; Delete Unused Field (kubernetes-sigs#3107)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabesaba authored and kannon92 committed Nov 19, 2024
1 parent d59eac5 commit 30004a1
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
10 changes: 3 additions & 7 deletions apis/kueue/v1alpha1/cohort_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@ type CohortSpec struct {
ResourceGroups []kueuebeta.ResourceGroup `json:"resourceGroups,omitempty"`
}

const (
// Condition indicating that a Cohort is correctly configured,
// for example, there is no cycle.
CohortActive = "Active"
)

// CohortStatus defines the observed state of Cohort
type CohortStatus struct {

Expand All @@ -82,7 +76,9 @@ type CohortStatus struct {
//+kubebuilder:subresource:status
//+kubebuilder:resource:scope=Cluster

// Cohort is the Schema for the cohorts API
// Cohort is the Schema for the cohorts API. Using Hierarchical
// Cohorts (any Cohort which has a parent) with Fair Sharing
// results in undefined behavior in 0.9
type Cohort struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down
5 changes: 4 additions & 1 deletion charts/kueue/templates/crd/kueue.x-k8s.io_cohorts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ spec:
- name: v1alpha1
schema:
openAPIV3Schema:
description: Cohort is the Schema for the cohorts API
description: |-
Cohort is the Schema for the cohorts API. Using Hierarchical
Cohorts (any Cohort which has a parent) with Fair Sharing
results in undefined behavior in 0.9
properties:
apiVersion:
description: |-
Expand Down
5 changes: 4 additions & 1 deletion config/components/crd/bases/kueue.x-k8s.io_cohorts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ spec:
- name: v1alpha1
schema:
openAPIV3Schema:
description: Cohort is the Schema for the cohorts API
description: |-
Cohort is the Schema for the cohorts API. Using Hierarchical
Cohorts (any Cohort which has a parent) with Fair Sharing
results in undefined behavior in 0.9
properties:
apiVersion:
description: |-
Expand Down
4 changes: 3 additions & 1 deletion site/content/en/docs/reference/kueue-alpha.v1alpha1.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ description: Generated API reference documentation for kueue.x-k8s.io/v1alpha1.



<p>Cohort is the Schema for the cohorts API</p>
<p>Cohort is the Schema for the cohorts API. Using Hierarchical
Cohorts (any Cohort which has a parent) with Fair Sharing
results in undefined behavior in 0.9</p>


<table class="table">
Expand Down

0 comments on commit 30004a1

Please sign in to comment.