Remove blockOwnerDeletion from the supervisor secrets
Signed-off-by: Margo Crawford <margaretc@vmware.com>
This commit is contained in:
parent
dd3c990a51
commit
40753d1454
@ -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{
|
||||||
@ -215,12 +214,11 @@ func generateSecret(namespace, name string, labels map[string]string, secretData
|
|||||||
Namespace: namespace,
|
Namespace: namespace,
|
||||||
OwnerReferences: []metav1.OwnerReference{
|
OwnerReferences: []metav1.OwnerReference{
|
||||||
{
|
{
|
||||||
APIVersion: deploymentGVK.GroupVersion().String(),
|
APIVersion: deploymentGVK.GroupVersion().String(),
|
||||||
Kind: deploymentGVK.Kind,
|
Kind: deploymentGVK.Kind,
|
||||||
Name: owner.GetName(),
|
Name: owner.GetName(),
|
||||||
UID: owner.GetUID(),
|
UID: owner.GetUID(),
|
||||||
BlockOwnerDeletion: &blockOwnerDeletion,
|
Controller: &isController,
|
||||||
Controller: &isController,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Labels: labels,
|
Labels: labels,
|
||||||
|
@ -268,20 +268,18 @@ 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{
|
||||||
Name: generatedSecretName,
|
Name: generatedSecretName,
|
||||||
Namespace: generatedSecretNamespace,
|
Namespace: generatedSecretNamespace,
|
||||||
OwnerReferences: []metav1.OwnerReference{
|
OwnerReferences: []metav1.OwnerReference{
|
||||||
{
|
{
|
||||||
APIVersion: ownerGVK.GroupVersion().String(),
|
APIVersion: ownerGVK.GroupVersion().String(),
|
||||||
Kind: ownerGVK.Kind,
|
Kind: ownerGVK.Kind,
|
||||||
Name: owner.GetName(),
|
Name: owner.GetName(),
|
||||||
UID: owner.GetUID(),
|
UID: owner.GetUID(),
|
||||||
BlockOwnerDeletion: &blockOwnerDeletion,
|
Controller: &isController,
|
||||||
Controller: &isController,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Labels: labels,
|
Labels: labels,
|
||||||
@ -298,12 +296,11 @@ func TestSupervisorSecretsControllerSync(t *testing.T) {
|
|||||||
Namespace: generatedSecretNamespace,
|
Namespace: generatedSecretNamespace,
|
||||||
OwnerReferences: []metav1.OwnerReference{
|
OwnerReferences: []metav1.OwnerReference{
|
||||||
{
|
{
|
||||||
APIVersion: ownerGVK.GroupVersion().String(),
|
APIVersion: ownerGVK.GroupVersion().String(),
|
||||||
Kind: ownerGVK.Kind,
|
Kind: ownerGVK.Kind,
|
||||||
Name: owner.GetName(),
|
Name: owner.GetName(),
|
||||||
UID: owner.GetUID(),
|
UID: owner.GetUID(),
|
||||||
BlockOwnerDeletion: &blockOwnerDeletion,
|
Controller: &isController,
|
||||||
Controller: &isController,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Labels: labels,
|
Labels: labels,
|
||||||
|
Loading…
Reference in New Issue
Block a user