<commit_before>{{- define "deployment_bird" -}}
{{- $values := index . 0 }}
{{- $deployment_name := index . 1 | required "deployment_name cannot be empty" }}
{{- $service_number := index . 2 }}
{{- $service := index . 3 }}
{{- $domain_number := index . 4}}
{{- $domain_config := index . 5 }}
initContainers:
- name: {{ $deployment_name }}-init
  image: busybox
  command: ["sh", "-c", "ip link set vlan{{ $domain_config.multus_vlan }} promisc on"]
  securityContext:
    privileged: true
containers:
- name: {{ $deployment_name }}
  image: keppel.{{ required "A registry mus be set" $values.registry }}.cloud.sap/{{ required "A bird_image must be set" $values.bird_image }}
  securityContext:
    capabilities:
      add: ["NET_ADMIN"]
  imagePullPolicy: Always
  volumeMounts:
  - name: vol-{{ $deployment_name }}
    mountPath: /etc/bird
  - name: bird-socket
    mountPath: /var/run/bird
  livenessProbe:
    exec:<commit_msg>Replace busybox from dockerhub with alpine from keppel<commit_after>{{- define "deployment_bird" -}}
{{- $values := index . 0 }}
{{- $deployment_name := index . 1 | required "deployment_name cannot be empty" }}
{{- $service_number := index . 2 }}
{{- $service := index . 3 }}
{{- $domain_number := index . 4}}
{{- $domain_config := index . 5 }}
initContainers:
- name: {{ $deployment_name }}-init
  image: keppel.{{ required "A registry mus be set" $values.registry }}.cloud.sap/ccloud-dockerhub-mirror/library/alpine:latest
  command: ["sh", "-c", "ip link set vlan{{ $domain_config.multus_vlan }} promisc on"]
  securityContext:
    privileged: true
containers:
- name: {{ $deployment_name }}
  image: keppel.{{ required "A registry mus be set" $values.registry }}.cloud.sap/{{ required "A bird_image must be set" $values.bird_image }}
  securityContext:
    capabilities:
      add: ["NET_ADMIN"]
  imagePullPolicy: Always
  volumeMounts:
  - name: vol-{{ $deployment_name }}
    mountPath: /etc/bird
  - name: bird-socket
    mountPath: /var/run/bird
  livenessProbe:
    exec:
{'fraction_non_alphanumeric': 0.16368159203980098, 'fraction_numerical': 0.005970149253731343, 'mean_word_length': 3.799522673031026, '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': '7376514', 'n_tokens_mistral': 689, 'n_tokens_neox': 675, 'n_words': 182}