2019-07-01 13:14:18 +00:00
|
|
|
# test rules kubernetes
|
|
|
|
# test tags kubernetes
|
2019-11-02 02:26:48 +00:00
|
|
|
# test exit-status 2
|
2019-07-01 13:14:18 +00:00
|
|
|
|
2019-06-25 03:50:46 +00:00
|
|
|
metadata:
|
|
|
|
name: example
|
2019-11-02 02:26:48 +00:00
|
|
|
labels: {}
|
2019-06-25 03:50:46 +00:00
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: test
|
2019-11-16 02:53:09 +00:00
|
|
|
image: foo
|
|
|
|
imagePullPolicy: Always
|
2019-06-25 13:19:16 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 4000m
|
|
|
|
memory: 5Gi
|
|
|
|
requests:
|
|
|
|
cpu: 4000m
|
|
|
|
memory: 5Gi
|
2019-06-25 03:50:46 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
metadata:
|
|
|
|
name: example
|
2019-11-02 02:26:48 +00:00
|
|
|
labels: {}
|
2019-06-25 03:50:46 +00:00
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: test
|
2019-11-16 02:53:09 +00:00
|
|
|
image: foo
|
|
|
|
imagePullPolicy: Always
|
2019-06-25 03:50:46 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
2019-06-25 13:19:16 +00:00
|
|
|
cpu: 200m
|
2019-11-02 03:02:25 +00:00
|
|
|
# missing memory
|
2019-06-25 03:50:46 +00:00
|
|
|
requests:
|
2019-06-25 13:19:16 +00:00
|
|
|
cpu: 100m
|
2019-11-02 03:02:25 +00:00
|
|
|
# same rule
|
2019-06-25 03:50:46 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
metadata:
|
|
|
|
name: example
|
2019-11-02 03:02:25 +00:00
|
|
|
# missing labels
|
2019-06-25 03:50:46 +00:00
|
|
|
spec:
|
|
|
|
template:
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: test
|
2019-11-16 02:53:09 +00:00
|
|
|
image: foo
|
|
|
|
imagePullPolicy: Always
|
2019-06-25 03:50:46 +00:00
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
cpu: 4000m
|
|
|
|
memory: 5Gi
|
|
|
|
requests:
|
|
|
|
cpu: 4000m
|
|
|
|
memory: 5Gi
|
|
|
|
|