Repository navigation
feat(create)!: validate package secret size - #5528
Conversation
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
✅ Deploy Preview for zarf-docs canceled.
|
Codecov Report❌ Patch coverage is
... and 40 files with indirect coverage changes 🚀 New features to boost your workflow:
|
brandtkeller
left a comment
There was a problem hiding this comment.
lgtm - my only other preference would be whether we wanted to instead have a function return the marshalled deployedpackage in such a way as to add a debug log indicating size and/or create some threshold for a warning.
I do not know how niche this would be after the annotation size limiters so I wouldn't block on it - just thinking about how to be more observable.
|
@brandtkeller I updated the error message, since I think the split into smaller packages advice doesn't make a ton of sense, but I think if you have a package this big it should be obvious what's causing it |
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Co-authored-by: Brandt Keller <43887158+brandtkeller@users.noreply.github.com> Signed-off-by: Austin Abro <37223396+AustinAbro321@users.noreply.github.com>
Signed-off-by: Austin Abro <austinabro321@gmail.com>
Description
This adds validation that the package on create won't exceed the kubernetes secret size.
I decided to make the check 1mb, at least on create, so there is room for any additional options that we might add on deploy. Should still be plenty.
We'll let this bake for a release, then add a pre-flight check on deploy, and fail if the secret fails to save.
Related Issue
Relates to #5517
Checklist before merging