Skip to content

Commit 1137200

Browse files
committed
Fix typo and comment
Signed-off-by: Jian Qiu <[email protected]>
1 parent 269b58e commit 1137200

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

operator/v1/0000_01_operator.open-cluster-management.io_clustermanagers.crd.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,8 +553,8 @@ spec:
553553
- ResourceRequirement
554554
type: string
555555
type: object
556-
serverConfigration:
557-
description: serverConfigration contains the configuration for http/grpc
556+
serverConfiguration:
557+
description: serverConfiguration contains the configuration for http/grpc
558558
server.
559559
properties:
560560
endpointsExposure:

operator/v1/types_clustermanager.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ type ClusterManagerSpec struct {
7373
// +optional
7474
AddOnManagerConfiguration *AddOnManagerConfiguration `json:"addOnManagerConfiguration,omitempty"`
7575

76-
// serverConfigration contains the configuration for http/grpc server.
76+
// serverConfiguration contains the configuration for http/grpc server.
7777
// +optional
78-
ServerConfigration *ServerConfiguration `json:"serverConfigration,omitempty"`
78+
ServerConfiguration *ServerConfiguration `json:"serverConfiguration,omitempty"`
7979

8080
// ResourceRequirement specify QoS classes of deployments managed by clustermanager.
8181
// It applies to all the containers in the deployments.
@@ -172,7 +172,7 @@ type ServerConfiguration struct {
172172

173173
// endpointsExposure represents the configuration for endpoints exposure of the server.
174174
// +optional
175-
EndpointsExposure []EndpointExposure `json:"endpointsExposure"`
175+
EndpointsExposure []EndpointExposure `json:"endpointsExposure,omitempty"`
176176
}
177177

178178
type EndpointExposure struct {
@@ -188,10 +188,10 @@ type EndpointExposure struct {
188188
Protocol string `json:"protocol"`
189189

190190
// grpc represents the configuration for grpc endpoint.
191-
GRPC *Endpoint `json:"grpc"`
191+
GRPC *Endpoint `json:"grpc,omitempty"`
192192

193193
// https represents the configuration for https endpoint.
194-
HTTPS *Endpoint `json:"https"`
194+
HTTPS *Endpoint `json:"https,omitempty"`
195195
}
196196

197197
type Endpoint struct {
@@ -212,7 +212,7 @@ type Endpoint struct {
212212
type HostnameConfig struct {
213213
// host is the host name of the endpoint.
214214
// +required
215-
Host string `json:"host,omitempty"`
215+
Host string `json:"host"`
216216

217217
// caBundle of the endpoint.
218218
// +optional
@@ -223,8 +223,8 @@ type HostnameConfig struct {
223223
type EndpointExposureType string
224224

225225
const (
226-
// CEndpointTypeHostname is the endpoint exposure type for hostname.
227-
CEndpointTypeHostname EndpointExposureType = "hostname"
226+
// EndpointTypeHostname is the endpoint exposure type for hostname.
227+
EndpointTypeHostname EndpointExposureType = "hostname"
228228
)
229229

230230
type CSRConfig struct {

operator/v1/zz_generated.deepcopy.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)