Skip to content

Commit dffec9f

Browse files
committed
Move to internal controller package
1 parent 69fb6c2 commit dffec9f

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

pkg/api/interface.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@ const DualLabelName string = "dual-pods.llm-d.ai/dual"
114114
// (it does not rely on this label for anything).
115115
const SleepingLabelName string = "dual-pods.llm-d.ai/sleeping"
116116

117-
const NominalHashAnnotationKey = "dual-pods.llm-d.ai/nominal"
118-
119117
// SleepState is what HTTP GET /is_sleeping on an inference server
120118
// returns (as JSON).
121119
type SleepState struct {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package generic
2+
3+
const NominalHashAnnotationKey = "dual-pods.llm-d.ai/nominal"

pkg/controller/launcher-populator/populator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ func (ctl *controller) buildPodFromTemplate(template corev1.PodTemplateSpec, key
419419
if pod.Annotations == nil {
420420
pod.Annotations = make(map[string]string)
421421
}
422-
pod.Annotations = dualpods.MapSet(pod.Annotations, api.NominalHashAnnotationKey, nominalHash)
422+
pod.Annotations = dualpods.MapSet(pod.Annotations, genctlr.NominalHashAnnotationKey, nominalHash)
423423

424424
pod.Annotations[PortDiscoveryAnnotationKey] = PortDiscoveryAnnotationEmptyValue
425425

0 commit comments

Comments
 (0)