File tree 1 file changed +2
-4
lines changed 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -251,15 +251,13 @@ func HasPrometheusConfigFile(app *v1beta2.SparkApplication) bool {
251
251
252
252
// HasPrometheusConfig returns if Prometheus monitoring defines metricsProperties in the spec.
253
253
func HasMetricsProperties (app * v1beta2.SparkApplication ) bool {
254
- return PrometheusMonitoringEnabled (app ) &&
255
- app .Spec .Monitoring .MetricsProperties != nil &&
254
+ return app .Spec .Monitoring .MetricsProperties != nil &&
256
255
* app .Spec .Monitoring .MetricsProperties != ""
257
256
}
258
257
259
258
// HasPrometheusConfigFile returns if Monitoring defines metricsPropertiesFile in the spec.
260
259
func HasMetricsPropertiesFile (app * v1beta2.SparkApplication ) bool {
261
- return PrometheusMonitoringEnabled (app ) &&
262
- app .Spec .Monitoring .MetricsPropertiesFile != nil &&
260
+ return app .Spec .Monitoring .MetricsPropertiesFile != nil &&
263
261
* app .Spec .Monitoring .MetricsPropertiesFile != ""
264
262
}
265
263
You can’t perform that action at this time.
0 commit comments