kubernetes/staging/src/k8s.io/pod-security-admission/test/fixtures.go

var minimalValidPods

var minimalValidLinuxPods

var minimalValidWindowsPods

func addLinux(pod *corev1.Pod) *corev1.Pod {}

func addWindows(pod *corev1.Pod) *corev1.Pod {}

func init() {}

// GetMinimalValidPod returns a minimal valid OS neutral pod for the specified level and version.
func GetMinimalValidPod(level api.Level, version api.Version) (*corev1.Pod, error) {}

// GetMinimalValidLinuxPod returns a minimal valid linux pod for the specified level and version.
func GetMinimalValidLinuxPod(level api.Level, version api.Version) (*corev1.Pod, error) {}

// GetMinimalValidWindowsPod returns a minimal valid windows pod for the specified level and version.
func GetMinimalValidWindowsPod(level api.Level, version api.Version) (*corev1.Pod, error) {}

var fixtureGenerators

type fixtureKey

type fixtureGenerator

type fixtureData

// registerFixtureGenerator adds a generator for the given level/version/check.
// A generator registered for v1.x is used for v1.x+ if no generator is registered for the higher version.
func registerFixtureGenerator(key fixtureKey, generator fixtureGenerator) {}

// getFixtures returns the fixture data for the specified level/version/check.
// Fixtures are generated by applying the registered generator to the minimal valid pod for that level/version.
// If no fixture generator exists for the given version, previous generators are checked back to 1.0.
func getFixtures(key fixtureKey) (fixtureData, error) {}

// checkKey ensures the fixture key has a valid level, version, and check.
func checkKey(key fixtureKey) error {}