...

Package node

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

Overview ▾

Index ▾

type AppArmorUpgradeTest
    func (AppArmorUpgradeTest) Name() string
    func (t *AppArmorUpgradeTest) Setup(ctx context.Context, f *framework.Framework)
    func (AppArmorUpgradeTest) Skip(upgCtx upgrades.UpgradeContext) bool
    func (t *AppArmorUpgradeTest) Teardown(ctx context.Context, f *framework.Framework)
    func (t *AppArmorUpgradeTest) Test(ctx context.Context, f *framework.Framework, done <-chan struct{}, upgrade upgrades.UpgradeType)
type ConfigMapUpgradeTest
    func (ConfigMapUpgradeTest) Name() string
    func (t *ConfigMapUpgradeTest) Setup(ctx context.Context, f *framework.Framework)
    func (t *ConfigMapUpgradeTest) Teardown(ctx context.Context, f *framework.Framework)
    func (t *ConfigMapUpgradeTest) Test(ctx context.Context, f *framework.Framework, done <-chan struct{}, upgrade upgrades.UpgradeType)
type NvidiaGPUUpgradeTest
    func (NvidiaGPUUpgradeTest) Name() string
    func (t *NvidiaGPUUpgradeTest) Setup(ctx context.Context, f *framework.Framework)
    func (t *NvidiaGPUUpgradeTest) Teardown(ctx context.Context, f *framework.Framework)
    func (t *NvidiaGPUUpgradeTest) Test(ctx context.Context, f *framework.Framework, done <-chan struct{}, upgrade upgrades.UpgradeType)
type SecretUpgradeTest
    func (SecretUpgradeTest) Name() string
    func (t *SecretUpgradeTest) Setup(ctx context.Context, f *framework.Framework)
    func (t *SecretUpgradeTest) Teardown(ctx context.Context, f *framework.Framework)
    func (t *SecretUpgradeTest) Test(ctx context.Context, f *framework.Framework, done <-chan struct{}, upgrade upgrades.UpgradeType)
type SysctlUpgradeTest
    func (t *SysctlUpgradeTest) Setup(ctx context.Context, f *framework.Framework)
    func (t *SysctlUpgradeTest) Teardown(ctx context.Context, f *framework.Framework)
    func (t *SysctlUpgradeTest) Test(ctx context.Context, f *framework.Framework, done <-chan struct{}, upgrade upgrades.UpgradeType)

Package files

apparmor.go configmaps.go nvidia-gpu.go secrets.go sysctl.go

type AppArmorUpgradeTest

AppArmorUpgradeTest tests that AppArmor profiles are enforced & usable across upgrades.

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

func (AppArmorUpgradeTest) Name

func (AppArmorUpgradeTest) Name() string

Name returns the tracking name of the test.

func (*AppArmorUpgradeTest) Setup

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

func (AppArmorUpgradeTest) Skip(upgCtx upgrades.UpgradeContext) bool

Skip returns true when this test can be skipped.

func (*AppArmorUpgradeTest) Teardown

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

Teardown cleans up any remaining resources.

func (*AppArmorUpgradeTest) Test

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.

type ConfigMapUpgradeTest

ConfigMapUpgradeTest tests that a ConfigMap is available before and after a cluster upgrade.

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

func (ConfigMapUpgradeTest) Name

func (ConfigMapUpgradeTest) Name() string

Name returns the tracking name of the test.

func (*ConfigMapUpgradeTest) Setup

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

Setup creates a ConfigMap and then verifies that a pod can consume it.

func (*ConfigMapUpgradeTest) Teardown

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

Teardown cleans up any remaining resources.

func (*ConfigMapUpgradeTest) Test

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.

type NvidiaGPUUpgradeTest

NvidiaGPUUpgradeTest tests that gpu resource is available before and after a cluster upgrade.

type NvidiaGPUUpgradeTest struct {
}

func (NvidiaGPUUpgradeTest) Name

func (NvidiaGPUUpgradeTest) Name() string

Name returns the tracking name of the test.

func (*NvidiaGPUUpgradeTest) Setup

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

Setup creates a job requesting gpu.

func (*NvidiaGPUUpgradeTest) Teardown

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

Teardown cleans up any remaining resources.

func (*NvidiaGPUUpgradeTest) Test

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.

type SecretUpgradeTest

SecretUpgradeTest test that a secret is available before and after a cluster upgrade.

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

func (SecretUpgradeTest) Name

func (SecretUpgradeTest) Name() string

Name returns the tracking name of the test.

func (*SecretUpgradeTest) Setup

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

Setup creates a secret and then verifies that a pod can consume it.

func (*SecretUpgradeTest) Teardown

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

Teardown cleans up any remaining resources.

func (*SecretUpgradeTest) Test

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.

type SysctlUpgradeTest

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 (*SysctlUpgradeTest) Setup

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 (*SysctlUpgradeTest) Teardown

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

Teardown cleans up any remaining resources.

func (*SysctlUpgradeTest) Test

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.