blob: 4a6b5864df3f1b562200b4d369029fc99e060def [file] [log] [blame]
Mohammed Naser54ee9922023-07-22 18:40:25 +00001{{/*
2Licensed under the Apache License, Version 2.0 (the "License");
3you may not use this file except in compliance with the License.
4You may obtain a copy of the License at
5
6 http://www.apache.org/licenses/LICENSE-2.0
7
8Unless required by applicable law or agreed to in writing, software
9distributed under the License is distributed on an "AS IS" BASIS,
10WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11See the License for the specific language governing permissions and
12limitations under the License.
13*/}}
14
15{{- if .Values.manifests.service_ovn_ovsdb_sb }}
16{{- $envAll := . }}
17---
18apiVersion: v1
19kind: Service
20metadata:
21 name: {{ tuple "ovn-ovsdb-sb" "direct" . | include "helm-toolkit.endpoints.hostname_short_endpoint_lookup" }}
22spec:
Mohammed Naser12207172024-02-05 18:49:35 -050023 publishNotReadyAddresses: true
Mohammed Naser54ee9922023-07-22 18:40:25 +000024 ports:
25 - name: ovsdb
26 port: {{ tuple "ovn-ovsdb-sb" "internal" "ovsdb" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
Mohammed Naserad8989f2023-07-22 22:29:32 +000027 - name: raft
28 port: {{ tuple "ovn-ovsdb-sb" "internal" "raft" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
Mohammed Naser54ee9922023-07-22 18:40:25 +000029 selector:
30{{ tuple $envAll "ovn" "ovn-ovsdb-sb" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 4 }}
31{{- end }}