1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-09 01:16:55 +00:00
kyverno/test/cli/test-mutate/karpenter-annotations-to-nodeselector/patched.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

42 lines
No EOL
1.1 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:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: karpenter.sh/capacity-type
operator: In
values:
- on-demand
- key: karpenter.sh/capacity-type
operator: NotIn
values:
- spot
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
app.kubernetes.io/name: test-pod
topologyKey: kubernetes.io/hostname
weight: 100