-
Notifications
You must be signed in to change notification settings - Fork 297
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CP] Katello 4.0.1.2 CP for container gateway fixes (#9411)
* Fixes #32233 - Katello should send user-repo info to container gateway (#9267) (cherry picked from commit 628ee7e) Conflicts: app/controllers/katello/api/registry/registry_proxies_controller.rb app/models/katello/authorization/content_view.rb app/models/katello/concerns/smart_proxy_extensions.rb * Bump version to 4.0.1.2 Pins foreman-tasks gem (#4) Pin foreman-tasks related gems (#5)
- Loading branch information
Showing
11 changed files
with
142 additions
and
23 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Katello | ||
VERSION = "4.0.1.1".freeze | ||
VERSION = "4.0.1.2".freeze | ||
end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,32 @@ | ||
module ProxyAPI | ||
class ContainerGateway < ::ProxyAPI::Resource | ||
def initialize(args) | ||
@url = args[:url] + "/container_gateway/v2" | ||
@url = args[:url] + "/container_gateway" | ||
super args | ||
end | ||
|
||
def unauthenticated_repository_list(args = {}) | ||
# get '/v2/unauthenticated_repository_list/?' | ||
# put '/v2/unauthenticated_repository_list/?' | ||
@url += "/unauthenticated_repository_list" | ||
if args.empty? | ||
@unauthenticated_repo_list = parse get | ||
else | ||
parse put(args) | ||
end | ||
def repository_list(args) | ||
# put '/v2/repository_list/?' | ||
@url += "/repository_list" | ||
parse put(args) | ||
rescue => e | ||
raise ::ProxyAPI::ProxyException.new(url, e, N_("Unable to perform unauthenticated repository list operation")) | ||
raise ::ProxyAPI::ProxyException.new(url, e, N_("Unable to update the repository list")) | ||
end | ||
|
||
def user_repository_mapping(args) | ||
# put '/v2/user_repository_mapping/?' | ||
@url += "/user_repository_mapping" | ||
parse put(args) | ||
rescue => e | ||
raise ::ProxyAPI::ProxyException.new(url, e, N_("Unable to update the user-repository mapping")) | ||
end | ||
|
||
def users | ||
# get '/v2/users/?' | ||
@url += "/users" | ||
@users = parse get | ||
rescue => e | ||
raise ::ProxyAPI::ProxyException.new(url, e, N_("Unable to get users")) | ||
end | ||
end | ||
end |
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