Description
Describe the bug
The "targetPort" type is defined as "object" while the possibility of values can be both number and string.
With this said, you can't set a type for a variable and fill targetPort with a number the way it's implemented.
"Type 'number' is not assignable to type 'object'.ts(2322)"
** Client Version **
0.14.3
** Server Version **
1.18.0
To Reproduce
Steps to reproduce the behavior:
Define a variable of type V1Service and try to make the specs for ports.
Expected behavior
The type definition could be defined as number | string since both are supported.
** Example Code**
ports: [ { name: 'http', port: 80, targetPort: 3000, protocol: 'TCP', }, ],
Environment (please complete the following information):
- OS: OSX
- NodeJS Version 14