-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: compress work/workplacements documents (#243)
* wip: start compresing work.spec.content before creation in k8s Signed-off-by: Shane Dowling <[email protected]> * wip: pull out gzip functions into utils package * fix: base64 encode compressed content and decompress before writing * gzip content is binary data which cannot be used in k8s specs * pull compression functions out to the kratix lib * begin updating controller tests Signed-off-by: Abby Bangser <[email protected]> * fix: update scheduler tests to use compressed content * whilst the Scheduler tests do not fail if the content is not compressed, the test have been updated to document that the content at the point at which the Work is being handles by the scheduler would be compressed. As the Schedule does not call the Works underlying Reconcile function or attempt to query of modify the content, the form of the content does not impact the functionalty of the Scheduler * fix: update WorkplacementReconciler test to reflect where the content would be decompressed * chore: update build-and-load-worker-creator make target to build-and-load-work-creator * chore: remove unused ReconcileAllDependencyWorks function * switch to ptr package in place of deprecated pointer package * chore: ensure compression library is imported correctly Signed-off-by: Chunyi Lyu <[email protected]> * chore: commit compression library and remove go.mod replace Signed-off-by: Chunyi Lyu <[email protected]> * chore: update referenced to build-and-load-worker-creator make target Signed-off-by: Chunyi Lyu <[email protected]> * chore: use pointer library for Bool function Signed-off-by: Chunyi Lyu <[email protected]> * chore: refactor a very long func name - requestReconcilationOfAllWorksOnDestinationCreateOrUpdate() Co-authored-by: Sapphire Mason-Brown <[email protected]> * chore: add crd description for workload context Co-authored-by: Sapphire Mason-Brown <[email protected]> --------- Signed-off-by: Shane Dowling <[email protected]> Signed-off-by: Abby Bangser <[email protected]> Signed-off-by: Chunyi Lyu <[email protected]> Co-authored-by: Sapphire Mason-Brown <[email protected]>
- Loading branch information
Showing
18 changed files
with
265 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.