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.
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