<commit_before>apiVersion: extensions/v1beta1
kind: Deployment
spec:
  replicas: {{ deployment.replicas }}
  template:
    metadata:
      labels:
        app: searchlight-api
    spec:
      nodeSelector:
        {{ deployment.node_label }}: enabled
      # TODO(DTadrzak): it must be removed in future
      securityContext:
        runAsUser: 0
      containers:
        - name: searchlight-api
          image: {{ deployment.image.api }}
          imagePullPolicy: Always
          # TODO(DTadrzak): it must be removed in future
          securityContext:
            privileged: true
          env:
            - name: INTERFACE_NAME
              value: "eth0"
            - name: POD_NAME
              valueFrom:
                fieldRef:
                  fieldPath: metadata.name
            - name: NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
            - name: COMMAND
              value: "searchlight-api"
            - name: DEPENDENCY_JOBS
              value: "searchlight-init"
            - name: DEPENDENCY_SERVICE
              value: "rabbitmq,keystone-api,elasticsearch"
            - name: DEPENDENCY_CONFIG
              value: "/etc/searchlight/searchlight.conf,/etc/searchlight/api-paste.ini,/etc/searchlight/policy.json"
          ports:
            - containerPort: {{ network.port.api }}
          readinessProbe:
            tcpSocket:
              port: {{ network.port.api }}
          volumeMounts:
            - name: searchlightconf
              mountPath: /configmaps/searchlight.conf
            - name: apipasteini
              mountPath: /configmaps/api-paste.ini
            - name: policyjson
              mountPath: /configmaps/policy.json
            - name: etcsearchlight
              mountPath: /etc/searchlight
      volumes:
        - name: searchlightconf
          configMap:
            name: searchlight-searchlightconf
        - name: apipasteini
          configMap:
            name: searchlight-apipasteini
        - name: policyjson
          configMap:<commit_msg>Fix searchlight-api dependency<commit_after>apiVersion: extensions/v1beta1
kind: Deployment
spec:
  replicas: {{ deployment.replicas }}
  template:
    metadata:
      labels:
        app: searchlight-api
    spec:
      nodeSelector:
        {{ deployment.node_label }}: enabled
      # TODO(DTadrzak): it must be removed in future
      securityContext:
        runAsUser: 0
      containers:
        - name: searchlight-api
          image: {{ deployment.image.api }}
          imagePullPolicy: Always
          # TODO(DTadrzak): it must be removed in future
          securityContext:
            privileged: true
          env:
            - name: INTERFACE_NAME
              value: "eth0"
            - name: POD_NAME
              valueFrom:
                fieldRef:
                  fieldPath: metadata.name
            - name: NAMESPACE
              valueFrom:
                fieldRef:
                  fieldPath: metadata.namespace
            - name: COMMAND
              value: "searchlight-api"
            - name: DEPENDENCY_JOBS
              value: "searchlight-init"
            - name: DEPENDENCY_SERVICE
              value: "rabbitmq,keystone-api,{{ elasticsearch.address }}"
            - name: DEPENDENCY_CONFIG
              value: "/etc/searchlight/searchlight.conf,/etc/searchlight/api-paste.ini,/etc/searchlight/policy.json"
          ports:
            - containerPort: {{ network.port.api }}
          readinessProbe:
            tcpSocket:
              port: {{ network.port.api }}
          volumeMounts:
            - name: searchlightconf
              mountPath: /configmaps/searchlight.conf
            - name: apipasteini
              mountPath: /configmaps/api-paste.ini
            - name: policyjson
              mountPath: /configmaps/policy.json
            - name: etcsearchlight
              mountPath: /etc/searchlight
      volumes:
        - name: searchlightconf
          configMap:
            name: searchlight-searchlightconf
        - name: apipasteini
          configMap:
            name: searchlight-apipasteini
        - name: policyjson
          configMap:
{'fraction_non_alphanumeric': 0.07963972505333017, 'fraction_numerical': 0.0018961839298411946, 'mean_word_length': 1.495564754583087, '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': '3853326', 'n_tokens_mistral': 1121, 'n_tokens_neox': 1109, 'n_words': 230}