Skip to content

Commit d981d31

Browse files
authored
Merge pull request #81 from arangodb/as-owner-fix
AsOwner no longer things the owner refers to a controller. It refers to the ArangoDeployment
2 parents 562c83d + c668567 commit d981d31

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

pkg/apis/deployment/v1alpha/deployment.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,11 @@ type ArangoDeployment struct {
5050

5151
// AsOwner creates an OwnerReference for the given deployment
5252
func (d *ArangoDeployment) AsOwner() metav1.OwnerReference {
53-
controller := true
5453
return metav1.OwnerReference{
5554
APIVersion: SchemeGroupVersion.String(),
5655
Kind: ArangoDeploymentResourceKind,
5756
Name: d.Name,
5857
UID: d.UID,
59-
Controller: &controller,
6058
}
6159
}
6260

pkg/apis/storage/v1alpha/local_storage.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,10 @@ type ArangoLocalStorage struct {
5252

5353
// AsOwner creates an OwnerReference for the given storage
5454
func (d *ArangoLocalStorage) AsOwner() metav1.OwnerReference {
55-
controller := true
5655
return metav1.OwnerReference{
5756
APIVersion: SchemeGroupVersion.String(),
5857
Kind: ArangoLocalStorageResourceKind,
5958
Name: d.Name,
6059
UID: d.UID,
61-
Controller: &controller,
6260
}
6361
}

0 commit comments

Comments
 (0)