From ba70ad65ba87e4e74e356f663d6234749974ad58 Mon Sep 17 00:00:00 2001
From: Alan Meadows <alan.meadows@gmail.com>
Date: Wed, 30 Nov 2016 15:36:54 -0800
Subject: [PATCH] remove duplicate mariadb service

---
 mariadb/templates/mariadb-deployment.yaml | 11 -----------
 mariadb/templates/mariadb-service.yaml    |  3 ++-
 2 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/mariadb/templates/mariadb-deployment.yaml b/mariadb/templates/mariadb-deployment.yaml
index c3f6887941..a19eb03b26 100644
--- a/mariadb/templates/mariadb-deployment.yaml
+++ b/mariadb/templates/mariadb-deployment.yaml
@@ -1,14 +1,3 @@
----
-apiVersion: v1
-kind: Service
-metadata:
-  name: mariadb
-spec:
-  ports:
-    - name: db
-      port: {{ .Values.network.port.mariadb }}
-  selector:
-    app: mariadb
 {{- $root := . -}}
 {{ range $k, $v := until (atoi .Values.replicas) }}
 ---
diff --git a/mariadb/templates/mariadb-service.yaml b/mariadb/templates/mariadb-service.yaml
index 5b3dae0490..2fa2f6319a 100644
--- a/mariadb/templates/mariadb-service.yaml
+++ b/mariadb/templates/mariadb-service.yaml
@@ -4,6 +4,7 @@ metadata:
   name: mariadb
 spec:
   ports:
-    - port: {{ .Values.network.port.mariadb }}
+    - name: db
+      port: {{ .Values.network.port.mariadb }}
   selector:
     app: mariadb