uffizzi_core 2.4.7 → 2.4.10

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: 45772656b8d1558ce90ec2de1169e2d0f7c2a042158cfc15a8eb6485ac8dbcb5
4
- data.tar.gz: f7a478bfe6e285033c4a47c895b3f0966f8d1dc4ce69f8a440e5c059b823de40
3
+ metadata.gz: 759ad4f993ee7ec5346034b04b2474b35926a2c28e8cd11cbadc6a1dc825d183
4
+ data.tar.gz: 94d2065151cfc402dbe1f8e7ecc4579daf7d3eb1f061981b73e5e623937cb27f
5
5
  SHA512:
6
- metadata.gz: 6587ba4c9f12f21dd0d179bd754a2cb0b75955d57284af7dc12d07cf1c65bc181d65ee7de941a525c86cd340738f29000f2fdfe65dda09fba537d9eb9cf5901f
7
- data.tar.gz: e1733ef55c7ebed0883eeaaa44a398333cd6933671a498d70ee9f98eead0bf46ef2ae30e1a37a80746e9ffcd7a561f56e46f20caba49de4eee4fe78a14a49b21
6
+ metadata.gz: ce73fbd750ecb8ef6b2ad6240d8c68497443b2ff8d0acf2b64d62ab8b5e72cea0ad197456fe4d6bd612c01abee810c6c50c50f4ef881fbdd8dd8825bc5e1814c
7
+ data.tar.gz: 86483be57faca92295d75aba801a75a847bd8f67d03ceb54225131c6c066cf32e33b10ee2e600944c9afd19ff17947211ccd1751b25704478f1f96328b6a5a93
@@ -6,4 +6,6 @@ module UffizziCore::Api::Cli::V1::Projects::ClustersControllerModule
6
6
  def update_show_trial_quota_exceeded_warning; end
7
7
 
8
8
  def check_account_quota; end
9
+
10
+ def check_current_plan; end
9
11
  end
@@ -6,4 +6,6 @@ module UffizziCore::Api::Cli::V1::Projects::DeploymentsControllerModule
6
6
  def check_account_quota; end
7
7
 
8
8
  def update_show_trial_quota_exceeded_warning; end
9
+
10
+ def check_current_plan; end
9
11
  end
@@ -5,6 +5,7 @@ class UffizziCore::Api::Cli::V1::Projects::ClustersController < UffizziCore::Api
5
5
 
6
6
  before_action :authorize_uffizzi_core_api_cli_v1_projects_clusters
7
7
  before_action :check_account_quota, only: [:create]
8
+ before_action :check_current_plan
8
9
  after_action :update_show_trial_quota_exceeded_warning, only: [:create, :destroy]
9
10
 
10
11
  def index
@@ -7,6 +7,7 @@ class UffizziCore::Api::Cli::V1::Projects::DeploymentsController < UffizziCore::
7
7
 
8
8
  before_action :authorize_uffizzi_core_api_cli_v1_projects_deployments
9
9
  before_action :check_account_quota, only: :create
10
+ before_action :check_current_plan
10
11
  after_action :update_show_trial_quota_exceeded_warning, only: :destroy
11
12
 
12
13
  # Get a list of active deployements for a project
@@ -4,7 +4,7 @@ class UffizziCore::Controller::CreateCluster::ClusterSerializer < UffizziCore::B
4
4
  include UffizziCore::DependencyInjectionConcern
5
5
  include_module_if_exists('UffizziCore::Controller::CreateCluster::ClusterSerializerModule')
6
6
 
7
- attributes :name, :manifest, :base_ingress_host, :distro, :image
7
+ attributes :name, :manifest, :base_ingress_host, :distro, :image, :account_id
8
8
 
9
9
  def base_ingress_host
10
10
  managed_dns_zone = controller_settings_service.vcluster_settings_by_vcluster(object).managed_dns_zone
@@ -20,6 +20,10 @@ class UffizziCore::Controller::CreateCluster::ClusterSerializer < UffizziCore::B
20
20
  kubernetes_distribution.distro
21
21
  end
22
22
 
23
+ def account_id
24
+ object.project.account_id
25
+ end
26
+
23
27
  private
24
28
 
25
29
  def kubernetes_distribution
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UffizziCore
4
- VERSION = '2.4.7'
4
+ VERSION = '2.4.10'
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.4.7
4
+ version: 2.4.10
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: 2024-03-15 00:00:00.000000000 Z
12
+ date: 2024-08-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aasm