-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(kubernetes): Fix a few other bugs from client library upgrade (#3811
) V1HTTPGetAction.getPort() now returns an IntOrString. This supports .toString() to always convert to a string, but does not support .toInt() so we need to handle parsing as an int if desired. The logic to serialize an IntOrString needs to know that it should only dump either getString() or getInt() depending if it's a string or integer, which our ObjectMapper doesn't know about. The Yaml object that comes with the kubernetes API is configured to handle this, so just use that instead to handle serializing.
- Loading branch information
1 parent
b29b07c
commit e9c6a58
Showing
2 changed files
with
14 additions
and
6 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