<commit_before>apiVersion: kops/v1alpha2
kind: Cluster
metadata:
  name: {{getenv "CLUSTER_NAME"}}
spec:
  api:
    loadBalancer:
      type: Public
  authorization:
    alwaysAllow: {}
  channel: stable
  cloudLabels:
    Cluster: {{getenv "CLUSTER_NAME"}}
  cloudProvider: aws
  configBase: {{getenv "KOPS_STATE_STORE" }}/{{getenv "CLUSTER_NAME"}}
  {{if getenv "KOPS_DNS_ZONE" }}
  dnsZone: {{getenv "KOPS_DNS_ZONE"}}
  {{else}}
  dnsZone: {{getenv "CLUSTER_NAME" | regexp.Replace "^[^.]+\\." ""}}
  {{end}}
  etcdClusters:
  - etcdMembers:
    {{- range (getenv "KOPS_AVAILABILITY_ZONES" | strings.Split ",") }}
    - encryptedVolume: true
      instanceGroup: master-{{.}}
      name: {{. | regexp.Replace "^.*[0-9]" ""}}
    {{- end }}
    name: main<commit_msg>Add `additionalPolicies` to `kops` template (#118)<commit_after>apiVersion: kops/v1alpha2
kind: Cluster
metadata:
  name: {{getenv "CLUSTER_NAME"}}
spec:
  additionalPolicies:
      nodes: |
        [
          {
            "Sid": "assumeClusterRole",
            "Action": [
              "sts:AssumeRole"
            ],
            "Effect": "Allow",
            "Resource": ["*"]
          }
        ]
  api:
    loadBalancer:
      type: Public
  authorization:
    alwaysAllow: {}
  channel: stable
  cloudLabels:
    Cluster: {{getenv "CLUSTER_NAME"}}
  cloudProvider: aws
  configBase: {{getenv "KOPS_STATE_STORE" }}/{{getenv "CLUSTER_NAME"}}
  {{if getenv "KOPS_DNS_ZONE" }}
  dnsZone: {{getenv "KOPS_DNS_ZONE"}}
  {{else}}
  dnsZone: {{getenv "CLUSTER_NAME" | regexp.Replace "^[^.]+\\." ""}}
  {{end}}
  etcdClusters:
  - etcdMembers:
    {{- range (getenv "KOPS_AVAILABILITY_ZONES" | strings.Split ",") }}
    - encryptedVolume: true
      instanceGroup: master-{{.}}
      name: {{. | regexp.Replace "^.*[0-9]" ""}}
    {{- end }}
    name: main
{'fraction_non_alphanumeric': 0.17589041095890412, 'fraction_numerical': 0.006027397260273973, 'mean_word_length': 2.910064239828694, 'pattern_counts': {'":': 4, '<': 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': '504220', 'n_tokens_mistral': 700, 'n_tokens_neox': 675, 'n_words': 125}