Files
zeekay 7bb1484ce7 Name the sample objects in resource fixtures for this product
The health and action fixtures carried sample object names from the upstream
project; renamed in step with every assertion that reads them.
2026-09-05 01:16:49 -07:00

69 lines
2.0 KiB
YAML

apiVersion: policy.open-cluster-management.io/v1
kind: Policy
metadata:
generation: 4
name: cd-example
namespace: open-cluster-management-global-set
spec:
disabled: false
policy-templates:
- objectDefinition:
apiVersion: policy.open-cluster-management.io/v1
kind: ConfigurationPolicy
metadata:
name: example-namespace
spec:
object-templates:
- complianceType: musthave
objectDefinition:
apiVersion: v1
kind: Namespace
metadata:
name: example
remediationAction: inform
severity: low
- objectDefinition:
apiVersion: policy.open-cluster-management.io/v1
kind: ConfigurationPolicy
metadata:
name: example-pod
spec:
namespaceSelector:
exclude:
- kube-*
include:
- default
object-templates:
- complianceType: musthave
objectDefinition:
apiVersion: v1
kind: Pod
metadata:
name: foobar
spec:
containers:
- image: 'registry.redhat.io/rhel9/httpd-24:latest'
name: httpd
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
runAsNonRoot: true
remediationAction: inform
severity: low
remediationAction: inform
status:
compliant: Compliant
placement:
- placement: cd-example-placement
placementBinding: cd-example-placement
status:
- clustername: local-cluster
clusternamespace: local-cluster
compliant: Compliant
- clustername: managed
clusternamespace: managed
compliant: Compliant