We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f9bcde commit 9ce2917Copy full SHA for 9ce2917
go/manifest/v2beta2/serviceexpose.go
@@ -41,7 +41,8 @@ func (s *ServiceExpose) GetEndpoints() types.Endpoints {
41
}
42
43
func (s *ServiceExpose) validate(helper *validateManifestGroupsHelper) error {
44
- if s.Port == 0 || s.Port > math.MaxUint16 {
+ // make port optional port = 0 is allowed
45
+ if s.Port > math.MaxUint16 {
46
return fmt.Errorf("port value must be 0 < value <= 65535 ")
47
48
0 commit comments