Skip to content

Commit 849e553

Browse files
committed
Variable default port based on mode
Signed-off-by: Ben Perry <[email protected]>
1 parent 49728e7 commit 849e553

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ spec:
125125
Metrics may be disabled by setting a value of "0" or "".
126126
type: string
127127
port:
128-
default: 443
129128
description: Port represents the port of a webhook-server.
130-
The default value of Port is 443.
129+
The default value of Port is 9443 in default mode, or
130+
443 in hosted mode.
131131
format: int32
132132
maximum: 65535
133133
type: integer
@@ -162,9 +162,9 @@ spec:
162162
Metrics may be disabled by setting a value of "0" or "".
163163
type: string
164164
port:
165-
default: 443
166165
description: Port represents the port of a webhook-server.
167-
The default value of Port is 443.
166+
The default value of Port is 9443 in default mode, or
167+
443 in hosted mode.
168168
format: int32
169169
maximum: 65535
170170
type: integer
@@ -204,9 +204,9 @@ spec:
204204
Metrics may be disabled by setting a value of "0" or "".
205205
type: string
206206
port:
207-
default: 443
208207
description: Port represents the port of a webhook-server.
209-
The default value of Port is 443.
208+
The default value of Port is 9443 in default mode, or
209+
443 in hosted mode.
210210
format: int32
211211
maximum: 65535
212212
type: integer
@@ -244,9 +244,9 @@ spec:
244244
Metrics may be disabled by setting a value of "0" or "".
245245
type: string
246246
port:
247-
default: 443
248247
description: Port represents the port of a webhook-server.
249-
The default value of Port is 443.
248+
The default value of Port is 9443 in default mode, or
249+
443 in hosted mode.
250250
format: int32
251251
maximum: 65535
252252
type: integer

operator/v1/types_clustermanager.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,8 @@ type WebhookConfiguration struct {
265265
// +kubebuilder:validation:Pattern=^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$
266266
Address string `json:"address"`
267267

268-
// Port represents the port of a webhook-server. The default value of Port is 443.
268+
// Port represents the port of a webhook-server. The default value of Port is 9443 in default mode, or 443 in hosted mode.
269269
// +optional
270-
// +kubebuilder:default=443
271270
// +kubebuilder:validation:Maximum=65535
272271
Port int32 `json:"port,omitempty"`
273272

operator/v1/zz_generated.swagger_doc_generated.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)