<commit_before>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: estafette-ci
  namespace: {{.Namespace}}
  labels:
    {{- range $key, $value := .Labels}}
    {{$key}}: {{$value}}
    {{- end}}
  annotations:
    {{- if .UseNginxIngress}}
    kubernetes.io/ingress.class: "nginx"
    nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
    nginx.ingress.kubernetes.io/client-body-buffer-size: "{{.NginxIngressClientBodyBufferSize}}"
    nginx.ingress.kubernetes.io/proxy-body-size: "{{.NginxIngressProxyBodySize}}"
    nginx.ingress.kubernetes.io/proxy-buffers-number: "{{.NginxIngressProxyBuffersNumber}}"
    nginx.ingress.kubernetes.io/proxy-buffer-size: "{{.NginxIngressProxyBufferSize}}"
    nginx.ingress.kubernetes.io/proxy-connect-timeout: "{{.NginxIngressProxyConnectTimeout}}"
    nginx.ingress.kubernetes.io/proxy-send-timeout: "{{.NginxIngressProxySendTimeout}}"
    nginx.ingress.kubernetes.io/proxy-read-timeout: "{{.NginxIngressProxyReadTimeout}}"
    {{- if .OverrideDefaultWhitelist}}
    nginx.ingress.kubernetes.io/whitelist-source-range: "{{.NginxIngressWhitelist}}"
    {{- end}}
    {{- end}}
    {{- if .UseGCEIngress}}
    kubernetes.io/ingress.class: "gce"
    kubernetes.io/ingress.allow-http: "false"
    {{- end}}
    {{- if .UseDNSAnnotationsOnIngress}}  
    estafette.io/cloudflare-dns: "true"
    estafette.io/cloudflare-proxy: "true"
    estafette.io/cloudflare-hostnames: "{{.HostsJoined}}"
    {{- end}}
spec:
  tls:
  - hosts:
    {{- range .Hosts}}
    - {{.}}
    {{- end}}
    secretName: {{.Name}}-letsencrypt-certificate
  rules:
  {{- range .Hosts}}
  - host: {{.}}
    http:
      paths:
      - path: {{$.IngressPath}}
        backend:
          serviceName: {{$.Name}}
          servicePort: https
      - path: /*
        backend:
          serviceName: estafette-ci-web
          servicePort: https          
  {{- end}}<commit_msg>make cloudflare proxy configurable<commit_after>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: estafette-ci
  namespace: {{.Namespace}}
  labels:
    {{- range $key, $value := .Labels}}
    {{$key}}: {{$value}}
    {{- end}}
  annotations:
    {{- if .UseNginxIngress}}
    kubernetes.io/ingress.class: "nginx"
    nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
    nginx.ingress.kubernetes.io/client-body-buffer-size: "{{.NginxIngressClientBodyBufferSize}}"
    nginx.ingress.kubernetes.io/proxy-body-size: "{{.NginxIngressProxyBodySize}}"
    nginx.ingress.kubernetes.io/proxy-buffers-number: "{{.NginxIngressProxyBuffersNumber}}"
    nginx.ingress.kubernetes.io/proxy-buffer-size: "{{.NginxIngressProxyBufferSize}}"
    nginx.ingress.kubernetes.io/proxy-connect-timeout: "{{.NginxIngressProxyConnectTimeout}}"
    nginx.ingress.kubernetes.io/proxy-send-timeout: "{{.NginxIngressProxySendTimeout}}"
    nginx.ingress.kubernetes.io/proxy-read-timeout: "{{.NginxIngressProxyReadTimeout}}"
    {{- if .OverrideDefaultWhitelist}}
    nginx.ingress.kubernetes.io/whitelist-source-range: "{{.NginxIngressWhitelist}}"
    {{- end}}
    {{- end}}
    {{- if .UseGCEIngress}}
    kubernetes.io/ingress.class: "gce"
    kubernetes.io/ingress.allow-http: "false"
    {{- end}}
    {{- if .UseDNSAnnotationsOnIngress}}  
    estafette.io/cloudflare-dns: "true"
    estafette.io/cloudflare-proxy: "{{.UseCloudflareProxy}}"
    estafette.io/cloudflare-hostnames: "{{.HostsJoined}}"
    {{- end}}
spec:
  tls:
  - hosts:
    {{- range .Hosts}}
    - {{.}}
    {{- end}}
    secretName: {{.Name}}-letsencrypt-certificate
  rules:
  {{- range .Hosts}}
  - host: {{.}}
    http:
      paths:
      - path: {{$.IngressPath}}
        backend:
          serviceName: {{$.Name}}
          servicePort: https
      - path: /*
        backend:
          serviceName: estafette-ci-web
          servicePort: https          
  {{- end}}
{'fraction_non_alphanumeric': 0.17206266318537858, 'fraction_numerical': 0.0010443864229765013, 'mean_word_length': 3.132686084142395, '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': '7343520', 'n_tokens_mistral': 1422, 'n_tokens_neox': 1343, 'n_words': 178}