Skip to content

Commit

Permalink
prepare 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Wilhelm committed Sep 8, 2017
1 parent e7cb654 commit 1512580
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Consul Leader Election CHANGELOG

## 0.2.0

##### Added:
* `-leader-exit-code`: overwrite exit code if leader (Default: 0)
* `-not-leader-exit-code`: overwrite exit code if not leader (Default: 1)
* `-error-exit-code`: overwrite exit code for errors (Default: 2)

##### Changed:
* check key before trying to acquire it

## 0.1.0

* Initial release
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ Exits with `2` if the local node is not able to acquire the session and not owne

## Arguments

flag.StringVar(&key, "key", "", "-key leader")
flag.StringVar(&keyValue, "key-value", "", "-key-value value (Default: consul node name)")
flag.StringVar(&sessionName, "session-name", "", "-session-name sessionName (Default: -name)")
flag.Var(&healthChecks, "health-check", "-health-check service:serviceName (serfHealth is set by default)")

`-key`

Name of the key, which will be used to do leader election. All nodes that are participating should agree on a given key to coordinate.
Expand All @@ -33,6 +28,15 @@ Exits with `2` if the local node is not able to acquire the session and not owne

Health checks, which will be used for the session. (`serfHealth` is set by default)

`-leader-exit-code`
Overwrite exit code if leader. (Default: 0)

`-not-leader-exit-code`
Overwrite exit code if not leader. (Default: 1)

`-error-exit-code`
Overwrite exit code for errors. (Default: 2)

## License

Copyright 2017 ATVAG GmbH
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
0.2.0

0 comments on commit 1512580

Please sign in to comment.