Merge pull request #9439 from microsoft/danmihai1/job-tests

tests: k8s: inject agent policy failures
This commit is contained in:
Fabiano Fidêncio
2024-04-11 17:21:54 +02:00
committed by GitHub
4 changed files with 234 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
#
# Copyright (c) 2024 Microsoft
#
# SPDX-License-Identifier: Apache-2.0
#
apiVersion: batch/v1
kind: Job
metadata:
name: policy-job
spec:
template:
spec:
terminationGracePeriodSeconds: 0
runtimeClassName: kata
containers:
- name: hello
image: quay.io/prometheus/busybox:latest
command: ["/bin/sh"]
args:
- "-c"
- echo
- hello
env:
- name: var1
value: val1
securityContext:
readOnlyRootFilesystem: true
restartPolicy: Never
backoffLimit: 4