Skip to content

Commit

Permalink
Add build badge (#36)
Browse files Browse the repository at this point in the history
* Add semaphore.yml

* build

* build

* squashed commits

* remove badge

* readme

* test

* pr

* fix kafka issue

* update to fix potential throttling issue

* Mod fix (#7)

* revert go sum

* fix mod build

* add go mod files for logger

* Fix terminate error (#8)

* check error message instead of code for instance not found

* fix test

* Add badge (#9)

* check error message instead of code for instance not found

* fix test

* Fixes for autoscaling API changes (#26)

* Add semaphore.yml

* build

* build

* squashed commits

* remove badge

* readme

* test

* pr

* fix kafka issue

* update to fix potential throttling issue

* Mod fix (#7)

* revert go sum

* fix mod build

* add go mod files for logger

* Fix terminate error (#8)

* check error message instead of code for instance not found

* fix test

* add build badge

* fix image

* Release v0.2 (#28)

* Bump version to 0.3-dev. (#29)

* Fix #30 and release v0.3 (#31)

Testing Done:

- Verified that the new docker image can be built with aws-sdk v1.25.0
- Verified that rolling upgrade actually completed.

* Bump version to 0.4-dev. (#32)

* Added uniformAcrossAzUpdate strategy (#27)

* Modified ClusterState to capture AZ details of a node

* - Added UniformAcrossAzUpdate strategy
- Added Unit tests (More to come)

* Added Unit tests

* Updated validation

* Added uniformAcrossAzUpdate update strategy sample

* Updated README

* Externalize node selectors behind interface

* Removed unnecessary comments

* Log maxUnavailable value

* Add badge (#10)

* check error message instead of code for instance not found

* fix test

* add build badge

* fix image

* update readme

* readme

* Add badge (#11)

* check error message instead of code for instance not found

* fix test

* add build badge

* fix image

* update readme

* fix mod
  • Loading branch information
kianjones4 authored and shrinandj committed Dec 19, 2019
1 parent a7662f6 commit c1a3e9a
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 6 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# RollingUpgrades
# RollingUpgrade

> Reliable, extensible rolling-upgrades of Autoscaling groups in Kubernetes
[![Build Status](https://keikoproj-upgrade-manager.semaphoreci.com/badges/upgrade-manager.svg)](https://keikoproj-upgrade-manager.semaphoreci.com/projects/upgrade-manager)

RollingUpgrade provides a Kubernetes native mechanism for doing rolling-updates of instances in an AutoScaling group using a CRD and a controller.

## What does it do?
Expand Down
2 changes: 1 addition & 1 deletion controllers/rollingupgrade_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ func (r *RollingUpgradeReconciler) runRestack(ctx *context.Context, ruObj *upgra

value, ok := r.ruObjNameToASG.Load(ruObj.Name)
if !ok {
msg := "Failed to find rollup name in map."
msg := "Failed to find rollingUpgrade name in map."
log.Printf(msg)
return 0, errors.New(msg)
}
Expand Down
2 changes: 1 addition & 1 deletion controllers/rollingupgrade_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ func TestRunRestackRollingUpgradeNotInMap(t *testing.T) {
int, err := rcRollingUpgrade.runRestack(&ctx, ruObj, mockAutoscalingGroup, KubeCtlBinary)
g.Expect(int).To(gomega.Equal(0))
g.Expect(err).To(gomega.Not(gomega.BeNil()))
g.Expect(err.Error()).To(gomega.HavePrefix("Failed to find rollup name in map."))
g.Expect(err.Error()).To(gomega.HavePrefix("Failed to find rollingUpgrade name in map."))
}

func TestRunRestackRollingUpgradeNodeNameNotFound(t *testing.T) {
Expand Down
3 changes: 2 additions & 1 deletion controllers/rollup_cluster_state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ limitations under the License.
package controllers

import (
"testing"

"github.com/aws/aws-sdk-go/service/autoscaling"
"github.com/onsi/gomega"
"testing"
)

var clusterState = NewClusterState()
Expand Down
1 change: 1 addition & 0 deletions pkg/log/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ go 1.13
require (
github.com/aws/aws-sdk-go v1.25.0
github.com/sirupsen/logrus v1.4.2
golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553 // indirect
)
13 changes: 11 additions & 2 deletions pkg/log/go.sum
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
github.com/aws/aws-sdk-go v1.25.42 h1:TTsk8HoF5sIq/i5jTjHmY2t3g+b6EiAyiolw7p50UBY=
github.com/aws/aws-sdk-go v1.25.42/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
github.com/aws/aws-sdk-go v1.25.0 h1:MyXUdCesJLBvSSKYcaKeeEwxNUwUpG6/uqVYeH/Zzfo=
github.com/aws/aws-sdk-go v1.25.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af h1:pmfjZENx5imkbgOkpRUYLnmbU7UEFbjtDA2hxJ1ichM=
github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k=
github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4=
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553 h1:efeOvDhwQ29Dj3SdAV/MJf8oukgn+8D8WgaCaRMchF8=
golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894 h1:Cz4ceDQGXuKRnVBDTS23GTn/pU5OE2C0WrNTOYK1Uuc=
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=

0 comments on commit c1a3e9a

Please sign in to comment.