diff options
Diffstat (limited to 'app/models/clusters/applications/prometheus.rb')
-rw-r--r-- | app/models/clusters/applications/prometheus.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/models/clusters/applications/prometheus.rb b/app/models/clusters/applications/prometheus.rb index 7a414d1a5bb..5e7fdd55cb6 100644 --- a/app/models/clusters/applications/prometheus.rb +++ b/app/models/clusters/applications/prometheus.rb @@ -112,7 +112,12 @@ module Clusters def delete_knative_istio_metrics return [] unless cluster.application_knative_available? - [Gitlab::Kubernetes::KubectlCmd.delete("-f", Clusters::Applications::Knative::METRICS_CONFIG)] + [ + Gitlab::Kubernetes::KubectlCmd.delete( + "-f", Clusters::Applications::Knative::METRICS_CONFIG, + "--ignore-not-found" + ) + ] end end end |