Giter VIP home page Giter VIP logo

thiagobarradas / rancher-vss-ext Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 2.0 635 KB

Rancher Upgrader! - Upgrade, rollback and finish upgrade from Azure DevOps Pipelines

Home Page: https://marketplace.visualstudio.com/items?itemName=ThiagoBarradas.rancher

License: MIT License

TypeScript 93.43% Shell 6.57%
rancher upgrader upgrade deploy rollback azure-extensions azure azure-devops azure-pipelines vss-extension

rancher-vss-ext's Introduction

Rancher Upgrader

Easy upgrade, rollback and finiish upgrade in your rancher cluster.

Usage

Add a new task, select Rancher Upgrader from the Deploy category and configure it as needed.

Tasks:

  • Rancher Upgrader Service
  • Rancher Rollback Last Upgrade
  • Rancher Finish Last Upgrade
  • Rancher Get Current Version

Env Var Ouput:

For task Rancher Get Current Version:

  • RANCHER_CURRENT_IMAGE
  • RANCHER_CURRENT_TAG

Parameters include:

Rancher Upgrader Parameters

  • Service API Url: Ranchel API URL to service. e.g. http://rancher.mycompany.com:8080/v2-beta/projects/{projectId}}/services/{serviceId}
  • Access Key: Access Key generated in Rancher ('API' > 'Keys')
  • Secret Key: Secret Key generated in Rancher ('API' > 'Keys')
  • Force Finish: Force finish before upgrade, if last upgrade is pending
  • Wait Complete: Wait upgrade and new services up
  • Image: Image slug name or full address. e.g. docker.azurecr.io/xxx/my-image
  • Tag: New tag. e.g. 'master-20190701.1', '1.5.3' or 'latest'
  • Install Docker: This task needs docker to work, if you haven't it installed, check this box. Works only with linux
  • Environment Vars Prefix: Import all env vars with this prefix to container
  • Additional Environment Vars: Import this env vars to container

Release notes

New in 1.1.4

  • Add env vars by prefix;
  • Add env vars by name;
  • Add option to install docker (only linux)

New in 1.0.18

  • Fix get current version task output;
  • Add docs for env vars output;

New in 1.0.17

  • Add get current version task;

New in 1.0.16

  • First version with basic commands;
  • Upgrade service;
  • Rollback last upgrade;
  • Finish last upgrade;
  • Change image or tag;
  • Force finish before upgrade;
  • Wait results to continue tasks (success) or abort (fails);

Did you like it? Please, make a donate :)

if you liked this project, please make a contribution and help to keep this and other initiatives, send me some Satochis.

BTC Wallet: 1G535x1rYdMo9CNdTGK3eG6XJddBHdaqfX

1G535x1rYdMo9CNdTGK3eG6XJddBHdaqfX

rancher-vss-ext's People

Contributors

thiagobarradas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

rancher-vss-ext's Issues

Does not work with latest Rancher v 1.6.28

Hello.
When running on build machine I get error: "Ooops! Exception: The given key 'launchConfig' was not present in the dictionary."

##############################

RANCHER UPGRADER!

##############################
Ooops! Exception: The given key 'launchConfig' was not present in the dictionary.

rancher version 1.6.28

build machine info.
docker Version 19.03.8
rancher-upgrade:latest
Kernel Version: 5.4.0-33-generic
Operating System: Ubuntu 20.04 LTS
Architecture: x86_64

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.