RFC: DNS Label Compatible Process Types - #329
Conversation
|
Maintainers, As you review this RFC please queue up issues to be created using the following commands: Issues(none) |
7f91b08 to
4ddb64a
Compare
Signed-off-by: Josh W Lewis <josh.w.lewis@gmail.com>
Signed-off-by: Josh W Lewis <josh.w.lewis@gmail.com>
4ddb64a to
3f41cfd
Compare
Signed-off-by: Josh W Lewis <josh.w.lewis@gmail.com>
Signed-off-by: Josh W Lewis <josh.w.lewis@gmail.com>
e2aacb4 to
b8ecf24
Compare
Signed-off-by: Josh W Lewis <josh.w.lewis@gmail.com>
Signed-off-by: Josh W Lewis <josh.w.lewis@gmail.com>
Signed-off-by: Josh W Lewis <josh.w.lewis@gmail.com>
19c6879 to
a281ca6
Compare
Co-authored-by: Rune Soerensen <runesoerensen@gmail.com> Signed-off-by: Josh W Lewis <josh.w.lewis@gmail.com>
Co-authored-by: Rune Soerensen <runesoerensen@gmail.com> Signed-off-by: Josh W Lewis <josh.w.lewis@gmail.com>
Co-authored-by: Rune Soerensen <runesoerensen@gmail.com> Signed-off-by: Josh W Lewis <josh.w.lewis@gmail.com>
Co-authored-by: Rune Soerensen <runesoerensen@gmail.com> Signed-off-by: Josh W Lewis <josh.w.lewis@gmail.com>
Co-authored-by: Rune Soerensen <runesoerensen@gmail.com> Signed-off-by: Josh W Lewis <josh.w.lewis@gmail.com>
Co-authored-by: Rune Soerensen <runesoerensen@gmail.com> Signed-off-by: Josh W Lewis <josh.w.lewis@gmail.com>
Co-authored-by: Rune Soerensen <runesoerensen@gmail.com> Signed-off-by: Josh W Lewis <josh.w.lewis@gmail.com>
|
Do we still want to proceed with this? (I think it's worth doing) |
I'd be good with pushing this forward. It seems like a sensible thing to align naming restrictions against. I put it in ready for review status so I won't forget to bring it up next meeting I attend |
|
|
||
| # Migration | ||
|
|
||
| This is a breaking API change, and will require a new Buildpack API version. |
There was a problem hiding this comment.
I considered asking if there's a way would could instead define a mapping, or substitution thing, where we convert incompatible process types to compatible ones. But that could mean, in theory, two process types get mapped to the same thing. I think we just want to avoid that as much.
|
|
||
| Buildpacks specifying process types that do not comply with the stricter requirements proposed in this RFC will need to change the way process types are defined. Buildpacks defining process types dynamically should implement logic to coerce process types (by substitution, filtering and/or truncation) to meet the specification and avoid build failures. | ||
|
|
||
| In order to ease the transition, a new flag may be introduced to pack and/or lifecycle to control enforcement of this requirement. For example, a `--strict-process-types` flag could be introduced that might be set to `warn` or `error`. Calls with `pack build foo --strict-process-types=error ...` would emit error messages and reject builds with non-compliant process types while calls with `pack build foo --strict-process-types=warn ...` would emit warning messages while still allowing the build to complete. |
There was a problem hiding this comment.
we could reuse CNB_DEPRECATION_MODE instead of a new --strict-process-types flag? (RFCs 0049 lines 79–95, and 0110 lines 107–110 already define warn/error/silent
semantics)
Rendered