<commit_before>apiVersion: v1
kind: Service
metadata:
  name: {{ .Release.Name }}
  labels:
    app: {{ template "fullname" . }}
    chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
    release: "{{ .Release.Name }}"
    heritage: "{{ .Release.Service }}"
    system: openstack
    component: keystone
    type: api
{{- if .Values.api.metrics.enabled }}
  annotations:
    prometheus.io/scrape: "true"
    prometheus.io/port: "{{.Values.api.metrics.port}}"
    prometheus.io/targets: "{{ required ".Values.alerts.prometheus missing" .Values.alerts.prometheus }}"
{{- end }}
spec:
  selector:
    name: {{ .Release.Name }}-api
  type: {{ default "ClusterIP" .Values.services.type }}
  ports:
    - name: public
      protocol: "TCP"
      port: 5000
      targetPort: 5000
{{- if .Values.services.externalip }}
  externalIPs:
    - {{ .Values.services.externalip | quote }}
{{- if .Values.global.keystone_internal_ip }}
    - {{ .Values.global.keystone_internal_ip | quote }}<commit_msg>[keystone] change the internal/external ip order in service<commit_after>apiVersion: v1
kind: Service
metadata:
  name: {{ .Release.Name }}
  labels:
    app: {{ template "fullname" . }}
    chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
    release: "{{ .Release.Name }}"
    heritage: "{{ .Release.Service }}"
    system: openstack
    component: keystone
    type: api
{{- if .Values.api.metrics.enabled }}
  annotations:
    prometheus.io/scrape: "true"
    prometheus.io/port: "{{.Values.api.metrics.port}}"
    prometheus.io/targets: "{{ required ".Values.alerts.prometheus missing" .Values.alerts.prometheus }}"
{{- end }}
spec:
  selector:
    name: {{ .Release.Name }}-api
  type: {{ default "ClusterIP" .Values.services.type }}
  ports:
    - name: public
      protocol: "TCP"
      port: 5000
      targetPort: 5000
{{- if .Values.global.keystone_internal_ip }}
  externalIPs:
    - {{ .Values.global.keystone_internal_ip | quote }}
{{- if .Values.services.externalip }}
    - {{ .Values.services.externalip | quote }}
{'fraction_non_alphanumeric': 0.17212301587301587, 'fraction_numerical': 0.008928571428571428, 'mean_word_length': 3.0912778904665315, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1780291', 'n_tokens_mistral': 700, 'n_tokens_neox': 661, 'n_words': 135}