Skip to content

Commit bf880c1

Browse files
authored
Merge pull request #144 from arangodb/bugfix/openshift
Fixes needed to run on latest openshift.
2 parents 63835bb + fdc250c commit bf880c1

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

manifests/templates/deployment/rbac.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ rules:
3838

3939
---
4040

41-
## Bind the cluster role granting access to ArangoLocalStorage resources
41+
## Bind the cluster role granting access to ArangoDeployment resources
4242
## to the default service account of the configured namespace.
4343
apiVersion: rbac.authorization.k8s.io/v1beta1
4444
kind: RoleBinding

pkg/apis/deployment/v1alpha/deployment.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,13 @@ type ArangoDeployment struct {
5252
func (d *ArangoDeployment) AsOwner() metav1.OwnerReference {
5353
trueVar := true
5454
return metav1.OwnerReference{
55-
APIVersion: SchemeGroupVersion.String(),
56-
Kind: ArangoDeploymentResourceKind,
57-
Name: d.Name,
58-
UID: d.UID,
59-
Controller: &trueVar,
60-
BlockOwnerDeletion: &trueVar,
55+
APIVersion: SchemeGroupVersion.String(),
56+
Kind: ArangoDeploymentResourceKind,
57+
Name: d.Name,
58+
UID: d.UID,
59+
Controller: &trueVar,
60+
// For now BlockOwnerDeletion does not work on OpenShift, so we leave it out.
61+
//BlockOwnerDeletion: &trueVar,
6162
}
6263
}
6364

pkg/deployment/images.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ func (ib *imagesBuilder) fetchArangoDBImageIDAndVersion(ctx context.Context, ima
167167
args := []string{
168168
"--server.authentication=false",
169169
fmt.Sprintf("--server.endpoint=tcp://[::]:%d", k8sutil.ArangoPort),
170+
"--database.directory=" + k8sutil.ArangodVolumeMountDir,
171+
"--log.output=+",
170172
}
171173
terminationGracePeriod := time.Second * 30
172174
tolerations := make([]v1.Toleration, 0, 2)

0 commit comments

Comments
 (0)