20tab/talos

Change apply nginx-ingress in do_setup.sh with the latest version of do/deploy.yaml

trottomv opened this issue · 0 comments

At moment the kubectl apply of DO deploy of ingress-nginx is versioned to the release of controller.
The command executed in do_setup.sh scripts is
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.40.2/deploy/static/provider/do/deploy.yaml

I suggest a cuple of solutions:

  1. Change the url of deploy.yaml taking it from the master branch of kubernetes/ingress-nginx
    https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/do/deploy.yaml

  2. Or download the latest version of kubernetes/ingress-nginx with the python library lastversion and get the do/deploy.yaml from local path

  3. Get tags of kubernetes/ingress-nginx with:
    curl https://api.github.com/repos/kubernetes/ingress-nginx/tags?per_page=100
    this command respond a json with data of first 100 tags of the repo, at this point we can parse the first tag that contains "controller" in the tag name and get his version.