Skip to content
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

fix: fix storage class creation when bootstrapping a cluster #39

Merged
merged 3 commits into from
Sep 4, 2024

Conversation

lentidas
Copy link
Contributor

Description of the changes

feat: move recurring jobs to their own resources

Instead of creating the recurring jobs from inside the StorageClass object, these are now created outside with their proper objects. They can still be selected to use by the StorageClass using the selectors that existed before.

fix: remove attribute causing issues when bootstrapping cluster

When we set this attribute, Longhorn creates a prototype StorageClass that Argo CD is then unable to update with the configurations desired, giving an error message The StorageClass "longhorn-backup" is invalid: parameters: Forbidden: updates to parameters are forbidden..

Removing the attribute defaultLonghornStaticStorageClass removes that problem while maintaining the normal behavior of the module, as the StorageClass is set as default by the annotation storageclass.kubernetes.io/is-default-class: {{ $.Values.backups.defaultStorageClass | quote }}.

⚠️ Do a Rebase and merge

Breaking change

  • No

Tests executed on which distribution(s)

  • SKS (Exoscale)

When we set this, Longhorn creates a prototype StorageClass that Argo CD is then unable to update with the configurations desired, giving an error message `The StorageClass "longhorn-backup" is invalid: parameters: Forbidden: updates to parameters are forbidden.`.

Removing the attribute `defaultLonghornStaticStorageClass` removes that problem while maintaining the normal behavior of the module, as the StorageClass is set as default by the annotation `storageclass.kubernetes.io/is-default-class: {{ $.Values.backups.defaultStorageClass | quote }}`.
@lentidas lentidas self-assigned this Aug 28, 2024
@lentidas lentidas requested a review from a team as a code owner August 28, 2024 12:55
@lentidas
Copy link
Contributor Author

lentidas commented Aug 28, 2024

@hbollon I would like you take a look at this PR when you have the time, because your platform is the only using the module. Let me know if I overlooked something.

@lentidas lentidas merged commit 59cfee1 into main Sep 4, 2024
@lentidas lentidas deleted the fix_storage_class_creation branch September 4, 2024 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants