diff --git a/artifacthub/library/general/requiredprobes/1.1.0/samples/must-have-probes-on-service/example_allowed_with_service.yaml b/artifacthub/library/general/requiredprobes/1.1.0/samples/must-have-probes-on-service/example_allowed_with_service.yaml index b333d912f..20bfeb27f 100644 --- a/artifacthub/library/general/requiredprobes/1.1.0/samples/must-have-probes-on-service/example_allowed_with_service.yaml +++ b/artifacthub/library/general/requiredprobes/1.1.0/samples/must-have-probes-on-service/example_allowed_with_service.yaml @@ -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 diff --git a/artifacthub/library/general/requiredprobes/1.1.0/samples/must-have-probes-on-service/inventory.yaml b/artifacthub/library/general/requiredprobes/1.1.0/samples/must-have-probes-on-service/example_inventory.yaml similarity index 100% rename from artifacthub/library/general/requiredprobes/1.1.0/samples/must-have-probes-on-service/inventory.yaml rename to artifacthub/library/general/requiredprobes/1.1.0/samples/must-have-probes-on-service/example_inventory.yaml diff --git a/artifacthub/library/general/requiredprobes/1.1.0/suite.yaml b/artifacthub/library/general/requiredprobes/1.1.0/suite.yaml index 3807133cb..b73c0d4c5 100644 --- a/artifacthub/library/general/requiredprobes/1.1.0/suite.yaml +++ b/artifacthub/library/general/requiredprobes/1.1.0/suite.yaml @@ -1,7 +1,7 @@ kind: Suite apiVersion: test.gatekeeper.sh/v1alpha1 metadata: - name: containerprobes + name: requiredprobes tests: - name: required-probes template: template.yaml @@ -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 diff --git a/library/general/requiredprobes/samples/must-have-probes-on-service/inventory.yaml b/library/general/requiredprobes/samples/must-have-probes-on-service/example_inventory.yaml similarity index 100% rename from library/general/requiredprobes/samples/must-have-probes-on-service/inventory.yaml rename to library/general/requiredprobes/samples/must-have-probes-on-service/example_inventory.yaml diff --git a/library/general/requiredprobes/suite.yaml b/library/general/requiredprobes/suite.yaml index f248f8fa1..b73c0d4c5 100644 --- a/library/general/requiredprobes/suite.yaml +++ b/library/general/requiredprobes/suite.yaml @@ -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 diff --git a/website/docs/validation/requiredprobes.md b/website/docs/validation/requiredprobes.md index 3be93eca2..ba545b325 100644 --- a/website/docs/validation/requiredprobes.md +++ b/website/docs/validation/requiredprobes.md @@ -289,7 +289,7 @@ kubectl apply -f https://raw.githubusercontent.com/open-policy-agent/gatekeeper-
-container-probes-only-services
+required-probes-only-services
constraint @@ -327,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 @@ -358,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 @@ -399,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