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 panic when spec.fluentd is omitted from Logging manifest #872

Merged
merged 3 commits into from
Nov 26, 2021

Conversation

lander2k2
Copy link
Contributor

Signed-off-by: Rich Lander [email protected]

Q A
Bug fix? yes
New feature? no
API breaks? no
Deprecations? no
Related tickets fixes #871
License Apache 2.0

What's in this PR?

There were some fluentd defaults being set for the logging object in it's SetDefaults method that were outside the if-statement that checks for the presence of a fluend spec. I just nested those default setters under that if-statement.

Why?

The controller panics when it tries to set attributes of a fluend spec that don't exist.

Checklist

@CLAassistant
Copy link

CLAassistant commented Oct 29, 2021

CLA assistant check
All committers have signed the CLA.

@lander2k2 lander2k2 marked this pull request as draft October 29, 2021 15:51
@lander2k2 lander2k2 marked this pull request as ready for review October 29, 2021 20:02
@ahma ahma requested review from tarokkk and ahma November 26, 2021 12:02
Copy link
Contributor

@ahma ahma left a comment

Choose a reason for hiding this comment

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

Thanks @lander2k2 LGTM

@ahma ahma requested a review from siliconbrain November 26, 2021 12:38
Copy link
Contributor

@siliconbrain siliconbrain left a comment

Choose a reason for hiding this comment

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

lgtm

@ahma ahma merged commit 76b7d17 into kube-logging:master Nov 26, 2021
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.

Panic when excluding fluentd
5 participants