This is a test policy used in the policy-evaluator integration tests.
Every time a deployment with the label app.kubernetes.io/component: "api" is created or updated it checks the following:
- The service account used in the object cannot create pods in the kube-system namespace.
- The Deployment must have a
customer-idlabel set. - The value of the
customer-idlabel of the deployment must match the value of thecustomer-idnamespace where the deployment has been created. - A deployment with the label
app.kubernetes.io/component: databasemust exist in the deployment namespace. - A deployment with the label
app.kubernetes.io/component: frontendmust exist in the deployment namespace. - A service named
api-auth-servicewith the labelapp.kubernetes.io/part-of: apimust exist in the deployment namespace.
This policy has no configurable settings.
See test_data/example-stack.yml for manual tests.