Class: Clusters::Gcp::ProvisionService
- Inherits:
-
Object
- Object
- Clusters::Gcp::ProvisionService
- Defined in:
- app/services/clusters/gcp/provision_service.rb
Constant Summary collapse
- CLOUD_RUN_ADDONS =
%i[http_load_balancing istio_config cloud_run_config].freeze
Instance Attribute Summary collapse
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
Instance Method Summary collapse
Instance Attribute Details
#provider ⇒ Object (readonly)
Returns the value of attribute provider
8 9 10 |
# File 'app/services/clusters/gcp/provision_service.rb', line 8 def provider @provider end |
Instance Method Details
#execute(provider) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'app/services/clusters/gcp/provision_service.rb', line 10 def execute(provider) @provider = provider get_operation_id do |operation_id| if provider.make_creating(operation_id) WaitForClusterCreationWorker.perform_in( Clusters::Gcp::VerifyProvisionStatusService::INITIAL_INTERVAL, provider.cluster_id) else provider.make_errored!("Failed to update provider record; #{provider.errors}") end end end |