forked from LaconicNetwork/kompose
#### What type of PR is this? <!-- Add one of the following kinds: /kind bug /kind documentation /kind feature --> /kind cleanup #### What this PR does / why we need it: Fixes the current broken examples by: * Removing all the old incompatible ones (we do not really support v3 anymore or v2... since switching libraries) * Uses quay.io/kompose/web as our front end example which is a fork of the guestbook-go kubernetes examples #### Which issue(s) this PR fixes: <!-- *Automatically closes linked issue when PR is merged. Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> Closes https://github.com/kubernetes/kompose/issues/1757 #### Special notes for your reviewer: Test using docker-compose (you'll see it come up!), then try with kompose :) Signed-off-by: Charlie Drage <charlie@charliedrage.com>
3.1 KiB
3.1 KiB
Change Log
ATTN: This project uses semantic versioning.
Unreleased -
[1.0.0] - 2018-09-01
Fixed
Loggermiddleware now correctly handles paths containing a%instead of trying to treat it as a format specifier
[0.3.0] - 2017-11-11
Added
With()helper for building a newNegronistruct chaining handlers from existingNegronistructs- Format log output in
Loggermiddleware via a configurabletext/templatestring injectable via.SetFormat. AddedLoggerDefaultFormatandLoggerDefaultDateFormatto configure the default template and date format used by theLoggermiddleware. - Support for HTTP/2 pusher support via
http.Pusherinterface for Go 1.8+. WrapFuncto converthttp.HandlerFuncinto anegroni.HandlerFormatterfield added toRecoverymiddleware to allow configuring howpanics are output. Default ofTextFormatter(how it was output in0.2.0) used.HTMLPanicFormatteralso added to allow easy outputing ofpanics as HTML.
Fixed
Written()correct returnsfalseif no response header has been written- Only implement
http.CloseNotifierwith thenegroni.ResponseWriterif the underlyinghttp.ResponseWriterimplements it (previously would always implement it and panic if the underlyinghttp.ResponseWriterdid not.
Changed
- Set default status to
0in the case that no handler writes status -- was previously200(in 0.2.0, before that it was0so this reestablishes that behavior) - Catch
panics thrown by callbacks provided to theRecoveryhandler - Recovery middleware will set
text/plaincontent-type if none is set ALoggerinterface to allow custom logger outputs to be used with theLoggermiddleware. Changes embeded field innegroni.LoggerfromLoggertoALogger.- Default
Loggermiddleware output changed to be more structure and verbose (also now configurable, seeAdded) - Automatically bind to port specified in
$PORTin.Run()if an address is not passed in. Fall back to binding to:8080if no address specified (configuable viaDefaultAddress). PanicHandlerFuncadded toRecoverymiddleware to enhance custom handling ofpanics by providing additional information to the handler including the stack and thehttp.Request.Recovery.ErrorHandlerFuncwas also added, but deprecated in favor of the newPanicHandlerFunc.
0.2.0 - 2016-05-10
Added
- Support for variadic handlers in
New() - Added
Negroni.Handlers()to fetch all of the handlers for a given chain - Allowed size in
Recoveryhandler was bumped to 8k Negroni.UseFuncto push another handler onto the chain
Changed
- Set the status before calling
beforeFuncsso the information is available to them - Set default status to
200in the case that no handler writes status -- was previously0 - Panic if
nilhandler is given tonegroni.Use
0.1.0 - 2013-07-22
Added
- Initial implementation.