Skip to content

Commit

Permalink
Fixes #37668 - enable container push by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ianballou committed Jul 19, 2024
1 parent 00aa432 commit 4d86e13
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ def registry_authorize

def container_push_prop_validation(props = nil)
# Handle validation and repo creation for container pushes before talking to pulp
return false unless confirm_push_settings
props = parse_blob_push_props if props.nil?
return false unless check_blob_push_field_syntax(props)

Expand Down Expand Up @@ -774,15 +773,6 @@ def confirm_settings
:locals => { :message => "Registry not configured" })
end

def confirm_push_settings
return true if SETTINGS.dig(:katello, :container_image_registry, :allow_push)
render_podman_error(
"UNSUPPORTED",
_("Registry push is not enabled. To enable, add ':katello:'->':container_image_registry:'->':allow_push: true' in the katello settings file."),
:unprocessable_entity
)
end

def request_url
request.protocol + request.host_with_port
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def setup_permissions
setup_permissions
setup_controller_defaults_api

SETTINGS[:katello][:container_image_registry] = {crane_url: 'https://localhost:5000', crane_ca_cert_file: '/etc/pki/katello/certs/katello-default-ca.crt', allow_push: true}
File.delete("#{Rails.root}/tmp/manifest.json") if File.exist?("#{Rails.root}/tmp/manifest.json")
end

Expand Down

0 comments on commit 4d86e13

Please sign in to comment.