Skip to content

Commit

Permalink
Merge pull request #3781 from chaunceyjiang/mcs_port
Browse files Browse the repository at this point in the history
feat: Change the port of MCS to required.
  • Loading branch information
karmada-bot authored Jul 13, 2023
2 parents a072609 + e4adcbe commit 5326e1b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ spec:
description: Port specifies the exposed service port.
format: int32
type: integer
required:
- port
type: object
type: array
range:
Expand Down
6 changes: 3 additions & 3 deletions docs/proposals/networking/multiclusterservice.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ type ExposurePort struct {
Name string `json:"name,omitempty"`

// Port specifies the exposed service port.
// +optional
Port int32 `json:"port,omitempty"`
// +required
Port int32 `json:"port"`
}

// ExposureRange describes a list of clusters where the service is exposed.
Expand Down Expand Up @@ -174,7 +174,7 @@ spec:
ports:
- port: 80
types:
- LoadBalance
- LoadBalancer
```
![image](statics/service-exposure.png)
Expand Down
4 changes: 2 additions & 2 deletions pkg/apis/networking/v1alpha1/service_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ type ExposurePort struct {
Name string `json:"name,omitempty"`

// Port specifies the exposed service port.
// +optional
Port int32 `json:"port,omitempty"`
// +required
Port int32 `json:"port"`
}

// ExposureRange describes a list of clusters where the service is exposed.
Expand Down
2 changes: 2 additions & 0 deletions pkg/generated/openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5326e1b

Please sign in to comment.