[POSTGRES][COMMON] Add support for postgres operator
[oom.git] / kubernetes / common / postgres / templates / servicemonitor.yaml
index 73faba6..522e515 100644 (file)
@@ -13,7 +13,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 */}}
-
+{{- if not .Values.global.postgres.useOperator }}
 {{- if .Values.metrics.serviceMonitor.enabled }}
 {{  include "common.serviceMonitor" . }}
 {{- end }}
+{{- end }}
\ No newline at end of file