Skip to content

Conversation

mhutter
Copy link
Contributor

@mhutter mhutter commented May 27, 2021

If there are multiple storageclasses that have the "is-default-class"
annotation set to 'true', provisioning new PVs will fail for PVCs
without an explicit SC set.

This commit aims to ensure that said annotation is automatically removed
from classes that are managed by Syn but are NOT the default.

Checklist

  • Keep pull requests small so they can be easily reviewed.
  • Update the documentation.
  • Update the ./CHANGELOG.md.

@mhutter mhutter self-assigned this May 27, 2021
@mhutter mhutter marked this pull request as draft May 27, 2021 12:29
@mhutter mhutter changed the title Draft: Ensure only one SC is marked as "default" Ensure only one SC is marked as "default" May 27, 2021
If there are multiple storageclasses that have the "is-default-class"
annotation set to 'true', provisioning new PVs will fail for PVCs
without an explicit SC set.

This commit aims to ensure that said annotation is automatically removed
from classes that are managed by Syn but are NOT the default.

Signed-off-by: Manuel Hutter <manuel@hutter.io>
@mhutter mhutter force-pushed the feat/unset-default branch from ff8ca17 to c5cb40a Compare May 27, 2021 12:30
@mhutter mhutter requested review from TheBigLee and simu May 27, 2021 12:30
Copy link
Member

@simu simu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I think this was the original intention of the implementation anyway.

@mhutter mhutter marked this pull request as ready for review May 31, 2021 16:50
@mhutter mhutter merged commit c51e792 into master Jun 11, 2021
@mhutter mhutter deleted the feat/unset-default branch June 11, 2021 11:48
simu added a commit that referenced this pull request Jun 15, 2021
This should ensure that ArgoCD can sync non-default storageclasses
correctly.

Fixes the change introduced in #7.
@simu simu added the bug Something isn't working label Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants