microsoft / microsoft/aspire

WithPgAdmin(c => c.WithLifetime(...)) not resulting in persistent PgAdmin container.

Open
#6,326 5 comments 6 reactions 0 assignees View on GitHub
area-integrations postgres
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Describe the bug

This does not appear to result in a persistent pgadmin container:

```csharp
var pg = builder.AddPostgres("pg")
.WithLifetime(ContainerLifetime.Persistent)
.WithDataVolume()
.WithPgAdmin(c => {
c.WithLifetime(ContainerLifetime.Persistent);
});
```

### Expected Behavior

_No response_

### Steps To Reproduce

_No response_

### Exceptions (if any)

_No response_

### .NET Version info

_No response_

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.