Skip to content
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 instance and preflight reports to a secret #4105

Merged
merged 6 commits into from
Oct 27, 2023

Conversation

cbodonnell
Copy link
Contributor

@cbodonnell cbodonnell commented Oct 20, 2023

What this PR does / why we need it:

This PR modifies airgap reporting so that instance and preflight data is written to a k8s secret. Additional dynamic collectors were added to the KOTS support bundle spec to write the data in these secrets to support bundles. This data will be written to secrets/[namespace]/kotsadm-[appSlug]-instance-report/report.json and secrets/[namespace]/kotsadm-[appSlug]-preflight-report/report.json for the instance and preflight reports, respectively.

Which issue(s) this PR fixes:

https://app.shortcut.com/replicated/story/88191/store-airgap-telemetry-for-the-sdk-in-a-kubernetes-secret

Special notes for your reviewer:

Steps to reproduce

Does this PR introduce a user-facing change?

NONE

Does this PR require documentation?

NONE

@cbodonnell cbodonnell added the type::feature New feature or request label Oct 20, 2023
pkg/reporting/util.go Outdated Show resolved Hide resolved
pkg/reporting/util.go Outdated Show resolved Hide resolved
pkg/reporting/report.go Outdated Show resolved Hide resolved
pkg/reporting/report.go Outdated Show resolved Hide resolved
pkg/reporting/report.go Outdated Show resolved Hide resolved
@cbodonnell cbodonnell force-pushed the cbo/sc-91370/airgap-instance-report-secret branch from afd5ef7 to 2f261b0 Compare October 25, 2023 21:29
@cbodonnell cbodonnell marked this pull request as ready for review October 25, 2023 21:32
@cbodonnell cbodonnell requested a review from sgalsaleh October 27, 2023 17:07
@cbodonnell cbodonnell merged commit aa429aa into main Oct 27, 2023
240 checks passed
@cbodonnell cbodonnell deleted the cbo/sc-91370/airgap-instance-report-secret branch October 27, 2023 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants