mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
Merge pull request #144 from arangodb/bugfix/openshift
Fixes needed to run on latest openshift.
This commit is contained in:
commit
bf880c1d93
3 changed files with 10 additions and 7 deletions
|
@ -38,7 +38,7 @@ rules:
|
|||
|
||||
---
|
||||
|
||||
## Bind the cluster role granting access to ArangoLocalStorage resources
|
||||
## Bind the cluster role granting access to ArangoDeployment resources
|
||||
## to the default service account of the configured namespace.
|
||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
kind: RoleBinding
|
||||
|
|
|
@ -52,12 +52,13 @@ type ArangoDeployment struct {
|
|||
func (d *ArangoDeployment) AsOwner() metav1.OwnerReference {
|
||||
trueVar := true
|
||||
return metav1.OwnerReference{
|
||||
APIVersion: SchemeGroupVersion.String(),
|
||||
Kind: ArangoDeploymentResourceKind,
|
||||
Name: d.Name,
|
||||
UID: d.UID,
|
||||
Controller: &trueVar,
|
||||
BlockOwnerDeletion: &trueVar,
|
||||
APIVersion: SchemeGroupVersion.String(),
|
||||
Kind: ArangoDeploymentResourceKind,
|
||||
Name: d.Name,
|
||||
UID: d.UID,
|
||||
Controller: &trueVar,
|
||||
// For now BlockOwnerDeletion does not work on OpenShift, so we leave it out.
|
||||
//BlockOwnerDeletion: &trueVar,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -167,6 +167,8 @@ func (ib *imagesBuilder) fetchArangoDBImageIDAndVersion(ctx context.Context, ima
|
|||
args := []string{
|
||||
"--server.authentication=false",
|
||||
fmt.Sprintf("--server.endpoint=tcp://[::]:%d", k8sutil.ArangoPort),
|
||||
"--database.directory=" + k8sutil.ArangodVolumeMountDir,
|
||||
"--log.output=+",
|
||||
}
|
||||
terminationGracePeriod := time.Second * 30
|
||||
tolerations := make([]v1.Toleration, 0, 2)
|
||||
|
|
Loading…
Reference in a new issue