Backport PreInit hook support, and deprecate PreBootstrap#290
Conversation
|
While setting it as deprecated is more correct, I'm a bit concerned with breaking pipelines due to linter issues which will need to be ignored or addressed if they update to |
There was a problem hiding this comment.
Looks good to me but I think we should rather release this in a v2.x.0 instead of a patch version as it deprecates existing features.
Whilst thinking more about this probably adding the websocket client function (as an example) would have also been a good candidate for a v2.x.0 instead of v2.0.x.
Either way I think it's not considered to be a breaking change if downstream pipelines will now produce a warning due to the deprecation of the func.
I would even say that is wanted so that they can either switch the func or proactively add an ignore statement themselves.
bschimke95
left a comment
There was a problem hiding this comment.
LGTM, thanks for the backport!
…init Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com> (cherry picked from commit 6375e4d)
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com> (cherry picked from commit cd15984)
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com> (cherry picked from commit 5b11527)
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com> (cherry picked from commit 675125d)
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com> (cherry picked from commit 4201bfa)
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com> (cherry picked from commit 21427d3)
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
75660c3 to
f0d561f
Compare
|
I've changed this to now error out if both PreBootstrap and PreInit are defined, rather than silently unset PreBootstrap. |
k8s-snap has requested PreInit to be included in the LTS as they are dependent on it for their LTS.
This feature clashes with the PreBootstrap hook and was meant to replace it, so instead PreBootstrap is set as deprecated, and will be replaced with a noop function if PreInit is defined by the upstream package.