This policy prevents updates to the project field after an Application is created.
apiVersion: kyverno.io/v1kind: ClusterPolicymetadata:name: application-prevent-updates-projectannotations:policies.kyverno.io/title: Prevent Updates to Project in CEL expressionspolicies.kyverno.io/category: Argo in CELpolicies.kyverno.io/severity: mediumkyverno.io/kyverno-version: 1.12.0kyverno.io/kubernetes-version: 1.26-1.27policies.kyverno.io/subject: Applicationpolicies.kyverno.io/description: This policy prevents updates to the project field after an Application is created.spec:validationFailureAction: Auditbackground: truerules:- name: project-updatesmatch:any:- resources:kinds:- ApplicationcelPreconditions:- name: operation-should-be-updateexpression: request.operation == 'UPDATE'validate:cel:expressions:- expression: object.spec.project == oldObject.spec.projectmessage: The spec.project cannot be changed once the Application is created.
This policy prevents the use of the default project in an Application.
Services of type LoadBalancer when deployed inside AWS have support for transport encryption if it is enabled via an annotation. This policy requires that Services of type LoadBalancer contain the annotation service.beta.kubernetes.io/aws-load-balancer-ssl-cert with some value.
This policy prevents updates to the project field after an Application is created.