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: cleanup and linting of metric resources #481

Closed
wants to merge 3 commits into from

Conversation

wrenix
Copy link
Collaborator

@wrenix wrenix commented Nov 20, 2023

Pull Request

Additional information

Split of #478

  1. Move the metrics-deployment related resources into dedicated folder templates/metrics.
    make a fee cleanups and lints for easier readable:

    • indent of list
    • use nindent instatt of indent
    • use with instatt of if
    • merge if with using and (and could handle more then two parameters)
  2. Add namespaceSelector on servicemonitor

  3. add ci/*-values.yaml for chart-testing

Checklist

@wrenix wrenix force-pushed the fix/metrics branch 3 times, most recently from 1bc1970 to 20a76de Compare November 20, 2023 10:36
@wrenix wrenix changed the title fix: cleanup and linting of metric resources fix: cleanup and linting of metric ressources Nov 20, 2023
@jessebot jessebot changed the title fix: cleanup and linting of metric ressources fix: cleanup and linting of metric resources Nov 21, 2023
Copy link
Collaborator

@jessebot jessebot left a comment

Choose a reason for hiding this comment

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

Looks OK, but please add a description of what you're doing and why to the PR description.

@wrenix
Copy link
Collaborator Author

wrenix commented Nov 22, 2023

Done

@jessebot
Copy link
Collaborator

Awesome, thank you! Have you tested installing this with metrics enabled?

@wrenix
Copy link
Collaborator Author

wrenix commented Nov 22, 2023

Nope, but if you like i will (and then i will also reimplement #349 ).

@jessebot
Copy link
Collaborator

Yes, please test parts of the code you are modifying. That's probably a good habit generally, but at least until we figure out the helm unit tests (I still haven't had the time to sit down and play with it after the most recent PR was added) or add more CI jobs to do more than the default install.

@wrenix
Copy link
Collaborator Author

wrenix commented Nov 22, 2023

New chart version: 4.5.3
Chart version ok.
Validating /home/wrenix/src/github.com/nextcloud/helm/charts/nextcloud/Chart.yaml...
Validation success! 👍
Validating maintainers...

Linting chart with values file "charts/nextcloud/ci/ct-all-enabled-values.yaml"...

==> Linting charts/nextcloud

1 chart(s) linted, 0 chart(s) failed

Linting chart with values file "charts/nextcloud/ci/ct-specials-values.yaml"...

==> Linting charts/nextcloud

1 chart(s) linted, 0 chart(s) failed

------------------------------------------------------------------------------------------------------------------------
 ✔︎ nextcloud => (version: "4.5.3", path: "charts/nextcloud")
------------------------------------------------------------------------------------------------------------------------
All charts linted successfully


@wrenix wrenix force-pushed the fix/metrics branch 4 times, most recently from 1e3fb29 to a2747c5 Compare November 22, 2023 22:05
@wrenix wrenix requested a review from jessebot November 23, 2023 18:13
@wrenix wrenix mentioned this pull request Nov 27, 2023
3 tasks
@wrenix wrenix force-pushed the fix/metrics branch 2 times, most recently from 019b179 to bbb4f14 Compare November 30, 2023 11:26
@wrenix
Copy link
Collaborator Author

wrenix commented Nov 30, 2023

rebased

@jessebot
Copy link
Collaborator

jessebot commented Dec 2, 2023

Thanks! Approved the workflow.

add namespaceSelector #349

Can we put a little "Coauthored by" on a commit here to credit Richardds for the other PR so that when we merge this one, we can close #349 at the same time and say thank you?

@jessebot
Copy link
Collaborator

jessebot commented Dec 2, 2023

Please bump the chart version a minor version as we will be adding the functionality of the namespace selector here :)

@wrenix
Copy link
Collaborator Author

wrenix commented Dec 2, 2023

done:

@wrenix
Copy link
Collaborator Author

wrenix commented Dec 8, 2023

rebased and version dump again

@wrenix wrenix force-pushed the fix/metrics branch 2 times, most recently from d76836e to 18c5931 Compare December 25, 2023 10:51
wrenix and others added 2 commits December 25, 2023 11:55
@wrenix
Copy link
Collaborator Author

wrenix commented Dec 25, 2023

rebased and version dump again.

ping @jessebot


that is my fourth version dump, without any new review.

So, please say something or i will close this PR ....
(PS: of course i could remove the ci/ct-*-values.yaml commit if we want discuss it later or still here #480 (comment))

@wrenix wrenix closed this Jan 31, 2024
@wrenix
Copy link
Collaborator Author

wrenix commented Jan 31, 2024

another conflict ... - so i stop supporting this PR

@provokateurin
Copy link
Member

@wrenix we are happy to review improvements, I just think that these huge PRs make it hard to review and currently nobody seems to really have time for it. If could split your changes into smaller PRs then they can be reviewed sooner.

@wrenix
Copy link
Collaborator Author

wrenix commented Jan 31, 2024

that is already a split into parts ... and you did not asked in this pr again ....

you could take the rebased version/commit from here:
https://github.com/wrenix/nextcloud-helm/commits/main/

current it is:

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