...

Package auth

import "k8s.io/kubernetes/test/e2e/upgrades/auth"
Overview
Index

Overview ▾

type ServiceAccountAdmissionControllerMigrationTest

ServiceAccountAdmissionControllerMigrationTest test that a pod is functioning before and after a cluster upgrade.

type ServiceAccountAdmissionControllerMigrationTest struct {
    // contains filtered or unexported fields
}

func (ServiceAccountAdmissionControllerMigrationTest) Name

func (ServiceAccountAdmissionControllerMigrationTest) Name() string

Name returns the tracking name of the test.

func (*ServiceAccountAdmissionControllerMigrationTest) Setup

func (t *ServiceAccountAdmissionControllerMigrationTest) Setup(ctx context.Context, f *framework.Framework)

Setup creates pod-before-migration which has legacy service account token.

func (*ServiceAccountAdmissionControllerMigrationTest) Teardown

func (t *ServiceAccountAdmissionControllerMigrationTest) Teardown(ctx context.Context, f *framework.Framework)

Teardown cleans up any remaining resources.

func (*ServiceAccountAdmissionControllerMigrationTest) Test

func (t *ServiceAccountAdmissionControllerMigrationTest) Test(ctx context.Context, f *framework.Framework, done <-chan struct{}, upgrade upgrades.UpgradeType)

Test waits for the upgrade to complete, and then verifies pod-before-migration and pod-after-migration are able to make requests using in cluster config.