type SecretUpgradeTest … // Name returns the tracking name of the test. func (SecretUpgradeTest) Name() string { … } // Setup creates a secret and then verifies that a pod can consume it. func (t *SecretUpgradeTest) Setup(ctx context.Context, f *framework.Framework) { … } // Test waits for the upgrade to complete, and then verifies that a // pod can still consume the secret. func (t *SecretUpgradeTest) Test(ctx context.Context, f *framework.Framework, done <-chan struct{ … } // Teardown cleans up any remaining resources. func (t *SecretUpgradeTest) Teardown(ctx context.Context, f *framework.Framework) { … } // testPod creates a pod that consumes a secret and prints it out. The // output is then verified. func (t *SecretUpgradeTest) testPod(ctx context.Context, f *framework.Framework) { … }