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

Adding linters and aligning code #169

Merged
merged 2 commits into from
Jan 13, 2021
Merged

Adding linters and aligning code #169

merged 2 commits into from
Jan 13, 2021

Conversation

prometherion
Copy link
Member

Closes #166.

@prometherion prometherion self-assigned this Dec 20, 2020
@prometherion prometherion force-pushed the issues/166 branch 2 times, most recently from e038781 to 8c0f9a7 Compare December 20, 2020 14:26
@prometherion
Copy link
Member Author

prometherion commented Dec 20, 2020

These changes could affect the work in progress by @paolocarta: thanks to the additional linters I discovered the (obvious) duplication of code for the StorageClass, IngressClass, and Registry allowed lists with exact and regex matching.

https://github.com/clastix/capsule/blob/8c0f9a74a56b98345b6ff29aaecf4fcc326eb406/api/v1alpha1/allowed_list.go

So I decided to perform refactoring of this to avoid the duplication of code, and the result seems neat to me but I could expect some pain performing a rebase of your work on #162: so, if this is going to happen, we can delay this PR after yours.

Just let me know!

@prometherion prometherion force-pushed the issues/166 branch 2 times, most recently from 26dcd6e to 4bfbf59 Compare December 20, 2020 22:31
@prometherion prometherion merged commit d270055 into master Jan 13, 2021
@prometherion prometherion deleted the issues/166 branch January 13, 2021 22:49
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.

Define required golangci linters
1 participant