@@ -42,27 +42,27 @@ type AppWrapperComponent struct {
42
42
//+optional
43
43
Annotations map [string ]string `json:"annotations,omitempty"`
44
44
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 )
46
46
//+optional
47
47
DeclaredPodSets []AppWrapperPodSet `json:"podSets,omitempty"`
48
48
49
49
// PodSetInfos assigned to the Component's PodSets by Kueue
50
50
//+optional
51
51
PodSetInfos []AppWrapperPodSetInfo `json:"podSetInfos,omitempty"`
52
52
53
+ // Template defines the Kubernetes resource for the Component
53
54
// +kubebuilder:pruning:PreserveUnknownFields
54
55
// +kubebuilder:validation:EmbeddedResource
55
- // Template defines the Kubernetes resource for the Component
56
56
Template runtime.RawExtension `json:"template"`
57
57
}
58
58
59
- // AppWrapperPodSet describes an homogeneous set of pods
59
+ // AppWrapperPodSet describes a homogeneous set of pods
60
60
type AppWrapperPodSet struct {
61
61
// Replicas is the number of pods in this PodSet
62
62
//+optional
63
63
Replicas * int32 `json:"replicas,omitempty"`
64
64
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
66
66
Path string `json:"path"`
67
67
68
68
// Annotations is an unstructured key value map that may be used to store and retrieve
@@ -90,7 +90,7 @@ type AppWrapperPodSetInfo struct {
90
90
SchedulingGates []corev1.PodSchedulingGate `json:"schedulingGates,omitempty"`
91
91
}
92
92
93
- // AppWrapperStatus defines the observed state of the appwrapper
93
+ // AppWrapperStatus defines the observed state of the AppWrapper
94
94
type AppWrapperStatus struct {
95
95
// Phase of the AppWrapper object
96
96
//+optional
@@ -149,7 +149,7 @@ type AppWrapperComponentStatus struct {
149
149
Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
150
150
}
151
151
152
- // AppWrapperPhase is the phase of the appwrapper
152
+ // AppWrapperPhase enumerates the valid Phases of an AppWrapper
153
153
type AppWrapperPhase string
154
154
155
155
const (
@@ -164,6 +164,7 @@ const (
164
164
AppWrapperTerminating AppWrapperPhase = "Terminating"
165
165
)
166
166
167
+ // AppWrapperCondition enumerates the Condition Types that may appear in AppWrapper status
167
168
type AppWrapperCondition string
168
169
169
170
const (
0 commit comments