package auth
import "k8s.io/kubernetes/test/e2e/upgrades/auth"
Index ¶
- type ServiceAccountAdmissionControllerMigrationTest
- func (ServiceAccountAdmissionControllerMigrationTest) Name() string
- func (t *ServiceAccountAdmissionControllerMigrationTest) Setup(ctx context.Context, f *framework.Framework)
- func (t *ServiceAccountAdmissionControllerMigrationTest) Teardown(ctx context.Context, f *framework.Framework)
- func (t *ServiceAccountAdmissionControllerMigrationTest) Test(ctx context.Context, f *framework.Framework, done <-chan struct{}, upgrade upgrades.UpgradeType)
Types ¶
type ServiceAccountAdmissionControllerMigrationTest ¶
type ServiceAccountAdmissionControllerMigrationTest struct {
// contains filtered or unexported fields
}
ServiceAccountAdmissionControllerMigrationTest test that a pod is functioning before and after a cluster upgrade.
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.
Source Files ¶
serviceaccount_admission_controller_migration.go
- Version
- v1.33.1 (latest)
- Published
- May 15, 2025
- Platform
- linux/amd64
- Imports
- 12 packages
- Last checked
- 2 days ago –
Tools for package owners.