Vinyeh's picture
Add pinned source: gatekeeper-library (part 6)
6c082c1 verified
Raw History Blame Contribute Delete
884 Bytes
kind: Suite
apiVersion: test.gatekeeper.sh/v1alpha1
metadata:
name: httpsonly
tests:
- name: tls-required
template: template.yaml
constraint: samples/ingress-https-only/constraint.yaml
cases:
- name: example-allowed
object: samples/ingress-https-only/example_allowed.yaml
assertions:
- violations: no
- name: example-disallowed
object: samples/ingress-https-only/example_disallowed.yaml
assertions:
- violations: yes
- name: tls-optional
template: template.yaml
constraint: samples/ingress-https-only-tls-optional/constraint.yaml
cases:
- name: example-allowed-tls-optional
object: samples/ingress-https-only-tls-optional/example_allowed.yaml
assertions:
- violations: no
- name: example-disallowed-tls-optional
object: samples/ingress-https-only-tls-optional/example_disallowed.yaml
assertions:
- violations: yes