Skip to content

Commit 454831b

Browse files
committed
Merge branch 'master' into bugfix/resilience-improvements
2 parents b8955e8 + f0a0029 commit 454831b

File tree

3 files changed

+56
-2
lines changed

3 files changed

+56
-2
lines changed

MAINTAINERS.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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.

pkg/operator/operator_leader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

pkg/util/k8sutil/storageclass.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

3536
var (

0 commit comments

Comments
 (0)