Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • v2.28.0
  • v2.27.0
  • v2.25.1
  • v2.24.3
  • v2.26.0
  • v2.24.2
  • v2.25.0
  • v2.24.1
  • v2.22.2
  • v2.23.3
  • v2.24.0
  • v2.23.2
  • v2.23.1
  • v2.23.0
  • v2.22.1
  • v2.22.0
  • v2.21.0
  • v2.20.0
  • v2.19.1
  • v2.18.2
21 results

download_hash.py

  • Max Gautier's avatar
    a7616231
    download_hash.py: generalized and data-driven · a7616231
    Max Gautier authored
    The script is currently limited to one hardcoded URL for kubernetes
    related binaries, and a fixed set of architectures.
    
    The solution is three-fold:
    1. Use an url template dictionary for each download -> this allow to easily
       add support for new downloads.
    2. Source the architectures to search from the existing data
    3. Enumerate the existing versions in the data and start searching from
       the last one until no newer version is found (newer in the version
       order sense, irrespective of actual age)
    download_hash.py: generalized and data-driven
    Max Gautier authored
    The script is currently limited to one hardcoded URL for kubernetes
    related binaries, and a fixed set of architectures.
    
    The solution is three-fold:
    1. Use an url template dictionary for each download -> this allow to easily
       add support for new downloads.
    2. Source the architectures to search from the existing data
    3. Enumerate the existing versions in the data and start searching from
       the last one until no newer version is found (newer in the version
       order sense, irrespective of actual age)