Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
api: Strict port number handling and --enable-rpc deprecation (#6459)
* Strict port validation and deprecate --enable-rpc This path implements the proposal in issue 6425 and contains various breaking changes to most users of Skaffold APIs regarding enabling the API. * API is no longer enabled by default for "dev" and "debug" commands. This might be a breaking change for some users who were relying on the behavior. * APIs are only enabled if --rpc-port or --rpc-http-port (or both) are set. These flags no longer have defaults 50051 and 50052. * --enable-rpc flag is now marked as "deprecated" for 1.31 release. It will be removed in 3 months or 1 release (whichever is longer) since the Skaffold API is a beta feature. * If given port is busy, skaffold now fails with an error instead of trying to find an available port and printing it to logs. This patch also fixes the test flakes for the following integration tests (each ran 100 times) by behaving more strictly around busy ports. - TestEventsRPC - TestRunPortForward Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com> * add warning if --enable-rpc but no ports are set Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com> * replace deprecation warning with chosen rpc port Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com> * show warning only if http port is also unspecified that way "-enable-rpc -rpc-http-port=X" users don't see a warning. Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
- Loading branch information
Showing
18 changed files
with
228 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.