Merge "[AAI] Make aai log level configurable"
[oom.git] / kubernetes / common / postgres / templates / service-primary.yaml
index 501c01e..bc60d27 100644 (file)
@@ -13,6 +13,7 @@
 # # See the License for the specific language governing permissions and
 # # limitations under the License.
 */}}
+{{- if not .Values.global.postgres.useOperator }}
 apiVersion: v1
 kind: Service
 metadata:
@@ -21,7 +22,7 @@ metadata:
   labels:
     app: {{ include "common.name" . }}-primary
     chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
-    release: {{ .Release.Name }}
+    release: {{ include "common.release" . }}
     heritage: {{ .Release.Service }}
   annotations:
 spec:
@@ -38,4 +39,5 @@ spec:
     {{- end}}
   selector:
     name: "{{.Values.container.name.primary}}"
-    release: {{ .Release.Name }}
+    release: {{ include "common.release" . }}
+{{- end }}