diff --git a/api/v1/runtimecomponent_types.go b/api/v1/runtimecomponent_types.go index ba78042d..1859cea1 100644 --- a/api/v1/runtimecomponent_types.go +++ b/api/v1/runtimecomponent_types.go @@ -1136,7 +1136,9 @@ func (cr *RuntimeComponent) Initialize() { } if cr.Labels != nil { - cr.Labels["app.kubernetes.io/part-of"] = cr.Spec.ApplicationName + if _, found := cr.Labels["app.kubernetes.io/part-of"]; !found { + cr.Labels["app.kubernetes.io/part-of"] = cr.Spec.ApplicationName + } } // This is to handle when there is no service in the CR