<commit_before>{{- if .Values.enabled }}
{{- $values := .Values }}

{{- range $i, $prober := .Values.probers }}
{{ if ne $i 0 }}---{{ end }}

apiVersion: networking.k8s.io/v1beta1
kind: Ingress

metadata:
  name: cloudprober-{{$prober.zone}}
  labels:
    app: cloudprober-exporter
  annotations:
    kubernetes.io/tls-acme: {{ default false $values.ingress.tls | quote }}
    disco: {{ default false $values.ingress.disco | quote }}

spec:
  tls:
    - secretName: cloudprober-{{ $prober.zone }}
      hosts: [{{ $values.ingress.hostName_prefix }}-{{ $prober.zone }}.{{ $values.global.region }}.{{ $values.global.tld }}]
  rules:
    - host: {{ $values.ingress.hostName_prefix }}-{{ $prober.zone }}.{{ $values.global.region }}.{{ $values.global.tld }}
      http:
        paths:
        - path: /metrics
          backend:
            serviceName: cloudprober-{{ $prober.zone }}
            servicePort: metrics
        - path: /config
          backend:
            serviceName: cloudprober-{{ $prober.zone }}
            servicePort: metrics
        - path: /
          backend:
            serviceName: cloudprober-{{ $prober.zone }}
            servicePort: web
---
{{- end }}
{{- end }}<commit_msg>fix cloudprober ingress<commit_after>{{- if .Values.enabled }}
{{- $values := .Values }}

{{- range $i, $prober := .Values.probers }}
{{ if ne $i 0 }}---{{ end }}

apiVersion: networking.k8s.io/v1beta1
kind: Ingress

metadata:
  name: cloudprober-{{$prober.dc}}
  labels:
    app: cloudprober-exporter
  annotations:
    kubernetes.io/tls-acme: {{ default false $values.ingress.tls | quote }}
    disco: {{ default false $values.ingress.disco | quote }}

spec:
  tls:
    - secretName: cloudprober-{{ $prober.dc }}
      hosts: [{{ $values.ingress.hostName_prefix }}-{{ $prober.dc }}.{{ $values.global.region }}.{{ $values.global.tld }}]
  rules:
    - host: {{ $values.ingress.hostName_prefix }}-{{ $prober.dc }}.{{ $values.global.region }}.{{ $values.global.tld }}
      http:
        paths:
        - path: /metrics
          backend:
            serviceName: cloudprober-{{ $prober.dc }}
            servicePort: metrics
        - path: /config
          backend:
            serviceName: cloudprober-{{ $prober.dc }}
            servicePort: metrics
        - path: /
          backend:
            serviceName: cloudprober-{{ $prober.dc }}
            servicePort: web
---
{{- end }}
{{- end }}
{'fraction_non_alphanumeric': 0.1772046589018303, 'fraction_numerical': 0.0033277870216306157, 'mean_word_length': 2.299039780521262, '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': '1458448', 'n_tokens_mistral': 798, 'n_tokens_neox': 789, 'n_words': 158}