Skip to content

Commit b95593f

Browse files
committed
minor edits to apidoc comments
1 parent 61857bc commit b95593f

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

api/v1beta2/appwrapper_types.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,27 +42,27 @@ type AppWrapperComponent struct {
4242
//+optional
4343
Annotations map[string]string `json:"annotations,omitempty"`
4444

45-
// DeclaredPodSets for the Component (optional for known PodCreating GVKs)
45+
// DeclaredPodSets for the Component (optional for known GVKs whose PodSets can be automatically inferred)
4646
//+optional
4747
DeclaredPodSets []AppWrapperPodSet `json:"podSets,omitempty"`
4848

4949
// PodSetInfos assigned to the Component's PodSets by Kueue
5050
//+optional
5151
PodSetInfos []AppWrapperPodSetInfo `json:"podSetInfos,omitempty"`
5252

53+
// Template defines the Kubernetes resource for the Component
5354
// +kubebuilder:pruning:PreserveUnknownFields
5455
// +kubebuilder:validation:EmbeddedResource
55-
// Template defines the Kubernetes resource for the Component
5656
Template runtime.RawExtension `json:"template"`
5757
}
5858

59-
// AppWrapperPodSet describes an homogeneous set of pods
59+
// AppWrapperPodSet describes a homogeneous set of pods
6060
type AppWrapperPodSet struct {
6161
// Replicas is the number of pods in this PodSet
6262
//+optional
6363
Replicas *int32 `json:"replicas,omitempty"`
6464

65-
// Path is the path Component.Template to the PodTemplateSpec for this PodSet
65+
// Path is the path within Component.Template to the PodTemplateSpec for this PodSet
6666
Path string `json:"path"`
6767

6868
// Annotations is an unstructured key value map that may be used to store and retrieve
@@ -90,7 +90,7 @@ type AppWrapperPodSetInfo struct {
9090
SchedulingGates []corev1.PodSchedulingGate `json:"schedulingGates,omitempty"`
9191
}
9292

93-
// AppWrapperStatus defines the observed state of the appwrapper
93+
// AppWrapperStatus defines the observed state of the AppWrapper
9494
type AppWrapperStatus struct {
9595
// Phase of the AppWrapper object
9696
//+optional
@@ -149,7 +149,7 @@ type AppWrapperComponentStatus struct {
149149
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
150150
}
151151

152-
// AppWrapperPhase is the phase of the appwrapper
152+
// AppWrapperPhase enumerates the valid Phases of an AppWrapper
153153
type AppWrapperPhase string
154154

155155
const (
@@ -164,6 +164,7 @@ const (
164164
AppWrapperTerminating AppWrapperPhase = "Terminating"
165165
)
166166

167+
// AppWrapperCondition enumerates the Condition Types that may appear in AppWrapper status
167168
type AppWrapperCondition string
168169

169170
const (

site/_pages/appwrapper.v1beta2.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ arbitrary metadata about the Component to customize its treatment by the AppWrap
7878
<a href="#workload-codeflare-dev-v1beta2-AppWrapperPodSet"><code>[]AppWrapperPodSet</code></a>
7979
</td>
8080
<td>
81-
<p>DeclaredPodSets for the Component (optional for known PodCreating GVKs)</p>
81+
<p>DeclaredPodSets for the Component (optional for known GVKs whose PodSets can be automatically inferred)</p>
8282
</td>
8383
</tr>
8484
<tr><td><code>podSetInfos</code><br/>
@@ -165,7 +165,7 @@ arbitrary metadata about the Component to customize its treatment by the AppWrap
165165
- [AppWrapperStatus](#workload-codeflare-dev-v1beta2-AppWrapperStatus)
166166

167167

168-
<p>AppWrapperPhase is the phase of the appwrapper</p>
168+
<p>AppWrapperPhase enumerates the valid Phases of an AppWrapper</p>
169169

170170

171171

@@ -180,7 +180,7 @@ arbitrary metadata about the Component to customize its treatment by the AppWrap
180180
- [AppWrapperComponentStatus](#workload-codeflare-dev-v1beta2-AppWrapperComponentStatus)
181181

182182

183-
<p>AppWrapperPodSet describes an homogeneous set of pods</p>
183+
<p>AppWrapperPodSet describes a homogeneous set of pods</p>
184184

185185

186186
<table class="table">
@@ -199,7 +199,7 @@ arbitrary metadata about the Component to customize its treatment by the AppWrap
199199
<code>string</code>
200200
</td>
201201
<td>
202-
<p>Path is the path Component.Template to the PodTemplateSpec for this PodSet</p>
202+
<p>Path is the path within Component.Template to the PodTemplateSpec for this PodSet</p>
203203
</td>
204204
</tr>
205205
<tr><td><code>annotations</code><br/>
@@ -315,7 +315,7 @@ arbitrary metadata about the PodSet to customize its treatment by the AppWrapper
315315
- [AppWrapper](#workload-codeflare-dev-v1beta2-AppWrapper)
316316

317317

318-
<p>AppWrapperStatus defines the observed state of the appwrapper</p>
318+
<p>AppWrapperStatus defines the observed state of the AppWrapper</p>
319319

320320

321321
<table class="table">

0 commit comments

Comments
 (0)