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

Registries V2 #4026

Merged
merged 46 commits into from
Sep 21, 2023
Merged

Registries V2 #4026

merged 46 commits into from
Sep 21, 2023

Conversation

alexyaang
Copy link
Member

@alexyaang alexyaang commented Aug 8, 2023

TODO: (in no particular order)

Existing commands that needs to be re-written

  • Make all generic registries commands work
    • connectRegistry
    • copyRemoteImageDigest
    • copyRemoteFullTag
    • deleteRemoteImage
    • deployImageToAzure
    • deployImageToAca
    • disconnectRegistryProvider
    • registryHelp
    • logInToDockerCli
    • logOutOfDockerCli
    • pullImageFromRepository
    • pullRepository
    • pushImage
    • reconnectRegistry

  • MakedockerHub commands work
    • openDockerHubInBrowser

  • Make all Azure commands work
    • buildImageInAzure
    • createAzureRegistry
    • deleteAzureRegistry
    • deleteAzureRepository
    • openInAzurePortal
    • untagAzureImage
    • viewAzureProperties


New commands

  • Make/Confirm these commands work on Github Registries
    • pushImage
    • copyRemoteFullTag
    • copyRemoteImageDigest

User Experience

  • Make registryExperience() better so that users only get prompted if a the command is possible on a certain registry provider
  • Add paging in extensibility package
  • In AzureRDP, add a "fire soon" analogue
  • Simplify context values Registries V2 #4026 (comment)
  • Recognize CancellationError as a cancellation error in azext-utils package
  • Release azext-utils package v-2.1.1

External things:

* saving progress

* added context values for copy full tag

* added back copy remote image digest

* comment out commands that are not implemented yet

* added disconnext registry function back

* small fixes to adjust to new changes
* adjusted scheduleRunReuqest to work with new registries tree

* delete azure repository command implementation

* actually added back delete azure repository

* added back delete Azure Registry command

* changed registry tree util file name to be more general

* added openInAzurePortalCommand
@alexyaang alexyaang changed the title Registries V2 (#4021) Registries V2 Aug 9, 2023
* adjusted scheduleRunReuqest to work with new registries tree

* delete azure repository command implementation

* actually added back delete azure repository

* added back delete Azure Registry command

* changed registry tree util file name to be more general

* added openInAzurePortalCommand

* added back create azure registry command

* move createAzureClient to azureUtils
@alexyaang alexyaang mentioned this pull request Aug 10, 2023
4 tasks
* adjusted scheduleRunReuqest to work with new registries tree

* delete azure repository command implementation

* actually added back delete azure repository

* added back delete Azure Registry command

* changed registry tree util file name to be more general

* added openInAzurePortalCommand

* added back create azure registry command

* move createAzureClient to azureUtils

* added viewAzureProperties command back (partially)

* small tweak to make build image in azure work

* added untag azure image commad

* added logout of docker cli command

* add case sensitivity operator to be consistent

* Update src/tree/registries/Azure/AzureRegistryDataProvider.ts

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

* added void

* removed symbol as it already exists

---------

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>
* added view docker hub item in browser command

* updated npm package

* Added More Commands Back (#4031)

* adjusted scheduleRunReuqest to work with new registries tree

* delete azure repository command implementation

* actually added back delete azure repository

* added back delete Azure Registry command

* changed registry tree util file name to be more general

* added openInAzurePortalCommand

* added back create azure registry command

* move createAzureClient to azureUtils

* added viewAzureProperties command back (partially)

* small tweak to make build image in azure work

* added untag azure image commad

* added logout of docker cli command

* add case sensitivity operator to be consistent

* Update src/tree/registries/Azure/AzureRegistryDataProvider.ts

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

* added void

* removed symbol as it already exists

---------

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

* minor tweak to avoid index out of bounds

* use built in methods to determine the type of item

---------

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>
* make pushImage work

* added getAllRegistries command

* added getLoginInformation()

* account for cases where registry in undefined

* added filtering to make get all registries more optima

* added logic to filter github repositories
* added back basic implementation of deploy ACA

* saving progress

* added step for selecting subscriptions

* small tweaks

* progress on deploy image to azure app service

* improved azure subscription selection experience

* actually made deploy image to AAS work

* remove accidetal change to settings.json

* fix small mistake

* fixed more mistakes

* fix more mistakes

* fixed even more mistakes...
* added logic for copy remote imgage digest

* added back delete image

* refined logic for delete image

* fixed pushImage

* reverted changes to registryExperience

* tag logic for GitHub

* be able to debug github image

* added back skipIfOne flag
* adjusted context values

* added untag Image

* remove github option for delete tag

* commtag -> v2tag

* slighty changed context values
* added remove tracked registry command

* added command to add generic v2 registry

* Update package.nls.json

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

* Update package.nls.json

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>

---------

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>
* fixed genericV2 pull image bug

* improved utils to use outside methods

* enable copyImageDigest for all v2 registries

* removed run task & did TODOs

* did TODOs
alexyaang

This comment was marked as outdated.

* added fire soon

* clear time out
* change firesoon to take callback function

* use RDP label when determining type of registry
alexyaang and others added 6 commits September 19, 2023 09:47
* added implementation

* added comments

* use RegistryQuickPickStep for everything

* fix regex

* fix viewproperties context value package json

* remove unnecessary method

* added back necessary logic

* Commit current progress

* Commit current progress

* adjust package.json

* fix azure typo

* preserve existing additional context value

* make regex more robust

---------

Co-authored-by: Brandon Waterloo [MSFT] <36966225+bwateratmsft@users.noreply.github.com>
@alexyaang
Copy link
Member Author

alexyaang commented Sep 20, 2023

I'm going to test the functionality one more time before we merge to main:

  • Make all generic registries commands work
    • connectRegistry
    • copyRemoteImageDigest
    • copyRemoteFullTag
    • deleteRemoteImage
    • deployImageToAzure
    • deployImageToAca
    • disconnectRegistryProvider
    • registryHelp
    • logInToDockerCli
    • logOutOfDockerCli
    • pullImageFromRepository
    • pullRepository
    • pushImage
    • reconnectRegistry

  • MakedockerHub commands work
    • openDockerHubInBrowser

  • Make all Azure commands work
    • buildImageInAzure
    • createAzureRegistry
    • deleteAzureRegistry
    • deleteAzureRepository
    • openInAzurePortal
    • untagAzureImage
    • viewAzureProperties

  • Generic V2 Registries
    • add registry
    • remove tracked registry

@alexyaang alexyaang merged commit f5e45c6 into main Sep 21, 2023
2 checks passed
@alexyaang alexyaang deleted the yangalex/registries branch September 21, 2023 13:16
@microsoft microsoft locked and limited conversation to collaborators Nov 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use shared auth package for azure auth instead of Azure Account extension Support third-party registries
2 participants