diff options
author | Amit Rathi <amit.juschill@gmail.com> | 2018-12-07 19:10:03 +0300 |
---|---|---|
committer | Amit Rathi <amit.juschill@gmail.com> | 2018-12-07 19:10:03 +0300 |
commit | 1cdcf4026529a26480d801e2b8417ecaba627b9e (patch) | |
tree | a9136a106091d5beba8fd76ea4b0b8ce05a07008 /app/models/clusters | |
parent | a445aa0a9267f191fab1c46d438b42fbec549da5 (diff) |
Allows user to override default issuer email for cert manager
Diffstat (limited to 'app/models/clusters')
-rw-r--r-- | app/models/clusters/applications/cert_manager.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/clusters/applications/cert_manager.rb b/app/models/clusters/applications/cert_manager.rb index 077e2bda143..74ef7c7e145 100644 --- a/app/models/clusters/applications/cert_manager.rb +++ b/app/models/clusters/applications/cert_manager.rb @@ -14,6 +14,10 @@ module Clusters default_value_for :version, VERSION + default_value_for :email do |cert_manager| + cert_manager.cluster&.user&.email + end + validates :email, presence: true def chart |