mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
Merge pull request #51167 from feiskyer/apparmor-validate
Automatic merge from submit-queue (batch tested with PRs 51229, 50131, 51074, 51167, 51213) Allow remote runtimes to pass apparmor host validation **What this PR does / why we need it**: Allow remote runtimes to pass apparmor host validation. **Which issue this PR fixes** : fixes #51156 **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
This commit is contained in:
commit
7273a46630
@ -111,8 +111,8 @@ func validateHost(runtime string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check runtime support. Currently only Docker is supported.
|
// Check runtime support. Currently only Docker is supported.
|
||||||
if runtime != "docker" {
|
if runtime != "docker" && runtime != "remote" {
|
||||||
return fmt.Errorf("AppArmor is only enabled for 'docker' runtime. Found: %q.", runtime)
|
return fmt.Errorf("AppArmor is only enabled for 'docker' and 'remote' runtimes. Found: %q.", runtime)
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user