diff --git a/api/v1/webspherelibertyapplication_types.go b/api/v1/webspherelibertyapplication_types.go index 9cb0876e..4020d869 100644 --- a/api/v1/webspherelibertyapplication_types.go +++ b/api/v1/webspherelibertyapplication_types.go @@ -1508,7 +1508,9 @@ func (cr *WebSphereLibertyApplication) 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