AppArmorUpgradeTest tests that AppArmor profiles are enforced & usable across upgrades.
type AppArmorUpgradeTest struct {
// contains filtered or unexported fields
}
func (AppArmorUpgradeTest) Name() string
Name returns the tracking name of the test.
func (t *AppArmorUpgradeTest) Setup(ctx context.Context, f *framework.Framework)
Setup creates a secret and then verifies that a pod can consume it.
func (AppArmorUpgradeTest) Skip(upgCtx upgrades.UpgradeContext) bool
Skip returns true when this test can be skipped.
func (t *AppArmorUpgradeTest) Teardown(ctx context.Context, f *framework.Framework)
Teardown cleans up any remaining resources.
func (t *AppArmorUpgradeTest) Test(ctx context.Context, f *framework.Framework, done <-chan struct{}, upgrade upgrades.UpgradeType)
Test waits for the upgrade to complete, and then verifies that a pod can still consume the secret.
ConfigMapUpgradeTest tests that a ConfigMap is available before and after a cluster upgrade.
type ConfigMapUpgradeTest struct {
// contains filtered or unexported fields
}
func (ConfigMapUpgradeTest) Name() string
Name returns the tracking name of the test.
func (t *ConfigMapUpgradeTest) Setup(ctx context.Context, f *framework.Framework)
Setup creates a ConfigMap and then verifies that a pod can consume it.
func (t *ConfigMapUpgradeTest) Teardown(ctx context.Context, f *framework.Framework)
Teardown cleans up any remaining resources.
func (t *ConfigMapUpgradeTest) Test(ctx context.Context, f *framework.Framework, done <-chan struct{}, upgrade upgrades.UpgradeType)
Test waits for the upgrade to complete, and then verifies that a pod can still consume the ConfigMap.
NvidiaGPUUpgradeTest tests that gpu resource is available before and after a cluster upgrade.
type NvidiaGPUUpgradeTest struct { }
func (NvidiaGPUUpgradeTest) Name() string
Name returns the tracking name of the test.
func (t *NvidiaGPUUpgradeTest) Setup(ctx context.Context, f *framework.Framework)
Setup creates a job requesting gpu.
func (t *NvidiaGPUUpgradeTest) Teardown(ctx context.Context, f *framework.Framework)
Teardown cleans up any remaining resources.
func (t *NvidiaGPUUpgradeTest) Test(ctx context.Context, f *framework.Framework, done <-chan struct{}, upgrade upgrades.UpgradeType)
Test waits for the upgrade to complete, and then verifies that the cuda pod started by the gpu job can successfully finish.
SecretUpgradeTest test that a secret is available before and after a cluster upgrade.
type SecretUpgradeTest struct {
// contains filtered or unexported fields
}
func (SecretUpgradeTest) Name() string
Name returns the tracking name of the test.
func (t *SecretUpgradeTest) Setup(ctx context.Context, f *framework.Framework)
Setup creates a secret and then verifies that a pod can consume it.
func (t *SecretUpgradeTest) Teardown(ctx context.Context, f *framework.Framework)
Teardown cleans up any remaining resources.
func (t *SecretUpgradeTest) Test(ctx context.Context, f *framework.Framework, done <-chan struct{}, upgrade upgrades.UpgradeType)
Test waits for the upgrade to complete, and then verifies that a pod can still consume the secret.
SysctlUpgradeTest tests that a pod with sysctls runs before and after an upgrade. During a master upgrade, the exact pod is expected to stay running. A pod with unsafe sysctls is expected to keep failing before and after the upgrade.
type SysctlUpgradeTest struct {
// contains filtered or unexported fields
}
func (t *SysctlUpgradeTest) Setup(ctx context.Context, f *framework.Framework)
Setup creates two pods: one with safe sysctls, one with unsafe sysctls. It checks that the former launched and the later is rejected.
func (t *SysctlUpgradeTest) Teardown(ctx context.Context, f *framework.Framework)
Teardown cleans up any remaining resources.
func (t *SysctlUpgradeTest) Test(ctx context.Context, f *framework.Framework, done <-chan struct{}, upgrade upgrades.UpgradeType)
Test waits for the upgrade to complete, and then verifies that a pod can still consume the ConfigMap.