Commit Graph

10 Commits

Author SHA1 Message Date
Thong Kuah 44eec56834 Expose can_uninstall in cluster_status.json
Only prometheus can be uninstalled atm, the rest will be dealt with
later.

Presumption is that new application types will have uninstallation
implmemented at the same time.
2019-04-29 22:55:11 -07:00
João Cunha 70e443014a Use tap command for better readability 2019-03-06 11:45:27 +00:00
João Cunha f8234d9a08 Creates Clusterss::ApplciationsController update endpoint
- Creates new route
- Creates new controller action
- Creates call stack:
  Clusterss::ApplciationsController calls -->
  Clusters::Applications::UpdateService calls -->
  Clusters::Applications::ScheduleUpdateService calls -->
  ClusterUpdateAppWorker calls -->
  Clusters::Applications::PatchService -->
  ClusterWaitForAppInstallationWorker

DRY req params

Adds gcp_cluster:cluster_update_app queue

Schedule_update_service is uneeded

Extract common logic to a parent class (UpdateService will need it)

Introduce new UpdateService

Fix rescue class namespace

Fix RuboCop offenses

Adds BaseService for create and update services

Remove request_handler code duplication

Fixes update command

Move update_command to ApplicationCore so all apps can use it

Adds tests for Knative update_command

Adds specs for PatchService

Raise error if update receives an unistalled app

Adds update_service spec

Fix RuboCop offense

Use subject in favor of go

Adds update endpoint specs for project namespace

Adds update endpoint specs for group namespace
2019-03-05 08:32:51 +02:00
Peter Leitzen 3a3ec6f021
Show available clusters when installed or updated
Before this commit updating Prometheus (e.g. adding alerts) made it
"updated" therefore not installed.
2018-10-16 09:16:43 +02:00
gfyoung 388cb319d5 Enable frozen string for app/models/**/*.rb
Partially addresses #47424.
2018-08-03 01:44:16 -07:00
Dylan Griffith 3b320d675f Simplify retrying for ClusterWaitForIngressIpAddressWorker and style changes
(#42643)
2018-02-23 09:10:14 +11:00
Dylan Griffith 3d3d09fa9d Schedule Ingress IP address fetch from K8s after clusters page load (#42643) 2018-02-20 13:49:35 +11:00
Dylan Griffith ba4114d25f Refactor ingress IP address waiting code (#42643) 2018-02-20 12:47:07 +11:00
Dylan Griffith c1828eaed5 Persist external IP of ingress controller created for GKE (#42643) 2018-02-15 17:01:11 +11:00
Mayra Cabrera 0d4548026f Extend Cluster Applications to allow installation of Prometheus 2017-12-22 17:23:43 +00:00