From 07c9c0169985759c4aa70894dbcdb58cdad1e121 Mon Sep 17 00:00:00 2001 From: Ewout Prangsma Date: Thu, 10 May 2018 09:22:30 +0200 Subject: [PATCH] Set owner as controller --- pkg/apis/deployment/v1alpha/deployment.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/apis/deployment/v1alpha/deployment.go b/pkg/apis/deployment/v1alpha/deployment.go index d5ccd5663..62c9cd612 100644 --- a/pkg/apis/deployment/v1alpha/deployment.go +++ b/pkg/apis/deployment/v1alpha/deployment.go @@ -50,11 +50,13 @@ type ArangoDeployment struct { // AsOwner creates an OwnerReference for the given deployment func (d *ArangoDeployment) AsOwner() metav1.OwnerReference { + isControllerOf := true return metav1.OwnerReference{ APIVersion: SchemeGroupVersion.String(), Kind: ArangoDeploymentResourceKind, Name: d.Name, UID: d.UID, + Controller: &isControllerOf, } }