kubernetes/plugin/pkg/admission/serviceaccount/admission_test.go

func TestIgnoresNonCreate(t *testing.T) {}

func TestIgnoresNonPodResource(t *testing.T) {}

func TestIgnoresNilObject(t *testing.T) {}

func TestIgnoresNonPodObject(t *testing.T) {}

func TestIgnoresMirrorPod(t *testing.T) {}

func TestRejectsMirrorPodWithServiceAccount(t *testing.T) {}

func TestRejectsMirrorPodWithSecretVolumes(t *testing.T) {}

func TestRejectsMirrorPodWithServiceAccountTokenVolumeProjections(t *testing.T) {}

func TestAssignsDefaultServiceAccountAndBoundTokenWithNoSecretTokens(t *testing.T) {}

func TestFetchesUncachedServiceAccount(t *testing.T) {}

func TestDeniesInvalidServiceAccount(t *testing.T) {}

func TestAutomountsAPIToken(t *testing.T) {}

func TestRespectsExistingMount(t *testing.T) {}

func TestAllowsReferencedSecret(t *testing.T) {}

func TestRejectsUnreferencedSecretVolumes(t *testing.T) {}

func TestAllowUnreferencedSecretVolumesForPermissiveSAs(t *testing.T) {}

func TestAllowsReferencedImagePullSecrets(t *testing.T) {}

func TestRejectsUnreferencedImagePullSecrets(t *testing.T) {}

func TestDoNotAddImagePullSecrets(t *testing.T) {}

func TestAddImagePullSecrets(t *testing.T) {}

func testGenerateName(n string) string {}

var generatedVolumeName