Skip to content

Commit e0d14ee

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 1a755ae commit e0d14ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/controller/perconaservermongodbrestore/physical_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ func TestUpdateStatefulSetForPhysicalRestoreSecurityContext(t *testing.T) {
126126
ctx := context.Background()
127127

128128
nonRoot := true
129-
noPrivEsc := false
129+
allowPrivEsc := false
130130
cluster := &psmdbv1.PerconaServerMongoDB{
131131
ObjectMeta: metav1.ObjectMeta{
132132
Name: "my-cluster",
@@ -144,7 +144,7 @@ func TestUpdateStatefulSetForPhysicalRestoreSecurityContext(t *testing.T) {
144144
},
145145
InitContainerSecurityContext: &corev1.SecurityContext{
146146
RunAsNonRoot: &nonRoot,
147-
AllowPrivilegeEscalation: &noPrivEsc,
147+
AllowPrivilegeEscalation: &allowPrivEsc,
148148
},
149149
},
150150
}

0 commit comments

Comments
 (0)