<commit_before>{{ if .Values.operator.enabled -}}
kind: Deployment
apiVersion: apps/v1

metadata:
  name: {{ template "fullname" . }}-operator
  labels:
    chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"

spec:
  replicas: 1
  selector:
    matchLabels:
      app: {{ template "fullname" . }}-operator
  template:
    metadata:
      labels:
        app: {{ template "fullname" . }}-operator
    spec:
      containers:
        - name: operator
          image: "{{required ".Values.operator.image.repository is missing" .Values.operator.image.repository }}:{{required ".Values.operator.image.tag is missing" .Values.operator.image.tag }}" 
          imagePullPolicy: {{ .Values.operator.image.pullPolicy }}
          env:
            - name: SENTRY_ENDPOINT
              value: {{ .Values.operator.sentryEndpoint }}
            - name: SENTRY_TOKEN
              valueFrom:
                secretKeyRef:
                  name: {{ template "fullname" . }}
                  key: admin-api-token
            - name: SENTRY_ORGANIZATION
              value: {{ .Values.organizationSlug }}
{{- end }}
<commit_msg>[Sentry] switch sentry-operator to fetch image from keppel dockerHubMirror<commit_after>{{ if .Values.operator.enabled -}}
kind: Deployment
apiVersion: apps/v1

metadata:
  name: {{ template "fullname" . }}-operator
  labels:
    chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"

spec:
  replicas: 1
  selector:
    matchLabels:
      app: {{ template "fullname" . }}-operator
  template:
    metadata:
      labels:
        app: {{ template "fullname" . }}-operator
    spec:
      containers:
        - name: operator
          image: "{{required ".Values.global.dockerHubMirror is missing" .Values.global.dockerHubMirror }}/{{ required ".Values.operator.image.repository is missing" .Values.operator.image.repository }}:{{ required ".Values.operator.image.tag is missing" .Values.operator.image.tag }}"
          imagePullPolicy: {{ .Values.operator.image.pullPolicy }}
          env:
            - name: SENTRY_ENDPOINT
              value: {{ .Values.operator.sentryEndpoint }}
            - name: SENTRY_TOKEN
              valueFrom:
                secretKeyRef:
                  name: {{ template "fullname" . }}
                  key: admin-api-token
            - name: SENTRY_ORGANIZATION
              value: {{ .Values.organizationSlug }}
{{- end }}

{'fraction_non_alphanumeric': 0.13378207824989483, 'fraction_numerical': 0.0016827934371055953, 'mean_word_length': 2.1496688741721854, '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': '7242477', 'n_tokens_mistral': 689, 'n_tokens_neox': 668, 'n_words': 149}