Skip to content

Commit

Permalink
chore: regenerate artifacts
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Trought <k8s@trought.ca>
  • Loading branch information
ctrought committed Jan 31, 2023
1 parent 1ea471e commit 8d9bd22
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Pod
metadata:
name: test-pod1
name: allowed-pod-with-service
namespace: default
labels:
app.kubernetes.io/name: tomcat
Expand Down
12 changes: 6 additions & 6 deletions artifacthub/library/general/requiredprobes/1.1.0/suite.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
kind: Suite
apiVersion: test.gatekeeper.sh/v1alpha1
metadata:
name: containerprobes
name: requiredprobes
tests:
- name: container-probes
- name: required-probes
template: template.yaml
constraint: samples/must-have-probes/constraint.yaml
cases:
Expand All @@ -19,25 +19,25 @@ tests:
object: samples/must-have-probes/example_disallowed2.yaml
assertions:
- violations: yes
- name: container-probes-only-services
- name: required-probes-only-services
template: template.yaml
constraint: samples/must-have-probes-on-service/constraint.yaml
cases:
- name: example-allowed-without-service
object: samples/must-have-probes-on-service/example_allowed_without_service.yaml
inventory:
- samples/must-have-probes-on-service/inventory.yaml
- samples/must-have-probes-on-service/example_inventory.yaml
assertions:
- violations: no
- name: example-allowed-with-service
object: samples/must-have-probes-on-service/example_allowed_with_service.yaml
inventory:
- samples/must-have-probes-on-service/inventory.yaml
- samples/must-have-probes-on-service/example_inventory.yaml
assertions:
- violations: no
- name: example-disallowed-with-service
object: samples/must-have-probes-on-service/example_disallowed_with_service.yaml
inventory:
- samples/must-have-probes-on-service/inventory.yaml
- samples/must-have-probes-on-service/example_inventory.yaml
assertions:
- violations: yes
6 changes: 3 additions & 3 deletions library/general/requiredprobes/suite.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ tests:
- name: example-allowed-without-service
object: samples/must-have-probes-on-service/example_allowed_without_service.yaml
inventory:
- samples/must-have-probes-on-service/inventory.yaml
- samples/must-have-probes-on-service/example_inventory.yaml
assertions:
- violations: no
- name: example-allowed-with-service
object: samples/must-have-probes-on-service/example_allowed_with_service.yaml
inventory:
- samples/must-have-probes-on-service/inventory.yaml
- samples/must-have-probes-on-service/example_inventory.yaml
assertions:
- violations: no
- name: example-disallowed-with-service
object: samples/must-have-probes-on-service/example_disallowed_with_service.yaml
inventory:
- samples/must-have-probes-on-service/inventory.yaml
- samples/must-have-probes-on-service/example_inventory.yaml
assertions:
- violations: yes
12 changes: 5 additions & 7 deletions website/docs/requiredprobes.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-
```
## Examples
<details>
<summary>container-probes</summary><blockquote>
<summary>required-probes</summary><blockquote>
<details>
<summary>constraint</summary>
Expand All @@ -131,7 +131,6 @@ kind: K8sRequiredProbes
metadata:
name: must-have-probes
spec:
enforcementAction: warn
match:
kinds:
- apiGroups: [""]
Expand Down Expand Up @@ -290,7 +289,7 @@ kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-
</blockquote></details><details>
<summary>container-probes-only-services</summary><blockquote>
<summary>required-probes-only-services</summary><blockquote>
<details>
<summary>constraint</summary>
Expand All @@ -301,7 +300,6 @@ kind: K8sRequiredProbes
metadata:
name: must-have-probes-on-service
spec:
enforcementAction: warn
match:
kinds:
- apiGroups: [""]
Expand Down Expand Up @@ -329,7 +327,7 @@ kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-
apiVersion: v1
kind: Pod
metadata:
name: test-pod1
name: allowed-pod-without-service
namespace: default
labels:
app.kubernetes.io/name: tomcat-no-svc
Expand Down Expand Up @@ -360,7 +358,7 @@ kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-
apiVersion: v1
kind: Pod
metadata:
name: test-pod1
name: allowed-pod-with-service
namespace: default
labels:
app.kubernetes.io/name: tomcat
Expand Down Expand Up @@ -401,7 +399,7 @@ kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-
apiVersion: v1
kind: Pod
metadata:
name: test-pod1
name: disallowed-pod-with-service
namespace: default
labels:
app.kubernetes.io/name: tomcat
Expand Down

0 comments on commit 8d9bd22

Please sign in to comment.