-
Notifications
You must be signed in to change notification settings - Fork 779
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
feat: allow for log-level to be independently configured #2389
Conversation
Signed-off-by: Connor Given <givencp@gmail.com>
@@ -76,7 +76,7 @@ spec: | |||
- --logtostderr | |||
- --log-denies={{ .Values.logDenies }} | |||
- --emit-admission-events={{ .Values.emitAdmissionEvents }} | |||
- --log-level={{ .Values.logLevel }} | |||
- --log-level={{ (.Values.controllerManager.logLevel | empty | not) | ternary .Values.controllerManager.logLevel .Values.logLevel }} |
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.
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.
We can if you want, but from the helm perspective, I don't think it's necessary.
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.
nit: Would be nice to at least add it to the helm docs here: https://github.com/open-policy-agent/gatekeeper/blob/00bc24f6c5d67b4fa3248f6197dc9726a9436771/cmd/build/helmify/static/README.md
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: 938c308
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.
@congiv can you pls run make manifests
again to get the README changes into manifest_staging? Thanks!
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.
done
@@ -76,7 +76,7 @@ spec: | |||
- --logtostderr | |||
- --log-denies={{ .Values.logDenies }} | |||
- --emit-admission-events={{ .Values.emitAdmissionEvents }} | |||
- --log-level={{ .Values.logLevel }} | |||
- --log-level={{ (.Values.controllerManager.logLevel | empty | not) | ternary .Values.controllerManager.logLevel .Values.logLevel }} |
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.
is this backwards compatible?
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.
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.
LGTM
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.
LGTM
Signed-off-by: Connor Given <givencp@gmail.com>
Signed-off-by: Connor Given <givencp@gmail.com>
Signed-off-by: Connor Given givencp@gmail.com
What this PR does / why we need it:
This adds functionality to allow the log level of the audit and controller manager Pods to be independently configured.
Which issue(s) this PR fixes :
Fixes #2262
Special notes for your reviewer: kept
.Values.logLevel
for backward compatibility. This value will still be used if the new, workload specific, values aren't specified.