uffizzi_core 2.3.0 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 065d0c7c4ecaca71f48ed176e3a433a379908220e7923be4604165d2d6760fe7
4
- data.tar.gz: e79876e64df2b71896f0a34e40a7c1caf06b788914171a40e35b5feda33674d2
3
+ metadata.gz: 3850d2cd7d36ca24933339885fe25fb104362e70a23c0b5145ab4711d8ce7ac9
4
+ data.tar.gz: 4872ba53b94906dc638b2a34875cd59876b074a8d815754b662320bf3119b87a
5
5
  SHA512:
6
- metadata.gz: 1415234d2f29321aae904e5467a41108b44f5beb8291e6510a60dc58f72597a535e00a0a1a98d6208844717b7ca0b2c53fe6560a163983583a7ab60cc382d4dc
7
- data.tar.gz: c1aea1bd41f011ad430ddd2c5af76d48518a2e4f099cb33615a4f81462a6cfee7777eeb80fef4607263cc403ed93580142db0166779002aa8272910da3d39f0d
6
+ metadata.gz: d54a01d42754e16b6d351aff2eb87a7dbcccd65344c3e61b3ff21f4a299755604aa330cfdfa7029038747b465c35d8694523e3f85c5f93763860565df76f0b9e
7
+ data.tar.gz: ad6654bb2bf294fa609ef61de08130ffba6071fcf600faad72c274093df1048f7adb16e53a49e552cbc94c5b3cf0b70ee40bf46188a66eda4518e57d693bb1db
@@ -9,6 +9,7 @@ module UffizziCore::Concerns::Models::Deployment
9
9
  include UffizziCore::StateMachineConcern
10
10
  include UffizziCore::DeploymentRepo
11
11
  extend Enumerize
12
+ include UffizziCore::DependencyInjectionConcern
12
13
 
13
14
  self.table_name = UffizziCore.table_names[:deployments]
14
15
 
@@ -71,7 +72,8 @@ module UffizziCore::Concerns::Models::Deployment
71
72
  end
72
73
 
73
74
  def preview_url
74
- "#{subdomain}.#{Settings.app.managed_dns_zone}"
75
+ managed_dns_zone = controller_settings_service.deployment(self).managed_dns_zone
76
+ "#{subdomain}.#{managed_dns_zone}"
75
77
  end
76
78
 
77
79
  def namespace
@@ -145,7 +145,7 @@ class UffizziCore::ControllerService
145
145
  def controller_client(deployable)
146
146
  settings = case deployable
147
147
  when UffizziCore::Deployment
148
- Settings.controller
148
+ controller_settings_service.deployment(deployable)
149
149
  when UffizziCore::Cluster
150
150
  controller_settings_service.vcluster(deployable)
151
151
  else
@@ -5,5 +5,11 @@ class UffizziCore::ControllerSettingsService
5
5
  def vcluster(_cluster)
6
6
  Settings.vcluster_controller
7
7
  end
8
+
9
+ def deployment(_cluster)
10
+ Settings.controller.deep_dup.tap do |s|
11
+ s.managed_dns_zone = Settings.app.managed_dns_zone
12
+ end
13
+ end
8
14
  end
9
15
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UffizziCore
4
- VERSION = '2.3.0'
4
+ VERSION = '2.3.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uffizzi_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Thurman
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-10-30 00:00:00.000000000 Z
12
+ date: 2023-11-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aasm