From 9898bfdbdae86219a3d5f898c56d23253a8af135 Mon Sep 17 00:00:00 2001 From: Cordelia Link Date: Fri, 17 Jan 2025 02:52:41 +0000 Subject: [PATCH] Remove unused test code --- .../authorizer/node/node_authorizer_test.go | 30 ------------------- 1 file changed, 30 deletions(-) diff --git a/plugin/pkg/auth/authorizer/node/node_authorizer_test.go b/plugin/pkg/auth/authorizer/node/node_authorizer_test.go index 0874ea1e2e9..b9383ffddfd 100644 --- a/plugin/pkg/auth/authorizer/node/node_authorizer_test.go +++ b/plugin/pkg/auth/authorizer/node/node_authorizer_test.go @@ -1338,36 +1338,6 @@ func populate(graph *Graph, nodes []*corev1.Node, pods []*corev1.Pod, pvs []*cor } } -func updateMoo(graph *Graph, oldPod *corev1.Pod) { - p := &graphPopulator{} - p.graph = graph - p.addPod(oldPod) - newPod := oldPod - newPod.Spec.EphemeralContainers = append(newPod.Spec.EphemeralContainers, corev1.EphemeralContainer{ - TargetContainerName: "targetContainerName", - EphemeralContainerCommon: corev1.EphemeralContainerCommon{ - Image: "imageURL", - Name: "eph", - Command: []string{"command"}, - EnvFrom: []corev1.EnvFromSource{ - { - SecretRef: &corev1.SecretEnvSource{ - LocalObjectReference: corev1.LocalObjectReference{ - Name: "new-secret", - }, - Optional: nil, - }, - }, - }, - SecurityContext: &corev1.SecurityContext{ - Privileged: &[]bool{true}[0], - }, - }, - }) - - p.updatePod(oldPod, newPod) -} - func randomSubset(a, b int) []int { if b < a { b = a