-
Notifications
You must be signed in to change notification settings - Fork 96
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
Write deployment context in init container #2871
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2871 +/- ##
==========================================
- Coverage 89.86% 89.71% -0.16%
==========================================
Files 107 109 +2
Lines 10997 11091 +94
Branches 50 50
==========================================
+ Hits 9883 9950 +67
- Misses 1054 1082 +28
+ Partials 60 59 -1 ☔ View full report in Codecov by Sentry. |
Marking as draft cause I need to add some more unit tests to |
Marking as a draft again to make the following changes:
|
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 after that above comment change! thanks for handling this! 🚀 🌔
e51b2dc
to
00e8a48
Compare
Problems: * When running with N+, the first usage report does not contain the deployment context. The deployment context is needed in order to associate the instance with NGF. * When collecting the info for the deployment context, it is possible to fail. In this case we send a report to N1 without the deployment context. * The installation ID is the deployment ID, but it should be the Pod ID. Solutions: * When running with N+, write the deployment context to the shared volume mount in the init container. * Use the Pod UID instead of the deployment UID as the installation ID * Always set the static values of the deployment context in the nginx config. Static values include the integration and installation IDs.
Write deployment context in init container (#2871) Problems: * When running with N+, the first usage report does not contain the deployment context. The deployment context is needed in order to associate the instance with NGF. * When collecting the info for the deployment context, it is possible to fail. In this case we send a report to N1 without the deployment context. * The installation ID is the deployment ID, but it should be the Pod ID. Solutions: * When running with N+, write the deployment context to the shared volume mount in the init container. * Use the Pod UID instead of the deployment UID as the installation ID * Always set the static values of the deployment context in the nginx config. Static values include the integration and installation IDs.
Proposed changes
Problems:
Solutions:
Testing: Verified that all usage reports contain the deployment context.
Closes #2863
Checklist
Before creating a PR, run through this checklist and mark each as complete.
Release notes
If this PR introduces a change that affects users and needs to be mentioned in the release notes,
please add a brief note that summarizes the change.