<commit_before>apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
  labels:
    k8s-app: pmtud
  name: pmtud
spec:
  selector:
    matchLabels:
      name: pmtud
  updateStrategy:
    type: RollingUpdate
  template:
    metadata:
      labels:
        name: pmtud
        k8s-app: pmtud
    spec:
      initContainers:
        - name: iptables-init
          image: "{{ .Values.images.iptables.repository }}:{{ .Values.images.iptables.tag }}"
          command:
            - /scripts/pmtud/iptables-init.sh
          securityContext:
            privileged: true
          volumeMounts:
            - name: pmtud
              mountPath: /scripts/pmtud
      containers:
      - name: pmtud
        image: "{{ .Values.images.pmtud.repository }}:{{ .Values.images.pmtud.tag }}"
        imagePullPolicy: IfNotPresent
        command:
          - /go-pmtud
          - --peers={{ required ".Values.pmtud.peers is required" .Values.pmtud.peers }}
          - --iface={{ required ".Values.pmtud.interface is required" .Values.pmtud.interface }}
          - --ttl={{ .Values.pmtud.ttl }}
          - --nflog-group={{ .Values.iptables.nflogGroup }}
          - --metrics-port={{ .Values.pmtud.metricsPort }}
        securityContext:
           privileged: true
      hostNetwork: true
      nodeSelector:
        beta.kubernetes.io/os: linux
        kubernetes.cloud.sap/provisioned-by: kubernikus
      terminationGracePeriodSeconds: 5
      tolerations:
        - operator: "Exists"
      volumes:
        - name: pmtud<commit_msg>[kube-system][go-pmtud] preStop hook and hostname<commit_after>apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
  labels:
    k8s-app: pmtud
  name: pmtud
spec:
  selector:
    matchLabels:
      name: pmtud
  updateStrategy:
    type: RollingUpdate
  template:
    metadata:
      labels:
        name: pmtud
        k8s-app: pmtud
    spec:
      initContainers:
        - name: iptables-init
          image: "{{ .Values.images.iptables.repository }}:{{ .Values.images.iptables.tag }}"
          command:
            - /scripts/pmtud/iptables-init.sh
          securityContext:
            privileged: true
          volumeMounts:
            - name: pmtud
              mountPath: /scripts/pmtud
      containers:
      - name: pmtud
        image: "{{ .Values.images.pmtud.repository }}:{{ .Values.images.pmtud.tag }}"
        imagePullPolicy: IfNotPresent
        lifecycle:
          preStop:
            exec:
              # make sure to update _iptables_init.tpl template script to keep commands aligned
              command: ["/bin/sh", "-c", "iptables -t raw -D PREROUTING -i {{ .Values.pmtud.interface }} ! -s {{ .Values.iptables.ignoreSourceNetwork }} -p icmp -m icmp --icmp-type 3/4 --j NFLOG --nflog-group {{ .Values.iptables.nflogGroup }}"]
        command:
          - /go-pmtud
          - --peers={{ required ".Values.pmtud.peers is required" .Values.pmtud.peers }}
          - --iface={{ required ".Values.pmtud.interface is required" .Values.pmtud.interface }}
          - --nodename=$(NODE_NAME)
          - --ttl={{ .Values.pmtud.ttl }}
          - --nflog-group={{ .Values.iptables.nflogGroup }}
          - --metrics-port={{ .Values.pmtud.metricsPort }}
        env:
        - name: NODE_NAME
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: spec.nodeName
        securityContext:
           privileged: true
      hostNetwork: true
      nodeSelector:
        beta.kubernetes.io/os: linux
        kubernetes.cloud.sap/provisioned-by: kubernikus
      terminationGracePeriodSeconds: 5
      tolerations:
        - operator: "Exists"
      volumes:
        - name: pmtud
{'fraction_non_alphanumeric': 0.1185888738127544, 'fraction_numerical': 0.0035278154681139757, 'mean_word_length': 1.8573643410852714, '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': '3948494', 'n_tokens_mistral': 1160, 'n_tokens_neox': 1167, 'n_words': 225}