<commit_before>apiVersion: batch/v1
kind: Job
metadata:
  name: nova-migration
  labels:
    system: openstack
    type: configuration
    component: nova
spec:
  template:
    metadata:
{{ tuple . "nova" "migration" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 6 }}
      annotations:
        configmap-bin-hash: {{ include (print $.Template.BasePath "/bin-configmap.yaml") . | sha256sum }}
    spec:
      restartPolicy: OnFailure
      containers:
      - name: nova-migration
        image: {{ required ".Values.global.registry is missing" .Values.global.registry}}/ubuntu-source-nova-api:{{.Values.imageVersionNovaApi | default .Values.imageVersionNova | default .Values.imageVersion | required "Please set nova.imageVersion or similar"}}
        imagePullPolicy: IfNotPresent
        command:
        - kubernetes-entrypoint
        env:
        - name: COMMAND
          value: "/container.init/db-migrate"
        - name: NAMESPACE
          value: {{ .Release.Namespace }}
        - name: DEPENDENCY_SERVICE
          value: "nova-postgresql"
        - name: PGAPPNAME
          valueFrom:
            fieldRef:
              fieldPath: metadata.name
        - name: PYTHONWARNINGS
          value: {{ .Values.python_warnings | quote }}
        volumeMounts:
        - mountPath: /etc/nova
          name: etcnova
        - mountPath: /etc/nova/nova.conf
          name: nova-etc
          subPath: nova.conf
          readOnly: true
        - mountPath: /etc/nova/nova-api.conf
          name: nova-etc
          subPath: nova-api.conf<commit_msg>[nova] fix migration job service dependency<commit_after>apiVersion: batch/v1
kind: Job
metadata:
  name: nova-migration
  labels:
    system: openstack
    type: configuration
    component: nova
spec:
  template:
    metadata:
{{ tuple . "nova" "migration" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 6 }}
      annotations:
        configmap-bin-hash: {{ include (print $.Template.BasePath "/bin-configmap.yaml") . | sha256sum }}
    spec:
      restartPolicy: OnFailure
      containers:
      - name: nova-migration
        image: {{ required ".Values.global.registry is missing" .Values.global.registry}}/ubuntu-source-nova-api:{{.Values.imageVersionNovaApi | default .Values.imageVersionNova | default .Values.imageVersion | required "Please set nova.imageVersion or similar"}}
        imagePullPolicy: IfNotPresent
        command:
        - kubernetes-entrypoint
        env:
        - name: COMMAND
          value: "/container.init/db-migrate"
        - name: NAMESPACE
          value: {{ .Release.Namespace }}
        - name: DEPENDENCY_SERVICE
        {{- if eq .Values.postgresql.enabled true }}
          value: "{{ .Release.Name }}-postgresql"
        {{- else }}
          value: "{{ .Release.Name }}-mariadb,{{ .Release.Name }}-api-mariadb{{ if eq .Values.cell2.enabled true }},{{ .Release.Name }}-cell2-mariadb{{ end }}"
        {{- end }}
        - name: PGAPPNAME
          valueFrom:
            fieldRef:
              fieldPath: metadata.name
        - name: PYTHONWARNINGS
          value: {{ .Values.python_warnings | quote }}
        volumeMounts:
        - mountPath: /etc/nova
          name: etcnova
        - mountPath: /etc/nova/nova.conf
          name: nova-etc
          subPath: nova.conf
          readOnly: true
        - mountPath: /etc/nova/nova-api.conf
          name: nova-etc
          subPath: nova-api.conf
{'fraction_non_alphanumeric': 0.11470673215833574, 'fraction_numerical': 0.0034672060098237503, 'mean_word_length': 2.1616438356164385, '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': '2262743', 'n_tokens_mistral': 1056, 'n_tokens_neox': 1042, 'n_words': 223}