Skip to content

Commit ad0faf4

Browse files
committed
feat: add relationship for surrealist UI resource
1 parent 2624c5b commit ad0faf4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/CommunityToolkit.Aspire.Hosting.SurrealDb/SurrealDbBuilderExtensions.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ public static IResourceBuilder<T> WithSurrealist<T>(
299299
.WithImageRegistry(SurrealDbContainerImageTags.SurrealistRegistry)
300300
.WithHttpEndpoint(targetPort: 8080, name: "http")
301301
.WithBindMount(Path.GetTempFileName(), CONNECTIONS_FILE_PATH)
302+
.WithRelationship(builder.Resource, "Surrealist")
302303
.ExcludeFromManifest();
303304

304305
builder.ApplicationBuilder.Eventing.Subscribe<AfterEndpointsAllocatedEvent>( (e, ct) =>
@@ -398,9 +399,6 @@ public static IResourceBuilder<T> WithSurrealist<T>(
398399

399400
configureContainer?.Invoke(surrealistContainerBuilder);
400401

401-
// TODO : missing
402-
//surrealistContainerBuilder.WithRelationship(builder.Resource, "Surrealist");
403-
404402
return builder;
405403
}
406404
}

0 commit comments

Comments
 (0)