1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-13 19:28:55 +00:00

fix tests

This commit is contained in:
Shuting Zhao 2019-11-11 21:40:42 -08:00
parent 2a14c1f5dc
commit fb2cc2db9c
5 changed files with 13 additions and 6 deletions

View file

@ -31,7 +31,7 @@ spec:
overlay:
metadata:
annotations:
+(cluster-autoscaler.kubernetes.io/safe-to-evictt): "true"
+(cluster-autoscaler.kubernetes.io/safe-to-evict): "true"
spec:
volumes:
- (hostPath):

View file

@ -2,9 +2,8 @@ apiVersion: v1
kind: Pod
metadata:
name: pod-with-emptydir
metadata:
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: true
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
spec:
containers:
- image: k8s.gcr.io/test-webserver

View file

@ -3,7 +3,7 @@ kind: Pod
metadata:
name: pod-with-hostpath
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: true
cluster-autoscaler.kubernetes.io/safe-to-evict: "true"
spec:
containers:
- image: k8s.gcr.io/test-webserver

View file

@ -14,6 +14,10 @@ expected:
name: pod-with-emptydir
rules:
- name: empty-dir-add-safe-to-evict
type: Mutation
success: true
message: "successfully processed overlay"
- name: host-path-add-safe-to-evict
type: Mutation
success: true
message: "successfully processed overlay"

View file

@ -13,7 +13,11 @@ expected:
namespace: ''
name: pod-with-hostpath
rules:
- name: host-path-add-safe-to-evict
- name: empty-dir-add-safe-to-evict
type: Mutation
success: true
message: "successfully processed overlay"
- name: host-path-add-safe-to-evict
type: Mutation
success: true
message: "successfully processed overlay"