1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 09:26:54 +00:00
kyverno/test/cli/test-mutate/karpenter-annotations-to-nodeselector/resource.yaml
Charles-Edouard Brétéché fb97629ab5
fix: kyverno test are applying previous mutation rules to subsequent test cases causing failures (#8363)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-12 20:19:14 +00:00

61 lines
No EOL
1.4 KiB
YAML

apiVersion: v1
kind: Pod
metadata:
name: soft-pod-antiaffinity-1
namespace: sample
annotations:
spot-toleration: 'false'
ownerReferences:
- controller: true
kind: Deployment
apiVersion: v1
uid: test
name: test
spec:
containers:
- name: echo-server
image: hashicorp/http-echo:0.2.3
imagePullPolicy: IfNotPresent
args:
- -listen=:8080
- -text="hello world"
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/name: test-pod
topologyKey: kubernetes.io/hostname
weight: 100
---
apiVersion: v1
kind: Pod
metadata:
name: soft-pod-antiaffinity-1-copy
namespace: sample
annotations:
spot-toleration: 'false'
ownerReferences:
- controller: true
kind: Deployment
apiVersion: v1
uid: test
name: test
spec:
containers:
- name: echo-server
image: hashicorp/http-echo:0.2.3
imagePullPolicy: IfNotPresent
args:
- -listen=:8080
- -text="hello world"
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/name: test-pod
topologyKey: kubernetes.io/hostname
weight: 100