Skip to content

Commit

Permalink
fix: wrong repeat subject name
Browse files Browse the repository at this point in the history
  • Loading branch information
hysyeah committed Oct 16, 2024
1 parent cfd4f3e commit 8873fb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/workload/nats/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func CreateOrUpdateUser(request *aprv1.MiddlewareRequest, namespace, password st
}

func getAllowPubSubSubjectFromMR(request *aprv1.MiddlewareRequest, namespace string) ([]string, []string, error) {
req := request.Spec.Nats
req := request.Spec.Nats.DeepCopy()
for i, s := range req.Subjects {
req.Subjects[i].Name = MakeRealSubjectName(s.Name, request.Spec.AppNamespace)

Expand Down

0 comments on commit 8873fb9

Please sign in to comment.