Skip to content

Commit 75b11f0

Browse files
authored
chore: add the cmpd and service-version labels to pods (#9561)
1 parent 773cd7f commit 75b11f0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

pkg/controller/factory/builder.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,11 @@ func getTemplate(synthesizedComp *component.SynthesizedComponent) corev1.PodTemp
106106
AddLabelsInMap(synthesizedComp.StaticLabels).
107107
AddLabelsInMap(synthesizedComp.DynamicLabels).
108108
AddLabelsInMap(constant.GetCompLabels(synthesizedComp.ClusterName, synthesizedComp.Name, synthesizedComp.Labels)).
109-
AddLabels(constant.KBAppReleasePhaseKey, constant.ReleasePhaseStable).
109+
AddLabelsInMap(map[string]string{
110+
constant.AppComponentLabelKey: synthesizedComp.CompDefName,
111+
constant.KBAppServiceVersionKey: synthesizedComp.ServiceVersion,
112+
constant.KBAppReleasePhaseKey: constant.ReleasePhaseStable,
113+
}).
110114
AddAnnotationsInMap(synthesizedComp.StaticAnnotations).
111115
AddAnnotationsInMap(synthesizedComp.DynamicAnnotations)
112116
return corev1.PodTemplateSpec{

0 commit comments

Comments
 (0)