Skip to content

Commit

Permalink
Fix rbac policy issue with blockOwnerDeletion (#384)
Browse files Browse the repository at this point in the history
Signed-off-by: Gary Brown <[email protected]>
  • Loading branch information
objectiser authored Apr 30, 2019
1 parent 01754a7 commit 93ce81b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pkg/cmd/start/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,11 @@ func setOwnerReference(operatorService *corev1.Service) error {
flag := true
operatorService.OwnerReferences = []metav1.OwnerReference{
metav1.OwnerReference{
APIVersion: "apps/v1",
Kind: "Deployment",
Name: deployment.Name,
UID: deployment.UID,
Controller: &flag,
BlockOwnerDeletion: &flag,
APIVersion: "apps/v1",
Kind: "Deployment",
Name: deployment.Name,
UID: deployment.UID,
Controller: &flag,
},
}

Expand Down

0 comments on commit 93ce81b

Please sign in to comment.