smart_proxy_container_gateway 3.4.2 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3d6e568aa93e31c6a60234698cbbc0a86fb61c71179e01692dd7f22193e3e096
4
- data.tar.gz: 2085424bbca11bd822b190eadf4ccb14519397e2b8f1d8fff6182bacbd73c5ca
3
+ metadata.gz: 715c97cadccbfc6c3c06c9aeb85e2b17115d10f045ee042d73eb8c236e669b43
4
+ data.tar.gz: d3b12b7ba4bb3c32afe6fe11926cc749b721f0cbcbe1f1b587ef6bfaf5222c03
5
5
  SHA512:
6
- metadata.gz: e5ebdf2d44f61b518be4115b73e5b6fae57364753c84cd61fc361e3275883b9c07f9c60e28b0e674f968dd14abacd35e1e62c1288d48c7f8dff0d60134fe6c24
7
- data.tar.gz: f4a21694af41c33ba437e2c5e53e6bbed64a0e26d99a9c4ffd56c27b421d16ee8e28d261016d5a36b53d55e3405d376eabe5d1d58344590f7deccf3b041e717f
6
+ metadata.gz: 6b3a173a1d5bacb8962effdd385b2513abea50c367f6b69f316a3e2b6a52d9f251319b6046c2cc7d3499a04abe9114229c537320b1bbb384a852d0cafc66966f
7
+ data.tar.gz: 13c04e0b4e0cc47af5fc53e9321bba2e3ae55cf681194e50bc4a08b8a0495a495985be5081843aed823a383a82d0a29dc8f8cbf46ade1a01d2d4acbd248076b8
@@ -7,7 +7,9 @@ module Proxy
7
7
 
8
8
  default_settings :pulp_endpoint => "https://#{`hostname`.strip}",
9
9
  :katello_registry_path => '/v2/',
10
- :sqlite_timeout => 30_000
10
+ :sqlite_timeout => 30_000,
11
+ :db_max_connections => 30,
12
+ :db_pool_timeout => 30
11
13
 
12
14
  # Load defaults that copy values from SETTINGS. This is done as
13
15
  # programmable settings since SETTINGS isn't initialized during plugin
@@ -36,7 +38,10 @@ module Proxy
36
38
  "sqlite://#{settings[:sqlite_db_path]}?timeout=#{settings[:sqlite_timeout]}"
37
39
  end
38
40
 
39
- Proxy::ContainerGateway::Database.new(connection_string, settings[:sqlite_db_path])
41
+ Proxy::ContainerGateway::Database.new(connection_string,
42
+ settings[:db_max_connections],
43
+ settings[:db_pool_timeout],
44
+ settings[:sqlite_db_path])
40
45
  end)
41
46
  container_instance.singleton_dependency :container_gateway_main_impl, (lambda do
42
47
  Proxy::ContainerGateway::ContainerGatewayMain.new(
@@ -4,9 +4,9 @@ module Proxy
4
4
  class Database
5
5
  attr_reader :connection
6
6
 
7
- def initialize(connection_string, prior_sqlite_db_path = nil)
7
+ def initialize(connection_string, db_max_connections, db_pool_timeout, prior_sqlite_db_path = nil)
8
8
  Sequel.default_timezone = :local
9
- @connection = Sequel.connect(connection_string)
9
+ @connection = Sequel.connect(connection_string, max_connections: db_max_connections, pool_timeout: db_pool_timeout)
10
10
  if connection_string.start_with?('sqlite://')
11
11
  @connection.run("PRAGMA foreign_keys = ON;")
12
12
  @connection.run("PRAGMA journal_mode = wal;")
@@ -1,5 +1,5 @@
1
1
  module Proxy
2
2
  module ContainerGateway
3
- VERSION = '3.4.2'.freeze
3
+ VERSION = '3.5.0'.freeze
4
4
  end
5
5
  end
@@ -9,6 +9,8 @@
9
9
  #:katello_registry_path: '/v2/'
10
10
 
11
11
  #:db_connection_string: postgresql:///container_gateway
12
+ #:db_max_connections: 30
13
+ #:db_pool_timeout: 30
12
14
 
13
15
  # Legacy options
14
16
  #:sqlite_db_path: '/var/lib/foreman-proxy/smart_proxy_container_gateway.db'
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_proxy_container_gateway
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.2
4
+ version: 3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Ballou
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-12-05 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activesupport
@@ -77,8 +76,8 @@ email: ianballou67@gmail.com
77
76
  executables: []
78
77
  extensions: []
79
78
  extra_rdoc_files:
80
- - README.md
81
79
  - LICENSE
80
+ - README.md
82
81
  files:
83
82
  - LICENSE
84
83
  - README.md
@@ -103,7 +102,6 @@ homepage: https://github.com/Katello/smart_proxy_container_gateway
103
102
  licenses:
104
103
  - GPL-3.0-only
105
104
  metadata: {}
106
- post_install_message:
107
105
  rdoc_options: []
108
106
  require_paths:
109
107
  - lib
@@ -118,8 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
116
  - !ruby/object:Gem::Version
119
117
  version: '0'
120
118
  requirements: []
121
- rubygems_version: 3.2.33
122
- signing_key:
119
+ rubygems_version: 3.6.9
123
120
  specification_version: 4
124
121
  summary: Pulp 3 container registry support for Foreman/Katello Smart-Proxy
125
122
  test_files: []