-
Notifications
You must be signed in to change notification settings - Fork 505
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
Release Archiver #1768
Release Archiver #1768
Conversation
Two functions have been added to the util pkg: - StripControlCharacters() Removes control chars and bare linefeeds - StripSensitiveData() Removes data deemed sensitive (currently oauth tokens) - CleanLogFile() uses the former two to clean log files Thegcs package now can delete location from a bucket using a new func: - gcs.DeletePath() - this function honors the flag mechanism in the package Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
This commit packs pkg/release/archive.go which implements the old archive functionality from bash anago. Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
This commit adds the tests for the release archiver They are broken into three files: - archive_test.go Implements the test using the counterfeiter mocks - archive_unit_test.go Has te individual unit tests for the functions that power the archiver - releasefakes/fake_archiver_impl.go The generated mock implementation Signed-off-by: Adolfo García Veytia (Puerco) <adolfo.garcia@uservers.net>
01dbde3
to
3cf7f6e
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: puerco, saschagrunert The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR implements in go the
anago
code corresponding to the oldarchive_release ()
function.This part of the release process copies a release to the release bucket, sanitizes the log files, changes the ACL of the logs and removes older staged releases.
Which issue(s) this PR fixes:
Part of #1673
Related to #1765
Special notes for your reviewer:
PR is broken in 3 commits:
Does this PR introduce a user-facing change?