Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit 1a3f009

Browse files
committed
⚠️ ClusterConfigration.Networking.* fields are now optional
Signed-off-by: Vince Prignano <[email protected]>
1 parent 5b53bd0 commit 1a3f009

File tree

4 files changed

+7
-11
lines changed

4 files changed

+7
-11
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ bin
1111
*.test
1212

1313
# Output of the go coverage tool, specifically when used with LiteIDE
14+
out/
1415
*.out
1516

1617
# Kubernetes Generated files - skip generated files, except for vendored files

config/crd/bases/bootstrap.cluster.x-k8s.io_kubeadmconfigs.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,6 @@ spec:
297297
description: ServiceSubnet is the subnet used by k8s services.
298298
Defaults to "10.96.0.0/12".
299299
type: string
300-
required:
301-
- dnsDomain
302-
- podSubnet
303-
- serviceSubnet
304300
type: object
305301
scheduler:
306302
description: Scheduler contains extra settings for the scheduler

config/crd/bases/bootstrap.cluster.x-k8s.io_kubeadmconfigtemplates.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,10 +316,6 @@ spec:
316316
description: ServiceSubnet is the subnet used by k8s
317317
services. Defaults to "10.96.0.0/12".
318318
type: string
319-
required:
320-
- dnsDomain
321-
- podSubnet
322-
- serviceSubnet
323319
type: object
324320
scheduler:
325321
description: Scheduler contains extra settings for the scheduler

kubeadm/v1beta1/types.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,14 @@ type NodeRegistrationOptions struct {
227227
// Networking contains elements describing cluster's networking configuration
228228
type Networking struct {
229229
// ServiceSubnet is the subnet used by k8s services. Defaults to "10.96.0.0/12".
230-
ServiceSubnet string `json:"serviceSubnet"`
230+
// +optional
231+
ServiceSubnet string `json:"serviceSubnet,omitempty"`
231232
// PodSubnet is the subnet used by pods.
232-
PodSubnet string `json:"podSubnet"`
233+
// +optional
234+
PodSubnet string `json:"podSubnet,omitempty"`
233235
// DNSDomain is the dns domain used by k8s services. Defaults to "cluster.local".
234-
DNSDomain string `json:"dnsDomain"`
236+
// +optional
237+
DNSDomain string `json:"dnsDomain,omitempty"`
235238
}
236239

237240
// BootstrapToken describes one bootstrap token, stored as a Secret in the cluster

0 commit comments

Comments
 (0)