File tree Expand file tree Collapse file tree 3 files changed +56
-2
lines changed Expand file tree Collapse file tree 3 files changed +56
-2
lines changed Original file line number Diff line number Diff line change 1+ # Maintainer Instructions
2+
3+ ## Running tests
4+
5+ To run the entire test set, run:
6+
7+ ``` bash
8+ export DOCKERNAMESPACE=< your docker hub account>
9+ make clean
10+ make build
11+ make run-tests
12+ ```
13+
14+ ## Preparing a release
15+
16+ To prepare for a release, do the following:
17+
18+ - Make sure all tests are OK.
19+
20+ ## Building a release
21+
22+ To make a release you must have:
23+
24+ - A github access token in ` ~/.arangodb/github-token ` that has read/write access
25+ for this repository.
26+ - Push permission for the current docker account (` docker login <your-docker-hub-account> ` )
27+ for the ` arangodb ` docker hub namespace.
28+ - The latest checked out ` master ` branch of this repository.
29+
30+ ``` bash
31+ make release-patch
32+ # or
33+ make release-minor
34+ # or
35+ make release-major
36+ ```
37+
38+ If successful, a new version will be:
39+
40+ - Build docker images, yaml resources & helm charts.
41+ - Tagged in github
42+ - Uploaded as github release
43+ - Pushed as docker image to docker hub
44+ - ` ./VERSION ` will be updated to a ` +git ` version (after the release process)
45+
46+ If the release process fails, it may leave:
47+
48+ - ` ./VERSION ` uncommitted. To resolve, checkout ` master ` or edit it to
49+ the original value and commit to master.
50+ - A git tag named ` <major>.<minor>.<patch> ` in your repository.
51+ To resolve remove it using ` git tag -d ... ` .
52+ - A git tag named ` <major>.<minor>.<patch> ` in this repository in github.
53+ To resolve remove it manually.
Original file line number Diff line number Diff line change @@ -35,10 +35,10 @@ import (
3535 "k8s.io/client-go/tools/leaderelection"
3636 "k8s.io/client-go/tools/leaderelection/resourcelock"
3737
38- "github.com/arangodb/arangosync/pkg/retry"
3938 "github.com/arangodb/kube-arangodb/pkg/util/constants"
4039 "github.com/arangodb/kube-arangodb/pkg/util/k8sutil"
4140 "github.com/arangodb/kube-arangodb/pkg/util/probe"
41+ "github.com/arangodb/kube-arangodb/pkg/util/retry"
4242)
4343
4444// runLeaderElection performs a leader election on a lock with given name in
Original file line number Diff line number Diff line change @@ -26,10 +26,11 @@ import (
2626 "strconv"
2727 "time"
2828
29- "github.com/arangodb/arangosync/pkg/retry"
3029 "k8s.io/api/storage/v1"
3130 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
3231 storagev1 "k8s.io/client-go/kubernetes/typed/storage/v1"
32+
33+ "github.com/arangodb/kube-arangodb/pkg/util/retry"
3334)
3435
3536var (
You can’t perform that action at this time.
0 commit comments