Define and use annotations that identify semantic attributes of your application or Deployment. A common set of annotations allows tools to work collaboratively, describing objects in a common manner that all tools can understand. The recommended annotations describe applications in a way that can be queried. This policy validates that the annotation `corp.org/department` is specified with some value.
apiVersion: kyverno.io/v1kind: ClusterPolicymetadata:name: require-annotationsannotations:policies.kyverno.io/title: Require Annotationspolicies.kyverno.io/category: Otherpolicies.kyverno.io/severity: mediumpolicies.kyverno.io/subject: Pod, Annotationpolicies.kyverno.io/description: "Define and use annotations that identify semantic attributes of your application or Deployment. A common set of annotations allows tools to work collaboratively, describing objects in a common manner that all tools can understand. The recommended annotations describe applications in a way that can be queried. This policy validates that the annotation `corp.org/department` is specified with some value. "spec:validationFailureAction: Auditbackground: truerules:- name: check-for-annotationmatch:any:- resources:kinds:- Podvalidate:message: The annotation `corp.org/department` is required.pattern:metadata:annotations:corp.org/department: "?*"
This policy prevents the use of the default project in an Application.
This policy prevents updates to the project field after an Application is created.
This policy ensures that the name of the ApplicationSet is the same value provided in the project.