summaryrefslogtreecommitdiff
path: root/app/models/clusters/applications/prometheus.rb
diff options
context:
space:
mode:
authorJoão Cunha <j.a.cunha@gmail.com>2019-08-14 20:02:37 +0000
committerMayra Cabrera <mcabrera@gitlab.com>2019-08-14 20:02:37 +0000
commitf8821f828e13f16586630460f177d9de2c3e46e7 (patch)
tree719b110a81e1a1451318b8cfbd979642a0657aa5 /app/models/clusters/applications/prometheus.rb
parent17cf43a301e88aac3c31424d5d1480588797de83 (diff)
downloadgitlab-ce-f8821f828e13f16586630460f177d9de2c3e46e7.tar.gz
Make use of Gitlab::Kubernetes
- refactor Knative and Prometheus
Diffstat (limited to 'app/models/clusters/applications/prometheus.rb')
-rw-r--r--app/models/clusters/applications/prometheus.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/clusters/applications/prometheus.rb b/app/models/clusters/applications/prometheus.rb
index 08e52f32bb3..f31a6b8b50e 100644
--- a/app/models/clusters/applications/prometheus.rb
+++ b/app/models/clusters/applications/prometheus.rb
@@ -106,13 +106,13 @@ module Clusters
def install_knative_metrics
return [] unless cluster.application_knative_available?
- ["kubectl apply -f #{Clusters::Applications::Knative::METRICS_CONFIG}"]
+ [Gitlab::Kubernetes::KubectlCmd.apply_file(Clusters::Applications::Knative::METRICS_CONFIG)]
end
def delete_knative_istio_metrics
return [] unless cluster.application_knative_available?
- ["kubectl delete -f #{Clusters::Applications::Knative::METRICS_CONFIG}"]
+ [Gitlab::Kubernetes::KubectlCmd.delete("-f", Clusters::Applications::Knative::METRICS_CONFIG)]
end
end
end