<commit_before>apiVersion: apps/v1
kind: Deployment
metadata:
  name: "zmon-aws-agent"
  namespace: "visibility"
  labels:
    application: "zmon-aws-agent"
    version: "v76-zv155"
spec:
  replicas: {{.ConfigItems.zmon_aws_agent_replicas}}
  selector:
    matchLabels:
      application: zmon-aws-agent
  template:
    metadata:
      labels:
        application: "zmon-aws-agent"
        version: "v76-zv155"
      annotations:
        iam.amazonaws.com/role: "{{ .LocalID }}-app-zmon"
    spec:
      dnsConfig:
        options:
          - name: ndots
            value: "1"
      priorityClassName: visibility-zmon
      initContainers:
      - name: gerry-init
        image: registry.opensource.zalan.do/teapot/gerry:v0.0.14
        args:
          - /meta/credentials
          - --application-id=gerry
          - --mint-bucket=s3://{{ .ConfigItems.gerry_mint_bucket }}
          - --once
        resources:
          limits:
            cpu: 5m
            memory: 20Mi
          requests:
            cpu: 5m
            memory: 20Mi

        volumeMounts:
          - name: credentials
            mountPath: /meta/credentials
            readOnly: false

      containers:
        - name: zmon-aws-agent
          image: pierone.stups.zalan.do/zmon/zmon-aws-agent:v76-3-g3d635f3-zv155-2-g66e06ab
          resources:
            limits:
              cpu: {{.ConfigItems.zmon_aws_agent_cpu}}
              memory: {{.ConfigItems.zmon_aws_agent_mem}}
            requests:
              cpu: {{.ConfigItems.zmon_aws_agent_cpu}}
              memory: {{.ConfigItems.zmon_aws_agent_mem}}
          env:
            - name: OAUTH2_ACCESS_TOKEN_URL
              value: https://token.services.auth.zalando.com/oauth2/access_token?realm=/services
            - name: CREDENTIALS_DIR
              value: /meta/credentials
            - name: EXTRA_ENTITY_FIELDS
              value: "environment={{ .Environment }}"

          volumeMounts:
            - name: credentials
              mountPath: /meta/credentials
              readOnly: true

        - name: gerry
          image: registry.opensource.zalan.do/teapot/gerry:v0.0.14
          args:
            - /meta/credentials
            - --application-id=gerry
            - --mint-bucket=s3://{{ .ConfigItems.gerry_mint_bucket }}
          resources:<commit_msg>Update the zmon-aws-agent to fix ACM entities<commit_after>apiVersion: apps/v1
kind: Deployment
metadata:
  name: "zmon-aws-agent"
  namespace: "visibility"
  labels:
    application: "zmon-aws-agent"
    version: "v76-7-g67db4f5-zv155-2-g66e06ab"
spec:
  replicas: {{.ConfigItems.zmon_aws_agent_replicas}}
  selector:
    matchLabels:
      application: zmon-aws-agent
  template:
    metadata:
      labels:
        application: "zmon-aws-agent"
        version: "v76-7-g67db4f5-zv155-2-g66e06ab"
      annotations:
        iam.amazonaws.com/role: "{{ .LocalID }}-app-zmon"
    spec:
      dnsConfig:
        options:
          - name: ndots
            value: "1"
      priorityClassName: visibility-zmon
      initContainers:
      - name: gerry-init
        image: registry.opensource.zalan.do/teapot/gerry:v0.0.14
        args:
          - /meta/credentials
          - --application-id=gerry
          - --mint-bucket=s3://{{ .ConfigItems.gerry_mint_bucket }}
          - --once
        resources:
          limits:
            cpu: 5m
            memory: 20Mi
          requests:
            cpu: 5m
            memory: 20Mi

        volumeMounts:
          - name: credentials
            mountPath: /meta/credentials
            readOnly: false

      containers:
        - name: zmon-aws-agent
          image: pierone.stups.zalan.do/zmon/zmon-aws-agent:v76-7-g67db4f5-zv155-2-g66e06ab
          resources:
            limits:
              cpu: {{.ConfigItems.zmon_aws_agent_cpu}}
              memory: {{.ConfigItems.zmon_aws_agent_mem}}
            requests:
              cpu: {{.ConfigItems.zmon_aws_agent_cpu}}
              memory: {{.ConfigItems.zmon_aws_agent_mem}}
          env:
            - name: OAUTH2_ACCESS_TOKEN_URL
              value: https://token.services.auth.zalando.com/oauth2/access_token?realm=/services
            - name: CREDENTIALS_DIR
              value: /meta/credentials
            - name: EXTRA_ENTITY_FIELDS
              value: "environment={{ .Environment }}"

          volumeMounts:
            - name: credentials
              mountPath: /meta/credentials
              readOnly: true

        - name: gerry
          image: registry.opensource.zalan.do/teapot/gerry:v0.0.14
          args:
            - /meta/credentials
            - --application-id=gerry
            - --mint-bucket=s3://{{ .ConfigItems.gerry_mint_bucket }}
          resources:
{'fraction_non_alphanumeric': 0.10815378115758344, 'fraction_numerical': 0.023447401774397972, 'mean_word_length': 1.6556365675827258, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4773030', 'n_tokens_mistral': 1568, 'n_tokens_neox': 1502, 'n_words': 239}