const readOnlyServiceAccountName …
const readWriteServiceAccountName …
func TestServiceAccountAutoCreate(t *testing.T) { … }
func TestServiceAccountTokenAutoMount(t *testing.T) { … }
func TestServiceAccountTokenAuthentication(t *testing.T) { … }
func TestLegacyServiceAccountTokenTracking(t *testing.T) { … }
func startServiceAccountTestServerAndWaitForCaches(ctx context.Context, t *testing.T) (clientset.Interface, *restclient.Config, func(), clientinformers.SharedInformerFactory, error) { … }
func getServiceAccount(c clientset.Interface, ns string, name string, shouldWait bool) (*v1.ServiceAccount, error) { … }
func createServiceAccountToken(c clientset.Interface, sa *v1.ServiceAccount, ns string, name string) (*v1.Secret, error) { … }
func addReferencedServiceAccountToken(c clientset.Interface, ns string, name string, secret *v1.Secret) error { … }
type testOperation …
func doServiceAccountAPIRequests(t *testing.T, c clientset.Interface, ns string, authenticated bool, canRead bool, canWrite bool) { … }
type warningHandler …
func (r *warningHandler) HandleWarningHeader(code int, agent string, message string) { … }