summaryrefslogtreecommitdiff
path: root/app/models/clusters/applications
diff options
context:
space:
mode:
authorAmit Rathi <amit@hypertrack.io>2018-11-23 01:41:37 +0530
committerAmit Rathi <amit@hypertrack.io>2018-11-23 01:41:37 +0530
commit09c3c95d2db02cbaf199e14ee3926c4135983003 (patch)
treec4a9baec7fd67630474d10cc9fecf497ece663c3 /app/models/clusters/applications
parent16248dc895b0abd2e5304e9092e0291a8b891ced (diff)
downloadgitlab-ce-09c3c95d2db02cbaf199e14ee3926c4135983003.tar.gz
cert manager changes based on review comments
Diffstat (limited to 'app/models/clusters/applications')
-rw-r--r--app/models/clusters/applications/cert_manager.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/models/clusters/applications/cert_manager.rb b/app/models/clusters/applications/cert_manager.rb
index 922f4a880f0..5147819b86e 100644
--- a/app/models/clusters/applications/cert_manager.rb
+++ b/app/models/clusters/applications/cert_manager.rb
@@ -39,10 +39,14 @@ module Clusters
def cluster_issuer_file
{
- 'cluster_issuer.yaml': cluster_issuer_content.deep_merge(cluster_issue_overlay)
+ 'cluster_issuer.yaml': cluster_issuer_yaml_content
}
end
+ def cluster_issuer_yaml_content
+ YAML.dump(cluster_issuer_content.deep_merge(cluster_issue_overlay))
+ end
+
def cluster_issuer_content
YAML.load_file(cluster_issuer_file_path)
end