Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: do not remove registries when podman extension is stopping #3136

Merged
merged 1 commit into from Jul 7, 2023

Conversation

benoitf
Copy link
Collaborator

@benoitf benoitf commented Jul 6, 2023

What does this PR do?

do not remove registries when podman extension is stopping

Screenshot/screencast of this PR

N/A

What issues does this PR fix or reference?

fixes #3135

How to test this PR?

Use the issue test case

@benoitf benoitf requested a review from a team as a code owner July 6, 2023 19:37
@benoitf benoitf requested review from jeffmaury, cdrage and dgolovin and removed request for a team July 6, 2023 19:37
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
@benoitf
Copy link
Collaborator Author

benoitf commented Jul 7, 2023

Applying auto-merge

@@ -77,7 +77,8 @@ export class RegistrySetup {
// For each registry in the file that is not in the inMemory, add it
const toBeAdded = inFileRegistries.filter(fileRegistry => !this.localRegistries.has(fileRegistry.serverUrl));
toBeAdded.forEach(registry => {
extensionContext.subscriptions.push(extensionApi.registry.registerRegistry(registry));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is how I temporary fixed it in my local codebase.

@benoitf benoitf merged commit 6f1e8fb into containers:main Jul 7, 2023
8 checks passed
@podman-desktop-bot podman-desktop-bot added this to the 1.2.0 milestone Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configured suggested registry is removed on exit from podman-desktop
4 participants