@@ -424,20 +424,20 @@ spec:
424
424
matchResources :
425
425
controlPlane : true
426
426
jsonPatches :
427
- - op : replace
428
- path : " /spec/template/spec/kubeadmConfigSpec/clusterConfiguration/apiServer/extraArgs/0 "
427
+ - op : add
428
+ path : " /spec/template/spec/kubeadmConfigSpec/clusterConfiguration/apiServer/extraArgs/- "
429
429
valueFrom :
430
430
template : |
431
431
name: v
432
432
value: "{{ .kubeControlPlaneLogLevel }}"
433
- - op : replace
434
- path : " /spec/template/spec/kubeadmConfigSpec/clusterConfiguration/controllerManager/extraArgs/0 "
433
+ - op : add
434
+ path : " /spec/template/spec/kubeadmConfigSpec/clusterConfiguration/controllerManager/extraArgs/- "
435
435
valueFrom :
436
436
template : |
437
437
name: v
438
438
value: "{{ .kubeControlPlaneLogLevel }}"
439
- - op : replace
440
- path : " /spec/template/spec/kubeadmConfigSpec/clusterConfiguration/scheduler/extraArgs/0 "
439
+ - op : add
440
+ path : " /spec/template/spec/kubeadmConfigSpec/clusterConfiguration/scheduler/extraArgs/- "
441
441
valueFrom :
442
442
template : |
443
443
name: v
@@ -452,14 +452,14 @@ spec:
452
452
matchResources :
453
453
controlPlane : true
454
454
jsonPatches :
455
- - op : replace
456
- path : " /spec/template/spec/kubeadmConfigSpec/joinConfiguration/nodeRegistration/kubeletExtraArgs/0 "
455
+ - op : add
456
+ path : " /spec/template/spec/kubeadmConfigSpec/joinConfiguration/nodeRegistration/kubeletExtraArgs/- "
457
457
valueFrom :
458
458
template : |
459
459
name: v
460
460
value: "{{ .kubeletLogLevel }}"
461
- - op : replace
462
- path : " /spec/template/spec/kubeadmConfigSpec/initConfiguration/nodeRegistration/kubeletExtraArgs/0 "
461
+ - op : add
462
+ path : " /spec/template/spec/kubeadmConfigSpec/initConfiguration/nodeRegistration/kubeletExtraArgs/- "
463
463
valueFrom :
464
464
template : |
465
465
name: v
@@ -476,8 +476,8 @@ spec:
476
476
names :
477
477
- ' *-worker'
478
478
jsonPatches :
479
- - op : replace
480
- path : " /spec/template/spec/joinConfiguration/nodeRegistration/kubeletExtraArgs/0 "
479
+ - op : add
480
+ path : " /spec/template/spec/joinConfiguration/nodeRegistration/kubeletExtraArgs/- "
481
481
valueFrom :
482
482
template : |
483
483
name: v
@@ -490,8 +490,8 @@ spec:
490
490
names :
491
491
- ' *-worker'
492
492
jsonPatches :
493
- - op : replace
494
- path : " /spec/template/spec/joinConfiguration/nodeRegistration/kubeletExtraArgs/0 "
493
+ - op : add
494
+ path : " /spec/template/spec/joinConfiguration/nodeRegistration/kubeletExtraArgs/- "
495
495
valueFrom :
496
496
template : |
497
497
name: v
@@ -558,19 +558,6 @@ spec:
558
558
nodeDrainTimeoutSeconds : 1
559
559
kubeadmConfigSpec :
560
560
clusterConfiguration :
561
- # extraArgs must be non-empty for control plane components to enable patches from ClusterClass to work.
562
- controllerManager :
563
- extraArgs :
564
- - name : v
565
- value : " 0"
566
- scheduler :
567
- extraArgs :
568
- - name : v
569
- value : " 0"
570
- apiServer :
571
- extraArgs :
572
- - name : v
573
- value : " 0"
574
561
# host.docker.internal is required by kubetest when running on MacOS because of the way ports are proxied.
575
562
certSANs : [localhost, host.docker.internal, "::", "::1", "127.0.0.1", "0.0.0.0"]
576
563
initConfiguration :
0 commit comments