Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13400 from ycliuhw/enhance-ghcr
#13400 This PR allows Github Container Registry using username and password to be authenticated for - pulling `jujud-operator`, `juju-db` and `charm-base` images from k8s controllers, application operators, and sidecar pods; - fetching available controller versions to upgrade for `upgrade-controller` command; Tested registries are(the rest of the registries will be implemented and tested in the following PRs): | Registry | Public | Private | | --- | --- | --- | | azurecr.io | ❌ | ✅ | | docker.io | ✅ | ✅ | | ecr | ❌ | ✅ | | gcr.io | ✅ | ✅ | | ghcr.io | ❌ | ✅ | | registry.gitlab.com | ❌ | ✅ | | quay.io | ✅ | ✅ | ## Checklist - [ ] ~Requires a [pylibjuju](https://github.com/juju/python-libjuju) change~ - [ ] ~Added [integration tests](https://github.com/juju/juju/tree/develop/tests) for the PR~ - [ ] ~Added or updated [doc.go](https://discourse.jujucharms.com/t/readme-in-packages/451) related to packages changed~ - [x] Comments answer the question of why design decisions were made ## QA steps ```console $ cat credential.json { "auth": "xxx==", "repository": "ghcr.io/jujuqa" } # or $ cat credential.json { "repository": "ghcr.io/jujuqa", "password": "ghp_xxxxxx" } $ juju bootstrap microk8s k1 --config caas-image-repo="'$(cat credential.json)'" ``` ## Documentation changes https://discourse.charmhub.io/t/initial-private-registry-support/5079 ## Bug reference https://bugs.launchpad.net/juju/+bug/1935830 https://bugs.launchpad.net/juju/+bug/1940820 https://bugs.launchpad.net/juju/+bug/1935953
- Loading branch information
Showing
3 changed files
with
86 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters