feat: Add statefulSet as opt-in deployment option - #534
OpinionatedHeron wants to merge 8 commits into
Conversation
Signed-off-by: Leanne Ahern <lahern@redhat.com>
Signed-off-by: Leanne Ahern <lahern@redhat.com>
Signed-off-by: Leanne Ahern <lahern@redhat.com>
rm3l
left a comment
There was a problem hiding this comment.
@OpinionatedHeron Can you rebase your branch and fix the conflicts, so that CI can be triggered? Thanks.
Signed-off-by: Leanne Ahern <lahern@redhat.com>
There was a problem hiding this comment.
Can you add a CI values setting the workload kind to StatefulSet? It would be great to have this tested in CI. Thanks.
See https://github.com/OpinionatedHeron/rhdh-chart/tree/stateful/charts/rhdh/ci
Signed-off-by: Leanne Ahern <lahern@redhat.com>
Signed-off-by: Leanne Ahern <lahern@redhat.com>
Signed-off-by: Leanne Ahern <lahern@redhat.com>
Signed-off-by: Leanne Ahern <lahern@redhat.com>
|
|
/agentic_review |
Code Review by Qodo
1. Kind switches run duplicate app pods
|
There was a problem hiding this comment.
I'd suggest moving this under the templates folder, not under workload/
There was a problem hiding this comment.
I'd suggest moving this under the templates folder, not under workload/
| version: 2.4.1 | ||
| appVersion: 2.1.0 | ||
| version: 2.5.0 | ||
| appVersion: 2.2.0 |
There was a problem hiding this comment.
| appVersion: 2.2.0 | |
| appVersion: 2.1.0 |
Should not be changed. This is the version of RHDH.
| updateStrategy: {} | ||
|
|
||
| # -- Optional PVC retention policy for the StatefulSet. | ||
| persistentVolumeClaimRetentionPolicy: {} |
There was a problem hiding this comment.
This retention policy makes sense for StatefulSet-owned PVCs. So if this is configurable, it will make sense to also expose a field like volumeClaimTemplates IMO.
| # -- StatefulSet update strategy. | ||
| updateStrategy: {} | ||
|
|
||
| # -- Optional PVC retention policy for the StatefulSet. |
There was a problem hiding this comment.
| # -- Optional PVC retention policy for the StatefulSet. | |
| # -- Optional PVC retention policy for the StatefulSet. |
Otherwise it won't show up in the generated README
There was a problem hiding this comment.
Actually all the files under workload/ could be flattened into the parent templates/ folder. Otherwise, it is confusing to see stateful.yaml in workload/ but not deployment.yaml.



Description of the change
Creating workload templates for multiple workload kinds in order to enable StatefulSet as an option.
Which issue(s) does this PR fix or relate to
Checklist
Chart.yamlaccording to Semantic Versioning.values.yamland added to the corresponding README.md. The pre-commit utility can be used to generate the necessary content. Runpre-commit run --all-filesto run the hooks and then push any resulting changes. The pre-commit Workflow will enforce this and warn you if needed.pre-commithook.ct lintcommand.