<commit_before>{{- if .Values.domain_name  }}
apiVersion: networking.gke.io/v1beta1
kind: ManagedCertificate
metadata:
  name: frontend-certificate
spec:
  domains:
    - {{ .Values.domain_name }}
{{- end }}

---

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: frontend-external-tls
  annotations:
    kubernetes.io/ingress.global-static-ip-name: frontend-ext-ip
    {{- if .Values.domain_name  }}
    networking.gke.io/managed-certificates: frontend-certificate
    {{- end }}
spec:
  {{- if not .Values.domain_name  }}
  tls:
  - secretName: tls-hipsterservice
  {{- end }}
  rules:
  - http:
      paths:
      - backend:
          serviceName: frontend
          servicePort: 8080<commit_msg>Only allow HTTPS. Fixes #34<commit_after>{{- if .Values.domain_name  }}
apiVersion: networking.gke.io/v1beta1
kind: ManagedCertificate
metadata:
  name: frontend-certificate
spec:
  domains:
    - {{ .Values.domain_name }}
{{- end }}

---

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: frontend-external-tls
  annotations:
    kubernetes.io/ingress.allow-http: "false"
    kubernetes.io/ingress.global-static-ip-name: frontend-ext-ip
    {{- if .Values.domain_name  }}
    networking.gke.io/managed-certificates: frontend-certificate
    {{- end }}
spec:
  {{- if not .Values.domain_name  }}
  tls:
  - secretName: tls-hipsterservice
  {{- end }}
  rules:
  - http:
      paths:
      - backend:
          serviceName: frontend
          servicePort: 8080
{'fraction_non_alphanumeric': 0.13409703504043127, 'fraction_numerical': 0.012129380053908356, 'mean_word_length': 2.9285714285714284, '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': '3625801', 'n_tokens_mistral': 525, 'n_tokens_neox': 510, 'n_words': 95}