summaryrefslogtreecommitdiff
path: root/app/models/clusters/applications
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2018-02-12 14:22:15 +1100
committerDylan Griffith <dyl.griffith@gmail.com>2018-02-15 17:01:11 +1100
commitc1828eaed56159998d1eaafdaa135f1b3480549b (patch)
tree8cd903c910454bfdbc2bfdb1b1e9709eaa5583f1 /app/models/clusters/applications
parent5ca692b0b04b4f349fb5a08b9dcc7d87c774934e (diff)
downloadgitlab-ce-c1828eaed56159998d1eaafdaa135f1b3480549b.tar.gz
Persist external IP of ingress controller created for GKE (#42643)
Diffstat (limited to 'app/models/clusters/applications')
-rw-r--r--app/models/clusters/applications/ingress.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/models/clusters/applications/ingress.rb b/app/models/clusters/applications/ingress.rb
index aa5cf97756f..5e9086aecca 100644
--- a/app/models/clusters/applications/ingress.rb
+++ b/app/models/clusters/applications/ingress.rb
@@ -13,6 +13,8 @@ module Clusters
nginx: 1
}
+ IP_ADDRESS_FETCH_RETRIES = 3
+
def chart
'stable/nginx-ingress'
end
@@ -24,6 +26,11 @@ module Clusters
def install_command
Gitlab::Kubernetes::Helm::InstallCommand.new(name, chart: chart, chart_values_file: chart_values_file)
end
+
+ def post_install
+ ClusterWaitForIngressIpAddressWorker.perform_in(
+ ClusterWaitForIngressIpAddressWorker::INTERVAL, name, id, IP_ADDRESS_FETCH_RETRIES)
+ end
end
end
end