-
Notifications
You must be signed in to change notification settings - Fork 370
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
Update generate-manifest-flow-aggregator.sh with new config #3526
Conversation
sed -i.bak -E "s/^[[:space:]]*#[[:space:]]*address[[:space:]]*:[[:space:]]\"\"+[[:space:]]*$/ address: \"$FLOW_COLLECTOR\"/" flow-aggregator.conf | ||
fi | ||
|
||
if [[ $CLICKHOUSE != "" ]]; then |
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.
"if $CLICKHOUSE"?
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, addressed.
b4f9cfb
to
a3c7374
Compare
perl -i -p0e 's/ # Enable is the switch to enable exporting flow records to external flow collector.\n #enable: false/ # Enable is the switch to enable exporting flow records to external flow collector.\n enable: true/' flow-aggregator.conf | ||
sed -i.bak -E "s/^[[:space:]]*#[[:space:]]*address[[:space:]]*:[[:space:]]\"\"+[[:space:]]*$/ address: \"$FLOW_COLLECTOR\"/" flow-aggregator.conf | ||
fi | ||
|
||
if $CLICKHOUSE; then | ||
perl -i -p0e 's/ # Enable is the switch to enable exporting flow records to ClickHouse.\n #enable: false/ # Enable is the switch to enable exporting flow records to ClickHouse.\n enable: true/' flow-aggregator.conf |
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.
I hope the perl dependency will not be an issue. But I understand that multiline sed is not practical. We can improve later if needed.
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.
Got it, 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.
@dreamtalen Can you open a github issue for getting rid of the perl dependency? Just to make sure we will remember to do that before it becomes a problem!
This option will work only with 'dev' mode. | ||
--help, -h Print this message and exit | ||
--mode (dev|release) Choose the configuration variant that you need (default is 'dev') | ||
--flow-collector, -fc Flow collector is the flowCollector address configMap parameter |
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.
not introduced by this PR, but this should be --flow-collector, -fc <addr>
to indicate that an arg is required (same for summary line above)
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 for pointing out, addressed.
a3c7374
to
e98d440
Compare
@dreamtalen what's the Jenkins job to run for this, could you start it? |
e98d440
to
c1df3f4
Compare
Hi @antoninbas, currently only the daily-flow-visibility-validate Jenkins job will use the Not for this PR, I noticed forgetting to add the description inside Jenkins readme.md of the daily-flow-visibility-validate Jenkins job in the last commit. Included that in this PR too. |
--help, -h Print this message and exit | ||
--mode (dev|release) Choose the configuration variant that you need (default is 'dev') | ||
--flow-collector, -fc <addr> Flow collector is the flowCollector address configMap parameter | ||
It should be given in format IP:port:proto. Example: 192.168.1.100:4739:udp |
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.
Add "." at the end of the sentence.
This option will work only with 'dev' mode. | ||
--help, -h Print this message and exit | ||
--mode (dev|release) Choose the configuration variant that you need (default is 'dev') | ||
--flow-collector, -fc <addr> Flow collector is the flowCollector address configMap parameter |
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.
Change to: "Specify the flowCollector address."?
Add "." at the end of the sentence.
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 Jianjun for the reviews. Addressed.
In this commit, we updated the hack/generate-manifest-flow-aggregator.sh with new configuration of Flow Aggregator to support both FlowCollector and Clickhouse sink. Signed-off-by: Yongming Ding <[email protected]>
c1df3f4
to
77b396e
Compare
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.
change LGTM
/skip-all |
In this commit, we updated the hack/generate-manifest-flow-aggregator.sh
with the new configuration of Flow Aggregator introduced in PR #3196 to
support both FlowCollector and Clickhouse sink.
Signed-off-by: Yongming Ding [email protected]