<commit_before>{%- set pillar_get = salt['pillar.get'] %}
{%- set helm_version = pillar_get('docker:k8s:helm:version') %}
{%- if helm_version %}
{%- set helm_tarball = 'helm-v{}-{}-{}.tar.gz'.format(helm_version, grains['kernel'].lower(), grains['osarch']) %}
helm:
  archive.extracted:
    - name: /usr/local/bin/
    - source: https://get.helm.sh/{{ helm_tarball }}
    - source_hash: https://get.helm.sh/{{ helm_tarball }}.sha256
    - archive_format: tar
    - source_hash_update: true
    - options: z
    - require:
      - file: /usr/local/bin
{%- endif %}

{%- set k3d_version = pillar_get('docker:k8s:k3d:version') %}
{%- if k3d_version %}
k3d:
  file.managed:
    - name: /usr/local/bin/k3d
    - source: https://github.com/rancher/k3d/releases/download/v{{ k3d_version }}/k3d-{{ grains['kernel'].lower() }}-{{ grains['osarch'] }}
    - mode: 0755
    - skip_verify: True
    - require:
      - file: /usr/local/bin
{%- endif %}

kubectx:
  pkg.installed

{%- if pillar_get('docker:k8s:telepresence:enabled') %}
telepresence:
  pkgrepo.managed:
    - name: "deb https://packagecloud.io/datawireio/telepresence/{{ grains['os'].lower() }}/ {{ grains['oscodename'] }} main"
    - file: /etc/apt/sources.list.d/datawireio_telepresence.list
    - key_url: https://packagecloud.io/datawireio/telepresence/gpgkey
  pkg.installed:
    - require:
      - pkgrepo: telepresence
{%- endif %}<commit_msg>fix(helm): actually install just the helm binary<commit_after>{%- set pillar_get = salt['pillar.get'] %}
{%- set helm_version = pillar_get('docker:k8s:helm:version') %}
{%- if helm_version %}
{%- set helm_tarball = 'helm-v{}-{}-{}.tar.gz'.format(helm_version, grains['kernel'].lower(), grains['osarch']) %}
helm:
  archive.extracted:
    - name: /usr/local/bin/
    - source: https://get.helm.sh/{{ helm_tarball }}
    - source_hash: https://get.helm.sh/{{ helm_tarball }}.sha256
    - source_hash_update: true
    - enforce_toplevel: false
    - options: --wildcards *-*/helm --strip-components=1
    - if_missing: /usr/local/bin/helm
    - require:
      - file: /usr/local/bin
{%- endif %}

{%- set k3d_version = pillar_get('docker:k8s:k3d:version') %}
{%- if k3d_version %}
k3d:
  file.managed:
    - name: /usr/local/bin/k3d
    - source: https://github.com/rancher/k3d/releases/download/v{{ k3d_version }}/k3d-{{ grains['kernel'].lower() }}-{{ grains['osarch'] }}
    - mode: 0755
    - skip_verify: True
    - require:
      - file: /usr/local/bin
{%- endif %}

kubectx:
  pkg.installed

{%- if pillar_get('docker:k8s:telepresence:enabled') %}
telepresence:
  pkgrepo.managed:
    - name: "deb https://packagecloud.io/datawireio/telepresence/{{ grains['os'].lower() }}/ {{ grains['oscodename'] }} main"
    - file: /etc/apt/sources.list.d/datawireio_telepresence.list
    - key_url: https://packagecloud.io/datawireio/telepresence/gpgkey
  pkg.installed:
    - require:
      - pkgrepo: telepresence
{%- endif %}
{'fraction_non_alphanumeric': 0.19548099965765148, 'fraction_numerical': 0.01266689489900719, 'mean_word_length': 3.361194029850746, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2068418', 'n_tokens_mistral': 1189, 'n_tokens_neox': 1076, 'n_words': 168}