Merge pull request #311 from vmware-tanzu/dont-block-owner-deletion

Remove blockOwnerDeletion from the supervisor secrets
This commit is contained in:
Margo Crawford 2021-01-05 13:18:39 -08:00 committed by GitHub
commit 0d4588aa8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 22 deletions

View File

@ -206,7 +206,6 @@ func generateSecret(namespace, name string, labels map[string]string, secretData
Kind: "Deployment", Kind: "Deployment",
} }
blockOwnerDeletion := true
isController := false isController := false
return &corev1.Secret{ return &corev1.Secret{
@ -219,7 +218,6 @@ func generateSecret(namespace, name string, labels map[string]string, secretData
Kind: deploymentGVK.Kind, Kind: deploymentGVK.Kind,
Name: owner.GetName(), Name: owner.GetName(),
UID: owner.GetUID(), UID: owner.GetUID(),
BlockOwnerDeletion: &blockOwnerDeletion,
Controller: &isController, Controller: &isController,
}, },
}, },

View File

@ -268,7 +268,6 @@ func TestSupervisorSecretsControllerSync(t *testing.T) {
generatedSymmetricKey = []byte("some-neato-32-byte-generated-key") generatedSymmetricKey = []byte("some-neato-32-byte-generated-key")
otherGeneratedSymmetricKey = []byte("some-funio-32-byte-generated-key") otherGeneratedSymmetricKey = []byte("some-funio-32-byte-generated-key")
blockOwnerDeletion = true
isController = false isController = false
generatedSecret = &corev1.Secret{ generatedSecret = &corev1.Secret{
ObjectMeta: metav1.ObjectMeta{ ObjectMeta: metav1.ObjectMeta{
@ -280,7 +279,6 @@ func TestSupervisorSecretsControllerSync(t *testing.T) {
Kind: ownerGVK.Kind, Kind: ownerGVK.Kind,
Name: owner.GetName(), Name: owner.GetName(),
UID: owner.GetUID(), UID: owner.GetUID(),
BlockOwnerDeletion: &blockOwnerDeletion,
Controller: &isController, Controller: &isController,
}, },
}, },
@ -302,7 +300,6 @@ func TestSupervisorSecretsControllerSync(t *testing.T) {
Kind: ownerGVK.Kind, Kind: ownerGVK.Kind,
Name: owner.GetName(), Name: owner.GetName(),
UID: owner.GetUID(), UID: owner.GetUID(),
BlockOwnerDeletion: &blockOwnerDeletion,
Controller: &isController, Controller: &isController,
}, },
}, },