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(setting): do not delete the storage class set in the setting default-longhorn-static-storage-class #3141

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

mantissahz
Copy link
Contributor

@mantissahz mantissahz commented Sep 5, 2024

Which issue(s) this PR fixes:

Issue # longhorn/longhorn#9391

What this PR does / why we need it:

Delete the old storage class set in reconciling the default-longhorn-static-storage-class setting.
Create the storage with a label if the storage class named as the value of default-longhorn-static-storage-class setting does not exist.

Special notes for your reviewer:

Additional documentation or context

@mantissahz mantissahz requested review from derekbit and a team September 5, 2024 05:59
@mantissahz mantissahz self-assigned this Sep 5, 2024
@mantissahz mantissahz marked this pull request as draft September 5, 2024 07:34
@derekbit
Copy link
Member

derekbit commented Sep 6, 2024

@mantissahz Is it ready?

@mantissahz
Copy link
Contributor Author

@mantissahz Is it ready?

Not yet, and I'm testing the modification of Phan's suggestions.

@mantissahz mantissahz marked this pull request as ready for review September 6, 2024 06:17
@mantissahz mantissahz changed the title fix(setting): do not delete the storage class fix(setting): do not delete the storage class set in the setting default-longhorn-static-storage-class Sep 6, 2024
controller/setting_controller.go Outdated Show resolved Hide resolved
types/types.go Outdated Show resolved Hide resolved
PhanLe1010
PhanLe1010 previously approved these changes Sep 6, 2024
Copy link
Contributor

@PhanLe1010 PhanLe1010 left a comment

Choose a reason for hiding this comment

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

LGTM

controller/setting_controller.go Outdated Show resolved Hide resolved
datastore/longhorn.go Outdated Show resolved Hide resolved
datastore/longhorn.go Outdated Show resolved Hide resolved
controller/setting_controller.go Outdated Show resolved Hide resolved
Delete the old storage class set in reconciling the
`default-longhorn-static-storage-class` setting.
Create the storage with a label if the storage class named as the
value of `default-longhorn-static-storage-class` setting does not
exist.

ref: longhorn/longhorn 9391

Signed-off-by: James Lu <james.lu@suse.com>
Copy link
Member

@derekbit derekbit left a comment

Choose a reason for hiding this comment

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

LGTM

@derekbit
Copy link
Member

derekbit commented Sep 9, 2024

@mergify backport v1.7.x v1.6.x

Copy link

mergify bot commented Sep 9, 2024

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.

3 participants