-
-
Notifications
You must be signed in to change notification settings - Fork 16
Fix: Invalid app version label when using hash in custom image #1076
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
base: main
Are you sure you want to change the base?
Conversation
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.
I really like us now using a typed value :)
Only some nits
crates/stackable-operator/src/commons/product_image_selection.rs
Outdated
Show resolved
Hide resolved
crates/stackable-operator/src/commons/product_image_selection.rs
Outdated
Show resolved
Hide resolved
Co-authored-by: Sebastian Bernauer <[email protected]>
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.
Blocking for now, I will come back to this later today.
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.
Thanks for fixing the bug!
crates/stackable-operator/src/commons/product_image_selection.rs
Outdated
Show resolved
Hide resolved
Co-authored-by: Techassi <[email protected]>
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.
One last nit-pick, then ready to go.
|
||
- BREAKING: Fix bug where `ResolvedProductImage::app_version_label` could not be used as a label value because it can contain invalid characters. | ||
This is the case when referencing custom images via a `@sha256:...` hash. As such, the `product_image_selection::resolve` function is now fallible. | ||
The `ResolvedProductImage` field `app_version_label` was renamed to `app_version_label_value` to match its type ([#1076]). |
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.
note: Please move this (line 11) into the "changed" section instead. Make sure to also prefix it with BREAKING
.
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.
done e4f1f88
Description
When using custom images like:
the operator errors out due to creating invalid labels:
This is a quick and dirty fix replacing all ":" in the hash_or_tag_image used for creating the label with "-" and parsing it as LabelValue.
This is breaking as the "resolve" method now returns an error.
Definition of Done Checklist
Author
Reviewer
Acceptance