diff options
Diffstat (limited to 'kubernetes/common/postgres/templates/metrics-svc-replica.yaml')
-rw-r--r-- | kubernetes/common/postgres/templates/metrics-svc-replica.yaml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kubernetes/common/postgres/templates/metrics-svc-replica.yaml b/kubernetes/common/postgres/templates/metrics-svc-replica.yaml index 5aa8d76185..b8b9e793e8 100644 --- a/kubernetes/common/postgres/templates/metrics-svc-replica.yaml +++ b/kubernetes/common/postgres/templates/metrics-svc-replica.yaml @@ -14,6 +14,7 @@ # limitations under the License. */}} +{{- if not .Values.global.postgres.useOperator }} {{- if default false .Values.metrics.enabled }} apiVersion: v1 kind: Service @@ -33,4 +34,5 @@ spec: selector: name: {{ .Values.container.name.replica }} release: {{ include "common.release" . }} +{{- end }} {{- end }}
\ No newline at end of file |