summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2018-11-15 14:13:32 +0000
committerDylan Griffith <dyl.griffith@gmail.com>2018-11-16 10:57:20 +0000
commita71b3f6a7c13fdc0978a1e9d0151fe15399b8b59 (patch)
tree87f00f405d5daea672b11efe06c2ab119ccddea6 /app
parentfe1469e12f7a1895cbf534f9ab17fd32af0e954c (diff)
downloadgitlab-ce-a71b3f6a7c13fdc0978a1e9d0151fe15399b8b59.tar.gz
Extract Helm::ClientCommand for shared commands
Diffstat (limited to 'app')
-rw-r--r--app/models/clusters/concerns/application_status.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/clusters/concerns/application_status.rb b/app/models/clusters/concerns/application_status.rb
index 712dc901795..0e74cce29b7 100644
--- a/app/models/clusters/concerns/application_status.rb
+++ b/app/models/clusters/concerns/application_status.rb
@@ -66,6 +66,9 @@ module Clusters
end
before_transition any => [:installed, :updated] do |app_status, _|
+ # When installing any application we are also performing an update
+ # of tiller (see Gitlab::Kubernetes::Helm::ClientCommand) so
+ # therefore we need to reflect that in the database.
app_status.cluster.application_helm.update!(version: Gitlab::Kubernetes::Helm::HELM_VERSION)
end
end