-
Notifications
You must be signed in to change notification settings - Fork 12
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
base: mwf/gentle-amber
Are you sure you want to change the base?
Conversation
@@ -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, |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
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
…e-azurecontainerapps into mwf/grim-sapphire
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