<commit_before>{{- define "f5_deployment" -}}
{{- $context := index . 0 -}}
{{- $loadbalancer := index . 1 -}}
kind: Deployment
{{- if $.Capabilities.APIVersions.Has "apps/v1" }}
apiVersion: apps/v1
{{- else }}
apiVersion: extensions/v1beta1
{{- end }}

metadata:
  name: neutron-f5agent-{{ $loadbalancer.name }}
  labels:
    system: openstack
    type: backend
    component: neutron
spec:
  replicas: 1
  revisionHistoryLimit: 5
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxUnavailable: 0
      maxSurge: 3<commit_msg>[neutron] fix capability check for legacy f5 deployment<commit_after>{{- define "f5_deployment" -}}
{{- $context := index . 0 -}}
{{- $loadbalancer := index . 1 -}}
kind: Deployment
{{- if $context.Capabilities.APIVersions.Has "apps/v1" }}
apiVersion: apps/v1
{{- else }}
apiVersion: extensions/v1beta1
{{- end }}

metadata:
  name: neutron-f5agent-{{ $loadbalancer.name }}
  labels:
    system: openstack
    type: backend
    component: neutron
spec:
  replicas: 1
  revisionHistoryLimit: 5
  strategy:
    type: RollingUpdate
    rollingUpdate:
      maxUnavailable: 0
      maxSurge: 3
{'fraction_non_alphanumeric': 0.14348981399468555, 'fraction_numerical': 0.022143489813994686, 'mean_word_length': 3.484126984126984, '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': '3435899', 'n_tokens_mistral': 404, 'n_tokens_neox': 386, 'n_words': 94}