-
Notifications
You must be signed in to change notification settings - Fork 271
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
Add NGINX metrics and update security context #356
base: main
Are you sure you want to change the base?
Conversation
There are also conflicts with the deployment.yaml. Added Kate and Taylor as reviewers since this is a larger PR and I want to be sure I don't miss anything. 🙏 |
Rebased on current master and fixed markdown table. |
Uhm, I think my request for re-review removed @tvories and @provokateurin from the requested reviewers. Sorry. |
Looks like there's conflicts for the chart, values, and readme. The README is likely due to the me splitting up the config parameters so that they're more easily linkable. Sorry about that :( If you can resolve the conflicts, I can take a look at what Kate requested for changes and review the PR again. |
1753f30
to
6765b7b
Compare
Rebased on current master branch. |
approved lint and test run |
6765b7b
to
2f95cec
Compare
@jessebot thanks for the review. The quotes for user and group numbers were my mistake. I also updated the securityContext, but didn't see the removed quoted from upstream. |
774ad8e
to
a021b56
Compare
I've rebased as best as possible. |
It looks nice, thank you for your work. Do you like to write simething for a sidecar with an nginx-exporter and maybe adjust or add an ServiceMonitor for Prometheus? nginx exporter:
|
Prometheus already has their own Helm chart for this, I'd rather not reinvent the wheel. Maybe you could set this as a dependency when metrics is enabled, but for now I'd just like to have this included. This PR has been open for so long already. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a few more notes as there's some defaults that have been set in the templates that should be configurable.
Merged in the changes from #483 |
Signed-off-by: Jeroen Rijken <[email protected]>
Signed-off-by: Jeroen Rijken <[email protected]>
I've included your comments and squashed my commits to make everything more legible. Ready for another review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still something todo (some things should be visible if you run chart-testing on your computer)
# Example | ||
# - 10.233.105.0/24 | ||
# - 10.43.0.0/16 | ||
service: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This value has no affact anywhere ....
But maybe usefull (on deployment under ports and your ConfigMap rendered; or service).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually used in nginx-config.yaml:
{{- range .Values.metrics.nginx.allow }}
allow {{ . }};
{{- end }}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.Values.metrics.nginx.allow
is not the same as .Values.nginx.metrics.service.port
, which is the values you have here. Am I maybe misunderstanding something?
Signed-off-by: Jeroen Rijken <[email protected]>
Fixes included, I think. |
{{- if .Values.nextcloud.configs.defaultMode }} | ||
defaultMode: .Values.nextcloud.configs.defaultMode | ||
{{- end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As @wrenix said, this could be with
and it would save on required code, also you need {{}}
surrounding the .Values.nextcloud.configs.defaultMode
or the helm template won't work render:
{{- if .Values.nextcloud.configs.defaultMode }} | |
defaultMode: .Values.nextcloud.configs.defaultMode | |
{{- end }} | |
{{- with .Values.nextcloud.configs.defaultMode }} | |
defaultMode: {{ . }} | |
{{- end }} |
You can commit this suggestion directly.
{{- if .Values.nextcloud.configs.defaultMode }} | ||
defaultMode: .Values.nextcloud.configs.defaultMode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
echoing wrenix here since it won't let me make a suggestion in a comment reply to their comment.
{{- if .Values.nextcloud.configs.defaultMode }} | |
defaultMode: .Values.nextcloud.configs.defaultMode | |
{{- with .Values.nextcloud.configs.defaultMode }} | |
defaultMode: {{ . }} |
You can commit this suggestion directly from this PR.
{{- if .Values.nextcloud.configs.defaultMode }} | ||
defaultMode: .Values.nextcloud.configs.defaultMode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{{- if .Values.nextcloud.configs.defaultMode }} | |
defaultMode: .Values.nextcloud.configs.defaultMode | |
{{- with .Values.nextcloud.configs.defaultMode }} | |
defaultMode: {{ . }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requesting a few changes to make the templates render properly and reduce wordiness.
Signed-off-by: Jesse Hitch <[email protected]>
I've added |
Pull Request
Description of the change
Benefits
Possible drawbacks
Applicable issues
Checklist
Chart.yaml
according to semver.