Skip to content

Commit 9019165

Browse files
authored
Merge branch 'master' into test/acceptance-dc2dc
2 parents 421a8b5 + c02b089 commit 9019165

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+417
-118
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Change Log
22

3+
## [0.3.1](https://github.com/arangodb/kube-arangodb/tree/0.3.1) (2018-09-25)
4+
[Full Changelog](https://github.com/arangodb/kube-arangodb/compare/0.3.0...0.3.1)
5+
6+
**Closed issues:**
7+
8+
- Helm chart not deploying custom resource definitions [\#254](https://github.com/arangodb/kube-arangodb/issues/254)
9+
- `go get` failing due to nonexistent arangodb/arangosync repo [\#249](https://github.com/arangodb/kube-arangodb/issues/249)
10+
- Helm chart download links broken \(404\) [\#248](https://github.com/arangodb/kube-arangodb/issues/248)
11+
- Make it easy to deploy in another namespace [\#230](https://github.com/arangodb/kube-arangodb/issues/230)
12+
- Deployment Failed to Start in different Namespace other than Default [\#223](https://github.com/arangodb/kube-arangodb/issues/223)
13+
14+
**Merged pull requests:**
15+
16+
- Bugfix/sed on linux [\#259](https://github.com/arangodb/kube-arangodb/pull/259)
17+
- README updates, removing `kubectl apply -f crd.yaml` [\#256](https://github.com/arangodb/kube-arangodb/pull/256)
18+
- Include CRD in helm chart [\#255](https://github.com/arangodb/kube-arangodb/pull/255)
19+
320
## [0.3.0](https://github.com/arangodb/kube-arangodb/tree/0.3.0) (2018-09-07)
421
[Full Changelog](https://github.com/arangodb/kube-arangodb/compare/0.2.2...0.3.0)
522

Jenkinsfile.groovy

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def buildTestSteps(Map myParams, String kubeConfigRoot, String kubeconfig) {
8787
"DEPLOYMENTNAMESPACE=${myParams.TESTNAMESPACE}-${env.GIT_COMMIT}",
8888
"DOCKERNAMESPACE=${myParams.DOCKERNAMESPACE}",
8989
"ENTERPRISEIMAGE=${myParams.ENTERPRISEIMAGE}",
90+
"ARANGODIMAGE=${myParams.ARANGODIMAGE}",
9091
"IMAGETAG=jenkins-test",
9192
"KUBECONFIG=${kubeConfigRoot}/${kubeconfig}",
9293
"LONG=${myParams.LONG ? 1 : 0}",
@@ -129,7 +130,8 @@ pipeline {
129130
string(name: 'DOCKERNAMESPACE', defaultValue: 'arangodb', description: 'DOCKERNAMESPACE sets the docker registry namespace in which the operator docker image will be pushed', )
130131
string(name: 'KUBECONFIGS', defaultValue: 'kube-ams1,scw-183a3b', description: 'KUBECONFIGS is a comma separated list of Kubernetes configuration files (relative to /home/jenkins/.kube) on which the tests are run', )
131132
string(name: 'TESTNAMESPACE', defaultValue: 'jenkins', description: 'TESTNAMESPACE sets the kubernetes namespace to ru tests in (this must be short!!)', )
132-
string(name: 'ENTERPRISEIMAGE', defaultValue: '', description: 'ENTERPRISEIMAGE sets the docker image used for enterprise tests)', )
133+
string(name: 'ENTERPRISEIMAGE', defaultValue: '', description: 'ENTERPRISEIMAGE sets the docker image used for enterprise tests', )
134+
string(name: 'ARANGODIMAGE', defaultValue: '', description: 'ARANGODIMAGE sets the docker image used for tests (except enterprise and update tests)', )
133135
string(name: 'TESTOPTIONS', defaultValue: '', description: 'TESTOPTIONS is used to pass additional test options to the integration test', )
134136
}
135137
stages {

Makefile

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,20 @@ GOVERSION := 1.10.0-alpine
2727
PULSAR := $(GOBUILDDIR)/bin/pulsar$(shell go env GOEXE)
2828
GOASSETSBUILDER := $(GOBUILDDIR)/bin/go-assets-builder$(shell go env GOEXE)
2929

30-
DOCKERFILE := Dockerfile
30+
DOCKERFILE := Dockerfile
3131
DOCKERTESTFILE := Dockerfile.test
3232
DOCKERDURATIONTESTFILE := tests/duration/Dockerfile
3333

34-
ifndef LOCALONLY
34+
ifndef LOCALONLY
3535
PUSHIMAGES := 1
3636
IMAGESHA256 := true
3737
else
3838
IMAGESHA256 := false
3939
endif
4040

41-
ifdef IMAGETAG
41+
ifdef IMAGETAG
4242
IMAGESUFFIX := :$(IMAGETAG)
43-
else
43+
else
4444
IMAGESUFFIX := :dev
4545
endif
4646

@@ -84,8 +84,8 @@ TESTBINNAME := $(PROJECT)_test
8484
TESTBIN := $(BINDIR)/$(TESTBINNAME)
8585
DURATIONTESTBINNAME := $(PROJECT)_duration_test
8686
DURATIONTESTBIN := $(BINDIR)/$(DURATIONTESTBINNAME)
87-
RELEASE := $(GOBUILDDIR)/bin/release
88-
GHRELEASE := $(GOBUILDDIR)/bin/github-release
87+
RELEASE := $(GOBUILDDIR)/bin/release
88+
GHRELEASE := $(GOBUILDDIR)/bin/github-release
8989

9090
TESTLENGTHOPTIONS := -test.short
9191
TESTTIMEOUT := 20m
@@ -94,7 +94,7 @@ ifeq ($(LONG), 1)
9494
TESTTIMEOUT := 180m
9595
endif
9696
ifdef VERBOSE
97-
TESTVERBOSEOPTIONS := -v
97+
TESTVERBOSEOPTIONS := -v
9898
endif
9999

100100
SOURCES := $(shell find $(SRCDIR) -name '*.go' -not -path './test/*')
@@ -176,7 +176,7 @@ update-vendor:
176176
# Manually restore arangosync vendor with: git checkout deps/github.com/arangodb/arangosync
177177

178178
.PHONY: update-generated
179-
update-generated: $(GOBUILDDIR)
179+
update-generated: $(GOBUILDDIR)
180180
@docker build $(SRCDIR)/tools/codegen --build-arg GOVERSION=$(GOVERSION) -t k8s-codegen
181181
docker run \
182182
--rm \
@@ -232,7 +232,7 @@ ifdef PUSHIMAGES
232232
docker push $(OPERATORIMAGE)
233233
endif
234234

235-
# Manifests
235+
# Manifests
236236

237237
.PHONY: manifests
238238
manifests: $(GOBUILDDIR)
@@ -268,7 +268,7 @@ run-unit-tests: $(GOBUILDDIR) $(SOURCES)
268268
$(REPOPATH)/pkg/util/k8sutil \
269269
$(REPOPATH)/pkg/util/k8sutil/test \
270270
$(REPOPATH)/pkg/util/probe \
271-
$(REPOPATH)/pkg/util/validation
271+
$(REPOPATH)/pkg/util/validation
272272

273273
$(TESTBIN): $(GOBUILDDIR) $(SOURCES)
274274
@mkdir -p $(BINDIR)
@@ -299,13 +299,12 @@ ifneq ($(DEPLOYMENTNAMESPACE), default)
299299
$(ROOTDIR)/scripts/kube_delete_namespace.sh $(DEPLOYMENTNAMESPACE)
300300
kubectl create namespace $(DEPLOYMENTNAMESPACE)
301301
endif
302-
kubectl apply -f manifests/crd.yaml
303302
kubectl apply -f $(MANIFESTPATHSTORAGE)
304303
kubectl apply -f $(MANIFESTPATHDEPLOYMENT)
305304
kubectl apply -f $(MANIFESTPATHDEPLOYMENTREPLICATION)
306305
kubectl apply -f $(MANIFESTPATHTEST)
307306
$(ROOTDIR)/scripts/kube_create_storage.sh $(DEPLOYMENTNAMESPACE)
308-
$(ROOTDIR)/scripts/kube_run_tests.sh $(DEPLOYMENTNAMESPACE) $(TESTIMAGE) "$(ENTERPRISEIMAGE)" $(TESTTIMEOUT) $(TESTLENGTHOPTIONS)
307+
$(ROOTDIR)/scripts/kube_run_tests.sh $(DEPLOYMENTNAMESPACE) $(TESTIMAGE) "$(ARANGODIMAGE)" "$(ENTERPRISEIMAGE)" $(TESTTIMEOUT) $(TESTLENGTHOPTIONS)
309308

310309
$(DURATIONTESTBIN): $(GOBUILDDIR) $(SOURCES)
311310
@mkdir -p $(BINDIR)
@@ -377,20 +376,20 @@ $(RELEASE): $(GOBUILDDIR) $(SOURCES) $(GHRELEASE)
377376
.PHONY: build-ghrelease
378377
build-ghrelease: $(GHRELEASE)
379378

380-
$(GHRELEASE): $(GOBUILDDIR)
379+
$(GHRELEASE): $(GOBUILDDIR)
381380
GOPATH=$(GOBUILDDIR) go build -o $(GHRELEASE) github.com/aktau/github-release
382381

383382
.PHONY: release-patch
384383
release-patch: $(RELEASE)
385-
GOPATH=$(GOBUILDDIR) $(RELEASE) -type=patch
384+
GOPATH=$(GOBUILDDIR) $(RELEASE) -type=patch
386385

387386
.PHONY: release-minor
388387
release-minor: $(RELEASE)
389388
GOPATH=$(GOBUILDDIR) $(RELEASE) -type=minor
390389

391390
.PHONY: release-major
392391
release-major: $(RELEASE)
393-
GOPATH=$(GOBUILDDIR) $(RELEASE) -type=major
392+
GOPATH=$(GOBUILDDIR) $(RELEASE) -type=major
394393

395394
## Kubernetes utilities
396395

@@ -407,9 +406,8 @@ delete-operator:
407406

408407
.PHONY: redeploy-operator
409408
redeploy-operator: delete-operator manifests
410-
kubectl apply -f manifests/crd.yaml
411409
kubectl apply -f $(MANIFESTPATHSTORAGE)
412410
kubectl apply -f $(MANIFESTPATHDEPLOYMENT)
413411
kubectl apply -f $(MANIFESTPATHDEPLOYMENTREPLICATION)
414412
kubectl apply -f $(MANIFESTPATHTEST)
415-
kubectl get pods
413+
kubectl get pods

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,25 @@ it is intended to be.
4141
```bash
4242
# The following will install the operator for `ArangoDeployment` &
4343
# `ArangoDeplomentReplication` resources.
44-
helm install https://github.com/arangodb/kube-arangodb/releases/download/0.3.0/kube-arangodb.tgz
44+
helm install https://github.com/arangodb/kube-arangodb/releases/download/0.3.1/kube-arangodb.tgz
4545
# To use `ArangoLocalStorage`, also run
46-
helm install https://github.com/arangodb/kube-arangodb/releases/download/0.3.0/kube-arangodb-storage.tgz
46+
helm install https://github.com/arangodb/kube-arangodb/releases/download/0.3.1/kube-arangodb-storage.tgz
4747
```
4848

4949
## Installation of latest release using Kubectl
5050

5151
```bash
52-
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/0.3.0/manifests/crd.yaml
53-
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/0.3.0/manifests/arango-deployment.yaml
52+
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/0.3.1/manifests/arango-deployment.yaml
5453
# To use `ArangoLocalStorage`, also run
55-
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/0.3.0/manifests/arango-storage.yaml
54+
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/0.3.1/manifests/arango-storage.yaml
5655
# To use `ArangoDeploymentReplication`, also run
57-
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/0.3.0/manifests/arango-deployment-replication.yaml
56+
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/0.3.1/manifests/arango-deployment-replication.yaml
5857
```
5958

6059
## Building
6160

6261
```bash
6362
DOCKERNAMESPACE=<your dockerhub account> make
64-
kubectl apply -f manifests/crd.yaml
6563
kubectl apply -f manifests/arango-deployment-dev.yaml
6664
# To use `ArangoLocalStorage`, also run
6765
kubectl apply -f manifests/arango-storage-dev.yaml

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.3.0+git
1+
0.3.1+git

docs/Manual/Deployment/Kubernetes/DeploymentResource.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,12 @@ servers.
325325
When not specified, no monitoring token is used.
326326
The default value is empty.
327327

328-
### `spec.ipv6.forbidden: bool`
328+
### `spec.disableIPV6: bool`
329329

330330
This setting prevents the use of IPv6 addresses by ArangoDB servers.
331-
The default is `false`.
331+
The default is `false`.
332+
333+
This setting cannot be changed after the deployment has been created.
332334

333335
### `spec.<group>.count: number`
334336

docs/Manual/Deployment/Kubernetes/ServicesAndLoadBalancer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ additions:
7272
## Load balancer
7373

7474
If you want full control of the `Services` needed to access the ArangoDB deployment
75-
from outside your Kubernetes cluster, set `spec.externalAccess.Type` of the `ArangoDeployment` to `None`
75+
from outside your Kubernetes cluster, set `spec.externalAccess.type` of the `ArangoDeployment` to `None`
7676
and create a `Service` as specified below.
7777

7878
Create a `Service` of type `LoadBalancer` or `NodePort`, depending on your

docs/Manual/Deployment/Kubernetes/Usage.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ run (replace `<version>` with the version of the operator that you want to insta
4040

4141
```bash
4242
export URLPREFIX=https://raw.githubusercontent.com/arangodb/kube-arangodb/<version>/manifests
43-
kubectl apply -f $URLPREFIX/crd.yaml
4443
kubectl apply -f $URLPREFIX/arango-deployment.yaml
4544
```
4645

docs/Manual/Tutorials/Kubernetes/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ For now, any recent Kubernetes cluster will do (e.g. `minikube`).
3737
Then run (replace `<version>` with the version of the operator that you want to install):
3838

3939
```bash
40-
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/<version>/manifests/crd.yaml
4140
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/<version>/manifests/arango-deployment.yaml
4241
# Optional
4342
kubectl apply -f https://raw.githubusercontent.com/arangodb/kube-arangodb/<version>/manifests/arango-storage.yaml

docs/design/acceptance_test.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Before the test, record the following parameters for the platform the test is ex
1010

1111
- Name of the platform
1212
- Version of the platform
13-
- Upstream Kubernetes version used by the platform
14-
- Number of nodes used by the Kubernetes cluster
13+
- Upstream Kubernetes version used by the platform (run `kubctrl version`)
14+
- Number of nodes used by the Kubernetes cluster (run `kubectrl get node`)
1515
- `StorageClasses` provided by the platform (run `kubectl get storageclass`)
16-
- Does the platform use RBAC?
16+
- Does the platform use RBAC? (run `kubectl describe clusterrolebinding`)
1717
- Does the platform support services of type `LoadBalancer`?
1818

1919
If one of the above questions can have multiple answers (e.g. different Kubernetes versions)

0 commit comments

Comments
 (0)