ServiceAccountAdmissionControllerMigrationTest test that a pod is functioning before and after a cluster upgrade.
type ServiceAccountAdmissionControllerMigrationTest struct {
// contains filtered or unexported fields
}
func (ServiceAccountAdmissionControllerMigrationTest) Name() string
Name returns the tracking name of the test.
func (t *ServiceAccountAdmissionControllerMigrationTest) Setup(ctx context.Context, f *framework.Framework)
Setup creates pod-before-migration which has legacy service account token.
func (t *ServiceAccountAdmissionControllerMigrationTest) Teardown(ctx context.Context, f *framework.Framework)
Teardown cleans up any remaining resources.
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.