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/registry oauth2 #13296
Fix/registry oauth2 #13296
Conversation
…he new registry API;
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.
Looks promising
…upgrade-controller command;
81f9c61
to
b444778
Compare
64de18f
to
7314bac
Compare
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.
One change I think should be that DecideBaseURL
is an internal detail of initialising each repo, not exposed as a separate function.
return c.repoDetails.ServerAddress == "" || strings.Contains(c.repoDetails.ServerAddress, "docker.io") | ||
} | ||
|
||
func (c *dockerhub) DecideBaseURL() error { |
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.
DecideBaseURL
seems like it should be called something like Initialise
or something.
Actually, the functionality here seems to pertain to the repoDetails
value - should this be an internal method used to set up things whenever the repoDetails
is set, ie should this be called from newDockerHub
and not exposed as a separate method?
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.
DecideBaseURL is exported for generating mocks and it's one of the methods called in initClient
.
So DecideBaseURL is just one of the steps of Initialise.
I will move the provider integration code to internal
sub-package in the following PR.
7314bac
to
56e7335
Compare
!!build!! |
d9ce246
to
8b2b12b
Compare
|
3 similar comments
|
|
|
#13329 This PR forward ports 2.9 into develop. The following PRs are included in this port: - Merge pull request #13324 from achilleasa/2.9-add-ovs-integration-test - Merge pull request #13328 from manadart/2.9-assess-series-upgrade - Merge pull request #13327 from wallyworld/azure-tests-fix - Merge pull request #13325 from SimonRichardson/raft-worker-errors - Merge pull request #13274 from SimonRichardson/lxd-network-devices-config-host-name - Merge pull request #13323 from jujubot/increment-to-2.9.15 - Merge pull request #13321 from wallyworld/more-secret-metadata - Merge pull request #13319 from manadart/2.9-bridge-policy - Merge pull request #13320 from SimonRichardson/revert-lxd-changes - Merge pull request #13194 from juanmanuel-tirado/patch-1 - Merge pull request #13318 from hpidcock/fix-1942948 - Merge pull request #13314 from simondeziel/snap-ack - Merge pull request #13297 from achilleasa/2.9-allow-empty-openvswitch-blocks-in-netplan-config - Merge pull request #13317 from jujubot/increment-to-2.9.14 - Merge pull request #13316 from hpidcock/fix-1942948 - Merge pull request #13296 from ycliuhw/fix/registry-oauth2 - Merge pull request #13311 from wallyworld/unitagent-missing-charm - Merge pull request #13315 from wallyworld/lxd-not-found-fix - Merge pull request #13221 from juanmanuel-tirado/status_watch_flag - Merge pull request #13312 from wallyworld/remove-txnwatcher-started - Merge pull request #13309 from kot0dama/fix-instrospection-posix-shell-2.9 The following files had merge conflicts that had to be resolved (please double-check the changes in last commit): - caas/kubernetes/provider/bootstrap_test.go - feature/flags.go - scripts/win-installer/setup.iss - snap/snapcraft.yaml - state/pool.go - version/version.go - worker/uniter/relation/state_test.go
This PR introduces OCI Registry HTTP API V2 authorization via OAuth for
jujud-operator
,juju-db
andcharm-base
images from k8s controllers, application operators, and sidecar pods;upgrade-controller
command;The tested registries are(the rest of registries will be implemented and tested in following PRs):
Checklist
Requires a pylibjuju changeAdded integration tests for the PRAdded or updated doc.go related to packages changedQA steps
Documentation changes
Yes
Bug reference
https://bugs.launchpad.net/juju/+bug/1935830
https://bugs.launchpad.net/juju/+bug/1940820
https://bugs.launchpad.net/juju/+bug/1935953