<commit_before>apiVersion: v1
kind: List
items:
- apiVersion: v1
  kind: Service
  metadata:
    name: ovirt-engine
  spec:
    ports:
    - name: ovirt-engine
      port: 443
      targetPort: 8443
      tls:
        termination: passthrough
    - name: ovirt-spice-proxy
      port: 3128
      targetPort: 3128
    - name: ovirt-engine-debug
      port: 8787
      targetPort: 8787
    selector:
      deploymentconfig: ovirt-engine
    type: ClusterIP

- apiVersion: v1
  kind: Route
  metadata:
    name: ovirt-engine
  spec:
    to:
      kind: Service
      name: ovirt-engine
    port:
      targetPort: ovirt-engine
    tls:
      termination: passthrough
    wildcardPolicy: None

- apiVersion: v1
  kind: PersistentVolumeClaim
  metadata:
    name: ovirt-db-claim
  spec:
    accessModes:
      - ReadWriteOnce
    resources:
      requests:
        storage: 10Gi

- apiVersion: v1
  kind: PersistentVolumeClaim
  metadata:
    name: ovirt-engine-claim
  spec:
    accessModes:
      - ReadWriteOnce
    resources:
      requests:
        storage: 10Gi

- apiVersion: v1
  kind: DeploymentConfig
  metadata:
    name: ovirt-engine
  spec:
    replicas: 1
    selector:
      deploymentconfig: ovirt-engine
    strategy:
      # We set the type of strategy to Recreate, which means that it will be scaled down prior to being scaled up
      type: Recreate
      recreateParams:
        timeoutSeconds: 1200
    paused: true
    template:
      metadata:
        labels:
          app: ovirt-engine
          deploymentconfig: ovirt-engine
        name: ovirt-engine
      spec:
        serviceAccountName: useroot
        containers:
          - image: rmohr/spice-squid
            name: spice-proxy
            imagePullPolicy: "Always"
            ports:
              - containerPort: 3128
                protocol: TCP

          - image: marsik/ovirt-postgres:9.2.18
            name: postgres
            imagePullPolicy: "Always"
            ports:
              - containerPort: 5432
                protocol: TCP
            volumeMounts:
              - mountPath: /var/lib/postgresql/data
                name: pgdata
            env:
              - name: POSTGRES_USER
                value: engine
              - name: POSTGRES_PASSWORD
                value: engine
              - name: POSTGRES_DATABASE
                value: engine

          - image: docker.io/bronhaim/ovirt-engine:4.1
            name: ovirt-engine
            imagePullPolicy: "Always"<commit_msg>Use 'IfNotPresent' image pull policy for engine<commit_after>apiVersion: v1
kind: List
items:
- apiVersion: v1
  kind: Service
  metadata:
    name: ovirt-engine
  spec:
    ports:
    - name: ovirt-engine
      port: 443
      targetPort: 8443
      tls:
        termination: passthrough
    - name: ovirt-spice-proxy
      port: 3128
      targetPort: 3128
    - name: ovirt-engine-debug
      port: 8787
      targetPort: 8787
    selector:
      deploymentconfig: ovirt-engine
    type: ClusterIP

- apiVersion: v1
  kind: Route
  metadata:
    name: ovirt-engine
  spec:
    to:
      kind: Service
      name: ovirt-engine
    port:
      targetPort: ovirt-engine
    tls:
      termination: passthrough
    wildcardPolicy: None

- apiVersion: v1
  kind: PersistentVolumeClaim
  metadata:
    name: ovirt-db-claim
  spec:
    accessModes:
      - ReadWriteOnce
    resources:
      requests:
        storage: 10Gi

- apiVersion: v1
  kind: PersistentVolumeClaim
  metadata:
    name: ovirt-engine-claim
  spec:
    accessModes:
      - ReadWriteOnce
    resources:
      requests:
        storage: 10Gi

- apiVersion: v1
  kind: DeploymentConfig
  metadata:
    name: ovirt-engine
  spec:
    replicas: 1
    selector:
      deploymentconfig: ovirt-engine
    strategy:
      # We set the type of strategy to Recreate, which means that it will be scaled down prior to being scaled up
      type: Recreate
      recreateParams:
        timeoutSeconds: 1200
    paused: true
    template:
      metadata:
        labels:
          app: ovirt-engine
          deploymentconfig: ovirt-engine
        name: ovirt-engine
      spec:
        serviceAccountName: useroot
        containers:
          - image: rmohr/spice-squid
            name: spice-proxy
            imagePullPolicy: "IfNotPresent"
            ports:
              - containerPort: 3128
                protocol: TCP

          - image: marsik/ovirt-postgres:9.2.18
            name: postgres
            imagePullPolicy: "IfNotPresent"
            ports:
              - containerPort: 5432
                protocol: TCP
            volumeMounts:
              - mountPath: /var/lib/postgresql/data
                name: pgdata
            env:
              - name: POSTGRES_USER
                value: engine
              - name: POSTGRES_PASSWORD
                value: <PASSWORD>
              - name: POSTGRES_DATABASE
                value: engine

          - image: docker.io/bronhaim/ovirt-engine:4.1
            name: ovirt-engine
            imagePullPolicy: "IfNotPresent"
{'fraction_non_alphanumeric': 0.06769596199524941, 'fraction_numerical': 0.02058590657165479, 'mean_word_length': 1.6721311475409837, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '4927878', 'n_tokens_mistral': 1593, 'n_tokens_neox': 1479, 'n_words': 385}