Code Review
/
oom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
[MARIADB][COMMON] Add support for mariadb-operator
[oom.git]
/
kubernetes
/
common
/
mariadb-galera
/
templates
/
metrics-svc.yaml
diff --git
a/kubernetes/common/mariadb-galera/templates/metrics-svc.yaml
b/kubernetes/common/mariadb-galera/templates/metrics-svc.yaml
index
841aab3
..
d37aeb1
100644
(file)
--- a/
kubernetes/common/mariadb-galera/templates/metrics-svc.yaml
+++ b/
kubernetes/common/mariadb-galera/templates/metrics-svc.yaml
@@
-14,7
+14,9
@@
# limitations under the License.
*/}}
# limitations under the License.
*/}}
-{{- if default false .Values.global.metrics.enabled }}
+{{- if not .Values.global.mariadbGalera.useOperator }}
+{{- if default false .Values.global.metrics.enabled }}
+---
apiVersion: v1
kind: Service
metadata:
apiVersion: v1
kind: Service
metadata:
@@
-31,4
+33,5
@@
spec:
port: {{ .Values.metrics.service.port }}
targetPort: tcp-metrics
selector: {{- include "common.matchLabels" . | nindent 4 }}
port: {{ .Values.metrics.service.port }}
targetPort: tcp-metrics
selector: {{- include "common.matchLabels" . | nindent 4 }}
-{{- end }}
+{{- end }}
+{{- end }}
\ No newline at end of file