diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-11-14 15:38:08 +0300 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-11-16 13:22:40 +0300 |
commit | fe1469e12f7a1895cbf534f9ab17fd32af0e954c (patch) | |
tree | 223011a04778a848c7d38e33384fe6b664c3c3b6 /app | |
parent | f5e3ce5ed612c9b247e362ed7c667557331e5bfd (diff) |
Upgrade helm to 2.11.0 and upgrade on every install
Diffstat (limited to 'app')
-rw-r--r-- | app/models/clusters/concerns/application_status.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/clusters/concerns/application_status.rb b/app/models/clusters/concerns/application_status.rb index 93bdf9c223d..712dc901795 100644 --- a/app/models/clusters/concerns/application_status.rb +++ b/app/models/clusters/concerns/application_status.rb @@ -64,6 +64,10 @@ module Clusters status_reason = transition.args.first app_status.status_reason = status_reason if status_reason end + + before_transition any => [:installed, :updated] do |app_status, _| + app_status.cluster.application_helm.update!(version: Gitlab::Kubernetes::Helm::HELM_VERSION) + end end end |