Skip to content

Commit 9898bfd

Browse files
committed
Remove unused test code
1 parent fca697a commit 9898bfd

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

plugin/pkg/auth/authorizer/node/node_authorizer_test.go

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1338,36 +1338,6 @@ func populate(graph *Graph, nodes []*corev1.Node, pods []*corev1.Pod, pvs []*cor
13381338
}
13391339
}
13401340

1341-
func updateMoo(graph *Graph, oldPod *corev1.Pod) {
1342-
p := &graphPopulator{}
1343-
p.graph = graph
1344-
p.addPod(oldPod)
1345-
newPod := oldPod
1346-
newPod.Spec.EphemeralContainers = append(newPod.Spec.EphemeralContainers, corev1.EphemeralContainer{
1347-
TargetContainerName: "targetContainerName",
1348-
EphemeralContainerCommon: corev1.EphemeralContainerCommon{
1349-
Image: "imageURL",
1350-
Name: "eph",
1351-
Command: []string{"command"},
1352-
EnvFrom: []corev1.EnvFromSource{
1353-
{
1354-
SecretRef: &corev1.SecretEnvSource{
1355-
LocalObjectReference: corev1.LocalObjectReference{
1356-
Name: "new-secret",
1357-
},
1358-
Optional: nil,
1359-
},
1360-
},
1361-
},
1362-
SecurityContext: &corev1.SecurityContext{
1363-
Privileged: &[]bool{true}[0],
1364-
},
1365-
},
1366-
})
1367-
1368-
p.updatePod(oldPod, newPod)
1369-
}
1370-
13711341
func randomSubset(a, b int) []int {
13721342
if b < a {
13731343
b = a

0 commit comments

Comments
 (0)