-
Notifications
You must be signed in to change notification settings - Fork 1
Fix: use GRAYLOG_DATANODE_ prefix #42
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
Conversation
…e datanode secret
|
Validation steps:
|
|
We should also have a check to verify When setting all the appropriate values, this does work though! |
Could you open a new issue for this, please? A first iteration of a patch for this issue could look like this: However, since the size check requires parsing the actual numbers to perform the comparison, and the units could vary between |
williamtrelawny
left a comment
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! 🚀 Awesome work!
This closes #31
All Graylog Datanode env vars should have the
GRAYLOG_DATANODE_prefix, as indicated in graylog-docker (except forJAVA_OPTSwhich is justJAVA_OPTS).As pointed out by @williamtrelawny , all secret fields must be base64 encoded as described in the Kubernetes API reference docs. This PR fixes this, In addition to separating DataNode-only vars into its own Secret resource.
Finally, a minor validation is added: when any one or two of
s3ClientDefaultAccessKey,s3ClientDefaultSecretKey, ands3ClientDefaultEndpointare specified, but not the three of them, the templates will fail to render as to prevent a CrashLoopBackoff from the datanode pods as all three values are required for a correct start.Notes for Reviewers