mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Fix nil-map panic in AppArmor skip
This commit is contained in:
parent
3d05080982
commit
7ccca44137
@ -35,7 +35,7 @@ type AppArmorUpgradeTest struct {
|
|||||||
func (AppArmorUpgradeTest) Name() string { return "apparmor-upgrade" }
|
func (AppArmorUpgradeTest) Name() string { return "apparmor-upgrade" }
|
||||||
|
|
||||||
func (AppArmorUpgradeTest) Skip(upgCtx UpgradeContext) bool {
|
func (AppArmorUpgradeTest) Skip(upgCtx UpgradeContext) bool {
|
||||||
var supportedImages map[string]bool
|
supportedImages := make(map[string]bool)
|
||||||
for _, d := range common.AppArmorDistros {
|
for _, d := range common.AppArmorDistros {
|
||||||
supportedImages[d] = true
|
supportedImages[d] = true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user