const updateEnvVar … // TestFixtures ensures fixtures are registered for every check, // and that in-memory fixtures match serialized fixtures in testdata. // When adding new versions or checks, serialized fixtures can be updated by running: // // UPDATE_POD_SECURITY_FIXTURE_DATA=true go test k8s.io/pod-security-admission/test func TestFixtures(t *testing.T) { … } func testFixtureFile(t *testing.T, dir, name string, pod *corev1.Pod) string { … }