Hi Matthias,
As described in the below image if you want to override policies without affecting the existing application bar file, then creating configuration for policy project is helpful.
Scenario 1:
When you package your application and policy project into a single bar file, after the deployment both artifacts (application and policy project) are present in "run" folder (see below image).
Scenario 2:
When you package only the application in the bar file and create a policy project configuration in your pipeline, then the unzipped policy project with all of its content is present in "overrides" folder (see below image).
As you have mentioned, one of the use case could be if there is common policy such as MQ/Kafka connection policy and if it is used by many applications then creating a single configuration for this policy project would suffice and all the dependent applications can refer this policy. If there is a change in the connection details, only policy project will be affected and all the dependent applications integration server pods are only required to be restarted to pick up the latest policy change, no bar file rebuild is required.
------------------------------
uvaise odam
------------------------------
Original Message:
Sent: Tue July 23, 2024 02:04 AM
From: Matthias Blomme
Subject: Policy project type vs policy bar file
Then you are referencing a policy project, not something you would do by default. Not me anyway.
I don't like combining stuff in one bar file, if it's a shared policy project with mq connections or something, you might not want that.
But my question stands, what is the benefit of the policyproject type?
------------------------------
Regards
Matthias Blomme
Original Message:
Sent: Tue July 23, 2024 01:57 AM
From: Francois Brandelik
Subject: Policy project type vs policy bar file
I thought you'd just reference the policy project and it would be added to your bar file? Would that not work for your pipeline?
------------------------------
Francois Brandelik
Original Message:
Sent: Mon July 22, 2024 09:03 AM
From: Matthias Blomme
Subject: Policy project type vs policy bar file
Has anyone used a bar file on openshift (or maybe ACEaaD) to deploy policies in stead of using the policy project type configuration resources?
I'm wondering what the added benefit of the policy project type is.
Policy project type
You need to zip an entire policy project, base64 encode it, and add it to a configuration resource
Policy bar file
Build the policy project as a bar file and reference your application to include the bar file. When working from a build pipeline this seems to be way easier to do.
Anyone have any experience with this?
------------------------------
Regards
Matthias Blomme
------------------------------