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:
Kubernetes Submit Queue 2017-08-25 03:16:09 -07:00 committed by GitHub
commit 7273a46630

View File

@ -111,8 +111,8 @@ func validateHost(runtime string) error {
}
// Check runtime support. Currently only Docker is supported.
if runtime != "docker" {
return fmt.Errorf("AppArmor is only enabled for 'docker' runtime. Found: %q.", runtime)
if runtime != "docker" && runtime != "remote" {
return fmt.Errorf("AppArmor is only enabled for 'docker' and 'remote' runtimes. Found: %q.", runtime)
}
return nil