New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add ephemeralVolumeSource option to cluster spec. #3678
Conversation
❗ By default, the pull request is configured to backport to all release branches.
|
3e8ceeb
to
48584e9
Compare
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/7504582916 |
Hello, I've made several minor adjustments, the most notable one is to avoid increasing the CRD size. whats your opinion on the patch @mnencia @leonardoce @gbartolini ? |
/test limit=local |
@armru, here's the link to the E2E on CNPG workflow run: https://github.com/cloudnative-pg/cloudnative-pg/actions/runs/7512869603 |
I like this patch. However, this conflicts with #2830. My suggestion is to:
If the ephemeral PVC is defined, this has higher precedence than the existing behavior. The |
@armru would you like me to make the requested changes? |
Yes, thanks very much |
Looks like there was no code change required, just a documentation update. I have done that now |
I think we should also add a validation webhook to prevent both EphemeralVolumesSizeLimit and EphemeralVolumeSource from being defined simultaneously. |
@armru I've had a go, I haven't written an operator before. Is what I have done enough, and also the correct error? |
c165cec
to
6565c68
Compare
Hello @jfyne, could you add unit tests for the webhook validation? |
I've added the validation unit tests. Changes look good to me 👍 |
/ok-to-merge E2E tests are green |
Unit tests are failing |
Allow the user to optionally set the ephemeralVolumeSource option in the cluster spec. Refs: - cloudnative-pg#3677 - cloudnative-pg#317 Signed-off-by: Josh Fyne <josh.fyne@gmail.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Indicates that ephemeralVolumeSource is the preferred way to configure ephemeral volumes. Describes how ephemeralVolumeSource and ephemeralVolumesSourceLimit interact with each other. ephemeralVolumeSource taking precedence. Signed-off-by: Josh Fyne <josh.fyne@gmail.com>
Signed-off-by: Josh Fyne <josh.fyne@gmail.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Josh Fyne <josh.fyne@gmail.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
Allow the user to optionally set the `ephemeralStorage` option in the cluster spec. Closes #3677 Refs: - #3677 - #317 Signed-off-by: Josh Fyne <josh.fyne@gmail.com> Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com> (cherry picked from commit 0e7ac95)
Allow the user to optionally set the `ephemeralStorage` option in the cluster spec. Closes #3677 Refs: - #3677 - #317 Signed-off-by: Josh Fyne <josh.fyne@gmail.com> Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com> (cherry picked from commit 0e7ac95)
Allow the user to optionally set the `ephemeralStorage` option in the cluster spec. Closes #3677 Refs: - #3677 - #317 Signed-off-by: Josh Fyne <josh.fyne@gmail.com> Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com> Co-authored-by: Armando Ruocco <armando.ruocco@enterprisedb.com> (cherry picked from commit 0e7ac95)
Allow the user to optionally set the ephemeralStorage option in the cluster spec.
Closes #3677
Refs: