Change where transformers are called.

Kubernetes-commit: e76dff38cf74c3c8ad9ed4d3bc6e3641d9b64565
This commit is contained in:
Daniel Smith
2023-03-14 23:05:20 +00:00
committed by Kubernetes Publisher
parent 308e6b1055
commit c3b84f0438
6 changed files with 135 additions and 30 deletions

View File

@@ -406,9 +406,8 @@ func TestSharedInformerTransformer(t *testing.T) {
name := pod.GetName()
if upper := strings.ToUpper(name); upper != name {
copied := pod.DeepCopyObject().(*v1.Pod)
copied.SetName(upper)
return copied, nil
pod.SetName(upper)
return pod, nil
}
}
return obj, nil