-
Notifications
You must be signed in to change notification settings - Fork 376
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
helm: adding optional to expose tetragon-operator metrics #1797
helm: adding optional to expose tetragon-operator metrics #1797
Conversation
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.
Thank you for tackling this @hungran. I left some comments about the Helm values.
✅ Deploy Preview for tetragon ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
indent level was re-corrected, @lambdanis might have chance to re-run the CI? |
@hungran Thanks for the update, I requested one more change (to pass port to the operator via the configmap). Also, please run Could you also squash the commits when you make changes? Thanks! |
b6302fb
to
564b819
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.
@lambdanis not sure why must pass port to configmap as metrics-bind-address
as we changed the default value to 2113
or here we can have a way that cmd.Flag() could have metrics-bind-address from config file (config map)? is this idea here?
noted: there is a change from test.sh
as below, also generated README.md
The operator configmap is mounted in the operator deployment, and the flags are read from there already. So to make it possible to use a non-default port for the metrics server, we need to pass a flag via the configmap. |
Hi @lambdanis Correct me if I'm wrong, the current TetragonOperator not yet read that flag though? tetragon/operator/cmd/serve/serve.go Line 93 in 564b819
|
You're right, currently the operator doesn't read this flag from the configmap, thank you for testing it 🙇♀️ It does, however read this flag if it's passed as a command line argument, so we can pass it here in the deployment spec. It seems some changes merged to main are conflicting with your changes (sorry about that), could you rebase your branch with main and force push? Please remove the merge commits and rebase instead, it seems that CI doesn't like these merges. |
036efef
to
40da16e
Compare
Thanks, it was run from my local environment by the container argument |
40da16e
to
1be331f
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.
One indent in the service seems too big, but other than that changes look good :)
I see that the commit message contains multiple sign-offs. Could you amend it to keep only one at the end?
1be331f
to
870b69d
Compare
ah right, done |
870b69d
to
f47d778
Compare
@hungran It looks like you need to run |
f47d778
to
b22126c
Compare
no worries, a new local environment not yet has |
b22126c
to
aee9508
Compare
Signed-off-by: hungran <[email protected]>
aee9508
to
efa7ca7
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.
Thank you @hungran!
hey team, I'm new here so please correct me if I'm missing somewhere
This will fix the issue #1778