-
Notifications
You must be signed in to change notification settings - Fork 16.8k
[stable/chaoskube] Feature/structured log flag #10986
[stable/chaoskube] Feature/structured log flag #10986
Conversation
6984a20
to
fd0eec8
Compare
fd0eec8
to
17db727
Compare
@syedimam0012 Thank you!
|
@@ -40,6 +40,9 @@ excludedDaysOfYear: | |||
# Set specific Timezone for Actions to take place | |||
timezone: UTC | |||
|
|||
# If nothing set, defaults to "text". Switch to "json" to enable structured logging | |||
logFormat: |
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.
You could use logFormat: text
here and leave out the {{- if .Values.logFormat }}
stuff in deployment.yaml
.
I tend to like that more in this chart but ultimately you can decide 😄
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.
That's what I did initially before I had encountered logFormat
: empty
was failing. Happy to revert this and leave "text" in the helm values
.
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.
For upgrading it's actually better to do the if
stuff. Thank you 😃
dc62aff
to
9a28f0e
Compare
lgtm, thank you @syedimam0012 😀 |
@linki would you be able to |
stable/chaoskube/Chart.yaml
Outdated
@@ -1,7 +1,7 @@ | |||
apiVersion: v1 | |||
name: chaoskube | |||
version: 0.14.0 | |||
appVersion: 0.12.1 | |||
version: 0.15.0 |
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.
With #11780 this version number should change to 1.1.0
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.
Thanks, @marc-sensenich for the update.
@linki would you want me to update this to 1.1.0
?
/assign @syedimam0012, is this good to go? |
Signed-off-by: Syed Imam <[email protected]>
Signed-off-by: Syed Imam <[email protected]>
af35dd0
to
66909a1
Compare
Signed-off-by: Syed Imam <[email protected]>
3928330
to
a76f5ed
Compare
I think so @maorfr |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: maorfr, syedimam0012 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* [stable/chaoskube] add option to choose log format Signed-off-by: Syed Imam <[email protected]> * [stable/chaoskube] bumping Chart and image versions Signed-off-by: Syed Imam <[email protected]> * [stable/chaoskube] Version bump Signed-off-by: Syed Imam <[email protected]>
* [stable/chaoskube] add option to choose log format Signed-off-by: Syed Imam <[email protected]> * [stable/chaoskube] bumping Chart and image versions Signed-off-by: Syed Imam <[email protected]> * [stable/chaoskube] Version bump Signed-off-by: Syed Imam <[email protected]>
@syedimam0012 @marc-sensenich @maorfr Thank you! |
* [stable/chaoskube] add option to choose log format Signed-off-by: Syed Imam <[email protected]> * [stable/chaoskube] bumping Chart and image versions Signed-off-by: Syed Imam <[email protected]> * [stable/chaoskube] Version bump Signed-off-by: Syed Imam <[email protected]>
* [stable/chaoskube] add option to choose log format Signed-off-by: Syed Imam <[email protected]> * [stable/chaoskube] bumping Chart and image versions Signed-off-by: Syed Imam <[email protected]> * [stable/chaoskube] Version bump Signed-off-by: Syed Imam <[email protected]>
What this PR does / why we need it:
This feature adds a new flag
logFormat
that can be set to either"text"
(i.e. default) or"json"
without affecting the existing behaviour.Special notes for your reviewer:
PR in the source has to be merged before this one, which will return a new
appVersion
that requires to be updated here. Chartversion
also needs to be bumped.@linki
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]