pavedroad-io / roadctl

A kubectl compatible CLI for managing and creating applications and defining/managing CI/CD environments. The roadctl command uses blueprints based on provent design patterns driven by produciton metrics.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wget install fails - it requires curl to be installed

CandaceScharber opened this issue · comments

When I used the wget install command that is on the Install md file, the install failed because I didn't install Curl first. The salt state to install kubectl requires curl.

We need to remove the wget install option and add a note that they must install Curl (if not already installed).

[...]
  {% set kubectl_snap_install = False %}
  {% set kubectl_path = '/usr/local/bin/' %}

  {% if kubectl_binary_install %}
    {% set kubectl_prefix = 'https://storage.googleapis.com/kubernetes-release/release/' %}
    {% set version = salt.cmd.run('curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt') %}    <======================
    {% if grains.os_family == 'MacOS' %}
      {% set kubectl_version = version + '/bin/darwin/amd64/kubectl' %}
    {% else %}
      {% set kubectl_version = version + '/bin/linux/amd64/kubectl' %}
    {% endif %}
[...] 

Both methods are supported now