/area API
/kind proposal
I have observed developers setting the PORT environment variable.
As documented in the runtime container contract, PORT is an env var that is automatically injected into the containers and that the code should listen on.
A developers setting it probably expects that its final value will be the set value, but instead, we are overriding it. We should avoid that confusion.
Proposal: fail the creation of the revision if the developer sets the PORT env var. Return an error message saying: "The PORT environment variable is automatically set by the system"
/area API
/kind proposal
I have observed developers setting the
PORTenvironment variable.As documented in the runtime container contract,
PORTis an env var that is automatically injected into the containers and that the code should listen on.A developers setting it probably expects that its final value will be the set value, but instead, we are overriding it. We should avoid that confusion.
Proposal: fail the creation of the revision if the developer sets the
PORTenv var. Return an error message saying: "The PORT environment variable is automatically set by the system"