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

Add backward compatibility to API in support of the new managed identity features #816

Open
wants to merge 4 commits into
base: mwf/gentle-amber
Choose a base branch
from

Conversation

MicroFish91
Copy link
Contributor

@MicroFish91 MicroFish91 commented Dec 27, 2024

Partially addresses #719

Updates the api consumed by functions so that it keeps working in face of all the new features we've added related to managed identities

@MicroFish91 MicroFish91 changed the base branch from main to mwf/gentle-amber December 27, 2024 00:05
@MicroFish91 MicroFish91 marked this pull request as ready for review December 27, 2024 00:37
@MicroFish91 MicroFish91 requested a review from a team as a code owner December 27, 2024 00:37
@@ -38,12 +48,14 @@ export async function deployWorkspaceProjectApi(deployWorkspaceProjectOptions: a
rootFolder,
srcPath: srcPath ? Uri.file(srcPath).fsPath : undefined,
dockerfilePath: dockerfilePath ? Uri.file(dockerfilePath).fsPath : undefined,
newRegistryCredentialType: RegistryCredentialType.DockerLogin,
Copy link
Contributor Author

@MicroFish91 MicroFish91 Dec 27, 2024

Choose a reason for hiding this comment

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

We need additional discussions about whether we want to default to managed identity here in the future. For now, I'm keeping it as Docker Login to preserve existing behavior.

@@ -9,7 +9,7 @@ import type * as api from "./vscode-azurecontainerapps.api";

export function getAzureContainerAppsApiProvider(): apiUtils.AzureExtensionApiProvider {
return createApiProvider([<api.AzureContainerAppsExtensionApi>{
// Todo: Change this to 0.0.2 later. 0.0.2 is backwards compatible anyway so this change should be fine either way.
// Todo: Change this to 0.0.3 later. 0.0.3 is backwards compatible anyway so this change should be fine either way.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

When we eventually add managed identity support for the api, I will bump the major version

shouldSaveDeploySettings: !!shouldSaveDeploySettings,
});

const deployWorkspaceProjectContext: DeployWorkspaceProjectContext = await deployWorkspaceProjectInternal(deployWorkspaceProjectInternalContext, {
suppressActivity: true,
suppressConfirmation,
suppressRegistryPrompt: suppressRegistryPrompt ?? true,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This PR introduced the prompt, so add ability to suppress and default it to true to preserve existing behavior

@MicroFish91 MicroFish91 marked this pull request as draft December 27, 2024 00:44
@MicroFish91 MicroFish91 marked this pull request as ready for review December 27, 2024 01:01
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.

1 participant