Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Commit 0514741

Browse files
authored
Merge pull request #249 from jrasell/panic-fix-0.2.5-release
Fix panic in deployment due to unsafe count checking on taskgroups
2 parents 77da5ec + a737a22 commit 0514741

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.2.5 (25 October 2018)
2+
3+
BUG FIXES:
4+
* Fix panic in deployment where count is not specified due to unsafe count checking on task groups [GH-249](https://github.com/jrasell/levant/pull/249)
5+
16
## 0.2.4 (24 October 2018)
27

38
BUG FIXES:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ FROM alpine:latest
33
LABEL maintainer James Rasell<(jamesrasell@gmail.com)> (@jrasell)
44
LABEL vendor "jrasell"
55

6-
ENV LEVANT_VERSION 0.2.4
6+
ENV LEVANT_VERSION 0.2.5
77

88
WORKDIR /usr/bin/
99

levant/deploy.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,9 @@ func (l *levantDeployment) dynamicGroupCountUpdater() error {
492492

493493
func (l *levantDeployment) isJobZeroCount() bool {
494494
for _, tg := range l.config.Template.Job.TaskGroups {
495-
if *tg.Count > 0 {
495+
if tg.Count == nil {
496+
return false
497+
} else if *tg.Count > 0 {
496498
return false
497499
}
498500
}

version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package version
33
import "fmt"
44

55
// Version is the main version number that is being run at the moment.
6-
const Version = "0.2.4"
6+
const Version = "0.2.5"
77

88
// VersionPrerelease is a pre-release marker for the version. If this is ""
99
// (empty string) then it means that it is a final release. Otherwise, this is

0 commit comments

Comments
 (0)