Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/clusters/applications/ingress.rb')
-rw-r--r--app/models/clusters/applications/ingress.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/models/clusters/applications/ingress.rb b/app/models/clusters/applications/ingress.rb
index 27550616002..034b178d67d 100644
--- a/app/models/clusters/applications/ingress.rb
+++ b/app/models/clusters/applications/ingress.rb
@@ -17,12 +17,11 @@ module Clusters
include AfterCommitQueue
include UsageStatistics
- default_value_for :ingress_type, :nginx
- default_value_for :version, VERSION
+ attribute :version, default: VERSION
enum ingress_type: {
nginx: 1
- }
+ }, _default: :nginx
FETCH_IP_ADDRESS_DELAY = 30.seconds