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: remove minimum size requirements #97

Closed
wants to merge 3 commits into from

Conversation

i-chvets
Copy link
Contributor

@i-chvets i-chvets commented Jan 4, 2023

#78

Summary of changes:

  • Removed minimum size requirements from metadata.yaml

NOTE: Extra changes (in addition to one in metadata.yaml) are required to have update libraries and test operator framework.

#78

Summary of changes:
- Removed minimum size requirements from metadata.yaml
@i-chvets i-chvets requested a review from a team as a code owner January 4, 2023 19:19
#78

Summary of changes:
- Updated libraries
#78

Summary of changes:
- Fixed tests to match update library and ops.
- Modified tox.ini to ignore appropriate directories.
@ca-scribner
Copy link
Contributor

What is the behaviour when there is no minimum size set? Is it that there is no storage created, or that it just uses some juju default?

I wonder if the best fix to #78 would be to remove the storage entirely. Is that what happens here?

--skip {toxinidir}/build --skip {toxinidir}/lib --skip {toxinidir}/venv \
--skip {toxinidir}/.mypy_cache \
--skip {toxinidir}/icon.svg --skip *.json.tmpl
codespell {toxinidir}/. --skip {toxinidir}/./.git --skip {toxinidir}/./.tox \
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you explain what issue you are having without this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Those directories are not ignored by codespell if /./ is not there. This is pretty much how it is done in other repos as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest splitting this and the library bump up into a separate PR so it is clear what fixes #78 and what is maintenance

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 on the above suggestion, please split this PR with those maintenance/CI fixes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it. Will do.

@i-chvets
Copy link
Contributor Author

i-chvets commented Jan 4, 2023

@ca-scribner

Storage is optional. No default minimum size is defined, as far as I can see. Charm is using /data directory as specified by storage, so I don't think it is safe to completely remove.

@ca-scribner
Copy link
Contributor

If we cannot remove the storage entirely, what happens when we just omit the minimum size? What size volume is being created? I'm partly worried that, by not setting 10GB as the minimum, we're actually getting a larger volume

@i-chvets
Copy link
Contributor Author

i-chvets commented Jan 4, 2023

Looks like without minimum set, PVC is 1G:
minio-data-f8ff2d4c-minio-0 Bound pvc-955d1a2b-7702-45d8-a5c5-3549adee5702 1Gi RWO microk8s-hostpath

@i-chvets i-chvets closed this Jan 4, 2023
@i-chvets i-chvets deleted the kf-842-gh78-fix-minio-min-size-requirement branch January 4, 2023 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants