@@ -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
178178type 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
197197type Endpoint struct {
@@ -212,7 +212,7 @@ type Endpoint struct {
212212type 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 {
223223type EndpointExposureType string
224224
225225const (
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
230230type CSRConfig struct {
0 commit comments