<commit_before>{{- range $index, $cluster := .Values.clusters }}
{{- if .Values.vice_president }}
apiVersion: extensions/v1beta1
kind: Ingress

metadata:
  # the ingress controller won't pick this up
  kubernetes.io/ingress.class: "noop.vice-president"
  name: swift-{{$cluster.name}}
  annotations:
    # enable vice-president
    vice-president: "true"

# workaround to enable the vice-president for non-ingress based swift.
# the vp will only evaluate the following spec.tls section
spec:
  tls:
     - secretName: tls-swift-{{$cluster.name}}
       hosts: [swift-{{$cluster.name}}.{{.Values.global.region}}.{{.Values.global.domain}}]
  # the following is mandatory in an ingress resource, but will be ignored by the vice-president
  rules:
    - host: swift-{{$cluster.name}}.{{.Values.global.region}}.{{.Values.global.domain}}
      http:
        paths:
        - path: /
          backend:
            serviceName: swift-{{$cluster.name}}
            servicePort: 9090

{{- end }}
{{- end }}<commit_msg>add separator<commit_after>{{- range $index, $cluster := .Values.clusters }}
{{- if .Values.vice_president }}
apiVersion: extensions/v1beta1
kind: Ingress

metadata:
  # the ingress controller won't pick this up
  kubernetes.io/ingress.class: "noop.vice-president"
  name: swift-{{$cluster.name}}
  annotations:
    # enable vice-president
    vice-president: "true"

# workaround to enable the vice-president for non-ingress based swift.
# the vp will only evaluate the following spec.tls section
spec:
  tls:
     - secretName: tls-swift-{{$cluster.name}}
       hosts: [swift-{{$cluster.name}}.{{.Values.global.region}}.{{.Values.global.domain}}]
  # the following is mandatory in an ingress resource, but will be ignored by the vice-president
  rules:
    - host: swift-{{$cluster.name}}.{{.Values.global.region}}.{{.Values.global.domain}}
      http:
        paths:
        - path: /
          backend:
            serviceName: swift-{{$cluster.name}}
            servicePort: 9090
---
{{- end }}
{{- end }}
{'fraction_non_alphanumeric': 0.14893617021276595, 'fraction_numerical': 0.005937654626422563, 'mean_word_length': 3.084848484848485, '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': '2218491', 'n_tokens_mistral': 660, 'n_tokens_neox': 616, 'n_words': 161}