mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #103382 from liggitt/podsecurity-hostprocess
[PodSecurity] hostProcess baseline check
This commit is contained in:
commit
defcc916ed
@ -0,0 +1,87 @@
|
||||
/*
|
||||
Copyright 2021 The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
package policy
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/util/validation/field"
|
||||
"k8s.io/pod-security-admission/api"
|
||||
)
|
||||
|
||||
/*
|
||||
Containers must not run as hostProcess.
|
||||
|
||||
**Restricted Fields:**
|
||||
|
||||
spec.securityContext.windowsOptions.hostProcess
|
||||
spec.containers[*].securityContext.windowsOptions.hostProcess
|
||||
|
||||
**Allowed Values:** undefined / false
|
||||
*/
|
||||
|
||||
func init() {
|
||||
addCheck(CheckHostProcess)
|
||||
}
|
||||
|
||||
// CheckHostProcess returns a baseline level check
|
||||
// that forbids hostProcess=true in 1.0+
|
||||
func CheckHostProcess() Check {
|
||||
return Check{
|
||||
ID: "hostProcess",
|
||||
Level: api.LevelBaseline,
|
||||
Versions: []VersionedCheck{
|
||||
{
|
||||
MinimumVersion: api.MajorMinorVersion(1, 0),
|
||||
CheckPod: hostProcess_1_0,
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func hostProcess_1_0(podMetadata *metav1.ObjectMeta, podSpec *corev1.PodSpec) CheckResult {
|
||||
var forbiddenContainers []string
|
||||
visitContainersWithPath(podSpec, field.NewPath("spec"), func(container *corev1.Container, path *field.Path) {
|
||||
if container.SecurityContext != nil &&
|
||||
container.SecurityContext.WindowsOptions != nil &&
|
||||
container.SecurityContext.WindowsOptions.HostProcess != nil &&
|
||||
*container.SecurityContext.WindowsOptions.HostProcess {
|
||||
forbiddenContainers = append(forbiddenContainers, container.Name)
|
||||
}
|
||||
})
|
||||
|
||||
podSpecForbidden := false
|
||||
if podSpec.SecurityContext != nil &&
|
||||
podSpec.SecurityContext.WindowsOptions != nil &&
|
||||
podSpec.SecurityContext.WindowsOptions.HostProcess != nil &&
|
||||
*podSpec.SecurityContext.WindowsOptions.HostProcess {
|
||||
podSpecForbidden = true
|
||||
}
|
||||
|
||||
// pod or containers explicitly set hostProcess=true
|
||||
if len(forbiddenContainers) > 0 || podSpecForbidden {
|
||||
return CheckResult{
|
||||
Allowed: false,
|
||||
ForbiddenReason: "hostProcess == true",
|
||||
ForbiddenDetail: strings.Join(forbiddenContainers, ", "),
|
||||
}
|
||||
}
|
||||
|
||||
return CheckResult{Allowed: true}
|
||||
}
|
@ -0,0 +1,81 @@
|
||||
/*
|
||||
Copyright 2021 The Kubernetes Authors.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
package test
|
||||
|
||||
import (
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
"k8s.io/component-base/featuregate"
|
||||
"k8s.io/pod-security-admission/api"
|
||||
"k8s.io/utils/pointer"
|
||||
)
|
||||
|
||||
/*
|
||||
TODO: include field paths in reflect-based unit test
|
||||
|
||||
podFields: []string{
|
||||
`securityContext.windowsOptions.hostProcess`,
|
||||
},
|
||||
containerFields: []string{
|
||||
`securityContext.windowsOptions.hostProcess`,
|
||||
},
|
||||
|
||||
*/
|
||||
|
||||
func init() {
|
||||
|
||||
fixtureData_1_0 := fixtureGenerator{
|
||||
generatePass: func(p *corev1.Pod) []*corev1.Pod {
|
||||
return []*corev1.Pod{p}
|
||||
},
|
||||
failRequiresFeatures: []featuregate.Feature{"WindowsHostProcessContainers"},
|
||||
generateFail: func(p *corev1.Pod) []*corev1.Pod {
|
||||
p = ensureSecurityContext(p)
|
||||
if p.Spec.SecurityContext.WindowsOptions == nil {
|
||||
p.Spec.SecurityContext.WindowsOptions = &corev1.WindowsSecurityContextOptions{}
|
||||
}
|
||||
if p.Spec.Containers[0].SecurityContext.WindowsOptions == nil {
|
||||
p.Spec.Containers[0].SecurityContext.WindowsOptions = &corev1.WindowsSecurityContextOptions{}
|
||||
}
|
||||
if p.Spec.InitContainers[0].SecurityContext.WindowsOptions == nil {
|
||||
p.Spec.InitContainers[0].SecurityContext.WindowsOptions = &corev1.WindowsSecurityContextOptions{}
|
||||
}
|
||||
return []*corev1.Pod{
|
||||
// true for pod
|
||||
tweak(p, func(p *corev1.Pod) {
|
||||
// HostNetwork is required to be true for HostProcess pods.
|
||||
// Set to true here so we pass API validation and get to admission checks.
|
||||
p.Spec.HostNetwork = true
|
||||
p.Spec.SecurityContext.WindowsOptions.HostProcess = pointer.BoolPtr(true)
|
||||
}),
|
||||
// true for containers
|
||||
tweak(p, func(p *corev1.Pod) {
|
||||
// HostNetwork is required to be true for HostProcess pods.
|
||||
// Set to true here so we pass API validation and get to admission checks.
|
||||
p.Spec.HostNetwork = true
|
||||
p.Spec.Containers[0].SecurityContext.WindowsOptions.HostProcess = pointer.BoolPtr(true)
|
||||
p.Spec.InitContainers[0].SecurityContext.WindowsOptions.HostProcess = pointer.BoolPtr(true)
|
||||
}),
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
registerFixtureGenerator(
|
||||
fixtureKey{level: api.LevelBaseline, version: api.MajorMinorVersion(1, 0), check: "hostProcess"},
|
||||
fixtureData_1_0,
|
||||
)
|
||||
// TODO: register another set of fixtures with passing test cases that explicitly set hostProcess=false at pod and container level once hostProcess is GA
|
||||
}
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.0/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.0/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.0/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.0/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.0/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.0/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.1/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.1/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.1/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.1/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.1/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.1/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.10/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.10/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.10/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.10/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.10/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.10/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.11/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.11/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.11/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.11/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.11/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.11/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.12/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.12/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.12/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.12/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.12/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.12/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.13/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.13/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.13/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.13/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.13/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.13/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.14/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.14/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.14/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.14/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.14/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.14/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.15/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.15/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.15/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.15/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.15/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.15/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.16/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.16/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.16/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.16/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.16/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.16/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.17/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.17/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.17/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.17/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.17/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.17/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.18/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.18/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.18/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.18/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.18/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.18/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.19/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.19/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.19/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.19/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.19/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.19/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.2/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.2/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.2/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.2/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.2/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.2/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.20/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.20/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.20/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.20/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.20/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.20/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.21/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.21/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.21/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.21/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.21/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.21/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.22/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.22/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.22/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.22/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.22/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.22/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.3/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.3/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.3/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.3/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.3/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.3/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.4/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.4/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.4/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.4/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.4/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.4/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.5/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.5/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.5/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.5/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.5/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.5/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.6/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.6/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.6/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.6/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.6/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.6/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.7/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.7/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.7/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.7/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.7/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.7/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.8/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.8/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.8/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.8/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.8/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.8/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.9/fail/hostprocess0.yaml
vendored
Executable file
19
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.9/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,19 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.9/fail/hostprocess1.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.9/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
windowsOptions: {}
|
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.9/pass/hostprocess0.yaml
vendored
Executable file
11
staging/src/k8s.io/pod-security-admission/test/testdata/baseline/v1.9/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.0/fail/hostprocess0.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.0/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
windowsOptions:
|
||||
hostProcess: true
|
21
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.0/fail/hostprocess1.yaml
vendored
Executable file
21
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.0/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,21 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
windowsOptions: {}
|
13
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.0/pass/hostprocess0.yaml
vendored
Executable file
13
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.0/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
20
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.1/fail/hostprocess0.yaml
vendored
Executable file
20
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.1/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,20 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
windowsOptions:
|
||||
hostProcess: true
|
21
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.1/fail/hostprocess1.yaml
vendored
Executable file
21
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.1/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,21 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
windowsOptions: {}
|
13
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.1/pass/hostprocess0.yaml
vendored
Executable file
13
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.1/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,13 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
22
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.10/fail/hostprocess0.yaml
vendored
Executable file
22
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.10/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,22 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
windowsOptions:
|
||||
hostProcess: true
|
23
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.10/fail/hostprocess1.yaml
vendored
Executable file
23
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.10/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,23 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
windowsOptions: {}
|
17
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.10/pass/hostprocess0.yaml
vendored
Executable file
17
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.10/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
22
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.11/fail/hostprocess0.yaml
vendored
Executable file
22
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.11/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,22 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
windowsOptions:
|
||||
hostProcess: true
|
23
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.11/fail/hostprocess1.yaml
vendored
Executable file
23
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.11/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,23 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
windowsOptions: {}
|
17
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.11/pass/hostprocess0.yaml
vendored
Executable file
17
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.11/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
22
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.12/fail/hostprocess0.yaml
vendored
Executable file
22
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.12/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,22 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
windowsOptions:
|
||||
hostProcess: true
|
23
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.12/fail/hostprocess1.yaml
vendored
Executable file
23
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.12/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,23 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
windowsOptions: {}
|
17
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.12/pass/hostprocess0.yaml
vendored
Executable file
17
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.12/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
22
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.13/fail/hostprocess0.yaml
vendored
Executable file
22
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.13/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,22 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
windowsOptions:
|
||||
hostProcess: true
|
23
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.13/fail/hostprocess1.yaml
vendored
Executable file
23
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.13/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,23 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
windowsOptions: {}
|
17
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.13/pass/hostprocess0.yaml
vendored
Executable file
17
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.13/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
22
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.14/fail/hostprocess0.yaml
vendored
Executable file
22
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.14/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,22 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
windowsOptions:
|
||||
hostProcess: true
|
23
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.14/fail/hostprocess1.yaml
vendored
Executable file
23
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.14/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,23 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
windowsOptions: {}
|
17
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.14/pass/hostprocess0.yaml
vendored
Executable file
17
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.14/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
22
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.15/fail/hostprocess0.yaml
vendored
Executable file
22
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.15/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,22 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
windowsOptions:
|
||||
hostProcess: true
|
23
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.15/fail/hostprocess1.yaml
vendored
Executable file
23
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.15/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,23 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
windowsOptions: {}
|
17
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.15/pass/hostprocess0.yaml
vendored
Executable file
17
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.15/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
22
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.16/fail/hostprocess0.yaml
vendored
Executable file
22
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.16/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,22 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
windowsOptions:
|
||||
hostProcess: true
|
23
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.16/fail/hostprocess1.yaml
vendored
Executable file
23
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.16/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,23 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
windowsOptions: {}
|
17
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.16/pass/hostprocess0.yaml
vendored
Executable file
17
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.16/pass/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
22
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.17/fail/hostprocess0.yaml
vendored
Executable file
22
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.17/fail/hostprocess0.yaml
vendored
Executable file
@ -0,0 +1,22 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess0
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions: {}
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions: {}
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
windowsOptions:
|
||||
hostProcess: true
|
23
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.17/fail/hostprocess1.yaml
vendored
Executable file
23
staging/src/k8s.io/pod-security-admission/test/testdata/restricted/v1.17/fail/hostprocess1.yaml
vendored
Executable file
@ -0,0 +1,23 @@
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hostprocess1
|
||||
spec:
|
||||
containers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: container1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
hostNetwork: true
|
||||
initContainers:
|
||||
- image: k8s.gcr.io/pause
|
||||
name: initcontainer1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
windowsOptions:
|
||||
hostProcess: true
|
||||
securityContext:
|
||||
runAsNonRoot: true
|
||||
windowsOptions: {}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user