Skip to content

Commit 4cbb6c4

Browse files
committed
Leave BlockOwnerDeletion untouched
1 parent 74f0937 commit 4cbb6c4

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

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

0 commit comments

Comments
 (0)