Skip to content

Commit

Permalink
fix vela conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
刘宁 committed Apr 26, 2024
1 parent 7261f91 commit 39568af
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions domain/handler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ func CreateOrUpdate(ctx context.Context, obj runtimeObj) error {
"namespace", obj.GetNamespace(), "name", obj.GetName(), "error", err)
return err
}
if _, ok := obj.GetLabels()[entity.KubevelaAppNameLabel]; ok {
return nil
}
err := k8sclient.Update(ctx, obj)
log.Info("update obj", "kind", kind,
"namespace", obj.GetNamespace(), "name", obj.GetName(), "error", err)
Expand Down

0 comments on commit 39568af

Please sign in to comment.