-
Notifications
You must be signed in to change notification settings - Fork 215
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
refactor: To ensure telemetry is only enabled when both conditions are met. #393
Conversation
@Carpe-Wang this seems correct, can you test it and confirm the behavior is what we want? |
@microsoft-github-policy-service agree |
hey @rbtr, I had comment on #339, and I noticed #339 had assigned to me. I make some new commits about test the unit test successfully. |
Hey, I have a question about how to execute the workflows whose status is always |
Only project maintainers can trigger the workflows |
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.
@Carpe-Wang can you sign all your commits please, thanks 🙂
@nddq I have signed all my commits. I hope they meet your expectations. Please check them. |
@Carpe-Wang seems like you missed a few commits |
|
So what I meant is that we are looking for the |
eaf88d6
to
cb11c07
Compare
@Carpe-Wang there are still unsigned commits, so we can't merge this yet 🥲 |
@Carpe-Wang as mentioned previously, all commits in a PR must be signed. As long as you have commits without a (Verified) badge on this page, this will not be mergeable due to signing policy. Updating the branch from main won't change this. |
Head branch was pushed to by a user without write access
…e met. Signed-off-by: Carpe-Wang <[email protected]>
@nddq Sorry, I've been a bit busy these days and didn't have enough time to handle it. I just did a |
@rbtr thank you for your comment. I haven't used rebase before. I tried a few times without much success because when I pushed, there were many commits that weren't mine. So, I opted to use reset --hard directly. Thank you for your guidance. |
} | ||
|
||
// Define a command-line flag "config" with a default value and parse the flags, then create a logger with a name and version. | ||
configPath := flag.String("config", "/retina/config/config.yaml", "path to the config file") |
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.
@Carpe-Wang looks like you need to pass in the path to the config via arguments to the init-container as well. Please refer to how we are currently doing it for the agent's main container
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.
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.
that should work
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.
okay, I had push the newest commit.
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.
oops i forgot to mention, you will also have to mount the path the config file like we are doing with the main container. Thanks for the prompt response!
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.
@nddq I change the file according to your comment. Please review it.
Signed-off-by: Carpe-Wang <[email protected]>
Signed-off-by: Carpe-Wang <[email protected]>
This PR will be closed in 7 days due to inactivity. |
Pull request closed due to inactivity. |
Description
About #339. Based on my understanding of this issue, to ensure telemetry is only enabled when both conditions are met, thus avoiding unnecessary or incorrect configuration leading to resource waste or incorrect data collection, I believe we need to add a check for
enableTelemetry
being true in theif applicationInsightsID != ""{
and I want to change toif applicationInsightsID != "" && enableTelemetry {
. But I'm not sure if my understanding is correct.Related Issue
If this pull request is related to any issue, please mention it here. Additionally, make sure that the issue is assigned to you before submitting this pull request.
Checklist
git commit -S -s ...
). See this documentation on signing commits.Screenshots (if applicable) or Testing Completed
Please add any relevant screenshots or GIFs to showcase the changes made.
Additional Notes
Add any additional notes or context about the pull request here.
Please refer to the CONTRIBUTING.md file for more information on how to contribute to this project.