⚡️(helm) create a dedicated svc and deployment for yprovider converter#2358
Conversation
15debb0 to
14265f5
Compare
|
@CodeRabbit review |
✅ Actions performedReview triggered.
|
WalkthroughThis PR adds infrastructure for a dedicated yProvider converter component to the Helm chart. It introduces a new values schema block ( Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/helm/impress/templates/yprovider_deployment_converter.yaml`:
- Around line 8-23: The current use of default for map-typed fields causes child
converter maps to fully replace parent yProvider maps and drop keys; update the
template to merge maps instead of replacing them by using mergeOverwrite for
map-valued variables (so inheritance + partial override works). Specifically,
replace default(...) occurrences for dpAnnotations, podAnnotations,
securityContext, resources, nodeSelector, affinity, persistence, and
extraVolumeMounts with mergeOverwrite calls that merge $yProvider.* and
$converter.* (keep default for scalar/array fields like replicas, command, args,
sidecars where appropriate). Ensure you reference the template variables
$dpAnnotations, $podAnnotations, $securityContext, $resources, $nodeSelector,
$affinity, $persistence, and $extraVolumeMounts when making the changes.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 1d2eca03-86e3-45a6-9e02-130b47d890e4
📒 Files selected for processing (6)
CHANGELOG.mdsrc/helm/env.d/dev/values.impress.yaml.gotmplsrc/helm/impress/templates/_helpers.tplsrc/helm/impress/templates/yprovider_deployment_converter.yamlsrc/helm/impress/templates/yprovider_svc_converter.yamlsrc/helm/impress/values.yaml
AntoLC
left a comment
There was a problem hiding this comment.
Should we replicate this configuration in the docker environment as well, to stay more or less iso with the production, 1 container about collab and 1 about conversion ?
14265f5 to
652a4d7
Compare
652a4d7 to
29216ce
Compare
|
🚀 Preview will be available at https://2358-docs.ppr-docs.beta.numerique.gouv.fr/ You can use the existing account with these credentials:
You can also create a new account if you want to. Once this Pull Request is merged, the preview will be destroyed. |
We want to isolate the converter service built in the yprovider server in order to not mix conversion and collaboration together. We decided to create a dedicated service and deployment, by default they use the values defined in yProvider values but all can be overridden in yProvider.converter. Also, by default these new service and deployment are not enabled, they must be explictly enabled and configured. If not it works like now with only one service and deployment for the yProvider server.
We wanto to have in the compose stack a dedicated service for the converter like we did in the helm chart. The change is also made with the e2e compose file
29216ce to
8655750
Compare
AntoLC
left a comment
There was a problem hiding this comment.
If you search YPROVIDER_HOST, I see some places that maybe need changes as well:
docs/env.d/production.dist/common
Line 6 in a20ba1a
A bit out of scope, but I noticed that COLLABORATION_API_URL is not in the helm charts (dev/feature).
I tried it in local as well, works great !
It is not because the collaborative check edition is not enabled. |
We want to enable the collaboration edition check in dev and feature env
Purpose
We want to isolate the converter service built in the yprovider server in order to not mix conversion and collaboration together. We decided to create a dedicated service and deployment, by default they use the values defined in yProvider values but all can be overridden in yProvider.converter.
Also, by default these new service and deployment are not enabled, they must be explicitly enabled and configured. If not it works like now with only one service and deployment for the yProvider server.
Proposal