Skip to content

Commit

Permalink
Merge pull request #514 from UffizziCloud/feature/1307-check-for-busi…
Browse files Browse the repository at this point in the history
…ness-plan-before-uffizzi-install

Feature/1307 check for business plan before uffizzi install
  • Loading branch information
moklidia authored Aug 7, 2024
2 parents cfb53e2 + 164a833 commit e8cec6c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ module UffizziCore::Api::Cli::V1::Projects::ClustersControllerModule
def update_show_trial_quota_exceeded_warning; end

def check_account_quota; end

def check_current_plan; end
end
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ module UffizziCore::Api::Cli::V1::Projects::DeploymentsControllerModule
def check_account_quota; end

def update_show_trial_quota_exceeded_warning; end

def check_current_plan; end
end
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class UffizziCore::Api::Cli::V1::Projects::ClustersController < UffizziCore::Api

before_action :authorize_uffizzi_core_api_cli_v1_projects_clusters
before_action :check_account_quota, only: [:create]
before_action :check_current_plan
after_action :update_show_trial_quota_exceeded_warning, only: [:create, :destroy]

def index
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class UffizziCore::Api::Cli::V1::Projects::DeploymentsController < UffizziCore::

before_action :authorize_uffizzi_core_api_cli_v1_projects_deployments
before_action :check_account_quota, only: :create
before_action :check_current_plan
after_action :update_show_trial_quota_exceeded_warning, only: :destroy

# Get a list of active deployements for a project
Expand Down

0 comments on commit e8cec6c

Please sign in to comment.