Skip to content
♻️ Now you can easily rollback to previous deployed images whatever you want on k8s environment
Go
Branch: master
Clone or download
Batuhan Apaydın
Batuhan Apaydın Revert "release disabled"
This reverts commit 4347af2.
Latest commit 6d706be Sep 18, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
client
command
kubernetes Format all go files Sep 10, 2019
.gitignore vendor added May 31, 2019
.goreleaser.yml Revert "release disabled" Sep 18, 2019
LICENSE Create LICENSE May 29, 2019
README.md
go.mod
go.sum
main.go

README.md

alt text
CircleCI Go Report Card

EasyRollback

EasyRollback is aim to easy rollback to previous images that deployed on k8s environment

Installation

You should have go installation first go to install Golang. For OSX

brew install go

Then get project

go get -v github.com/Trendyol/easy-rollback

Or you can easily download project via brew (OSX package manager)

brew tap trendyol/trendyol-tap
brew install easy-rollback

Or you can install the pre-compiled binary

wget https://github.com/Trendyol/easy-rollback/releases/download/v1.0.10/easy-rollback_1.0.10_Linux_x86_64.tar.gz
tar xvfz easy-rollback_1.0.10_Linux_x86_64.tar.gz
mv easy-rollback /usr/local/bin

Usage

Project look at your .kube/config file to read current-context configs hence of you should have kubernetes environment configurations inside .kube/config.

easy-rollback list --deployment <deployment> --namespace <namespace> --> Will list all of your previous deployed images.
easy-rollback rollback --to-image <image> --deployment <deployment> --namespace <namespace> --> Will rolback your deployment to given image.

License

MIT

You can’t perform that action at this time.