Skip to content

Commit 10834e4

Browse files
committed
fix unknown fields
Signed-off-by: sivchari <shibuuuu5@gmail.com>
1 parent aa59430 commit 10834e4

File tree

10 files changed

+54
-44
lines changed

10 files changed

+54
-44
lines changed

test/e2e/data/infrastructure-docker/main/bases/md.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ spec:
2323
template:
2424
spec:
2525
joinConfiguration:
26-
nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use.
2726
---
2827
# MachineDeployment object
2928
apiVersion: cluster.x-k8s.io/v1beta2

test/e2e/data/infrastructure-docker/main/bases/mp.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,3 @@ metadata:
4444
name: "${CLUSTER_NAME}-mp-0-config"
4545
spec:
4646
joinConfiguration:
47-
nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use.

test/e2e/data/infrastructure-docker/main/cluster-template-ipv6/kcp-ipv6.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ spec:
1515
bindPort: 6443
1616
nodeRegistration:
1717
kubeletExtraArgs:
18-
node-ip: "::"
18+
name: node-ip
19+
value: "::"
1920
joinConfiguration:
2021
nodeRegistration:
2122
kubeletExtraArgs:
22-
node-ip: "::"
23+
name: node-ip
24+
value: "::"

test/e2e/data/infrastructure-docker/main/cluster-template-kcp-adoption/step1/cluster-with-cp0.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ spec:
4242
clusterConfiguration:
4343
apiServer:
4444
certSANs: [localhost, 127.0.0.1]
45-
initConfiguration:
46-
nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use.
47-
joinConfiguration:
48-
nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use.
4945
---
5046
# cp0 Machine
5147
apiVersion: cluster.x-k8s.io/v1beta2

test/e2e/data/infrastructure-docker/main/cluster-template-kcp-remediation/cluster-with-kcp.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ spec:
5757
apiServer:
5858
# host.docker.internal is required by kubetest when running on MacOS because of the way ports are proxied.
5959
certSANs: [localhost, 127.0.0.1, 0.0.0.0, host.docker.internal]
60-
initConfiguration:
61-
nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use.
62-
joinConfiguration:
63-
nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use.
6460
files:
6561
- path: /wait-signal.sh
6662
content: |

test/e2e/data/infrastructure-docker/main/cluster-template-kcp-remediation/mhc.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
# MachineHealthCheck object with
33
# - a selector that targets all the machines with label cluster.x-k8s.io/control-plane="" and the mhc-test: "fail" (the label is used to trigger remediation in a controlled way - by adding CP under MHC control intentionally -)
4-
# - nodeStartupTimeout: 30s (to force remediation on nodes still provisioning)
5-
# - unhealthyConditions triggering remediation after 10s the e2e.remediation.condition condition is set to false (to force remediation on nodes already provisioned)
4+
# - nodeStartupTimeoutSeconds: 30s (to force remediation on nodes still provisioning)
5+
# - unhealthyNodeConditions triggering remediation after 10s the e2e.remediation.condition condition is set to false (to force remediation on nodes already provisioned)
66
apiVersion: cluster.x-k8s.io/v1beta2
77
kind: MachineHealthCheck
88
metadata:
@@ -15,7 +15,7 @@ spec:
1515
cluster.x-k8s.io/control-plane: ""
1616
mhc-test: "fail"
1717
nodeStartupTimeoutSeconds: 30
18-
unhealthyConditions:
18+
unhealthyNodeConditions:
1919
- type: e2e.remediation.condition
2020
status: "False"
2121
timeoutSeconds: 10

test/e2e/data/infrastructure-docker/main/cluster-template-md-remediation/mhc.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
# MachineHealthCheck object with
33
# - a selector that targets all the machines with label e2e.remediation.label=""
4-
# - unhealthyConditions triggering remediation after 10s the condition is set
4+
# - unhealthyNodeConditions triggering remediation after 10s the condition is set
55
apiVersion: cluster.x-k8s.io/v1beta2
66
kind: MachineHealthCheck
77
metadata:
@@ -12,7 +12,7 @@ spec:
1212
selector:
1313
matchLabels:
1414
e2e.remediation.label: ""
15-
unhealthyConditions:
15+
unhealthyNodeConditions:
1616
- type: e2e.remediation.condition
1717
status: "False"
1818
timeoutSeconds: 10

test/e2e/data/infrastructure-docker/main/clusterclass-in-memory.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@ spec:
2727
nodeRegistration:
2828
criSocket: unix:///var/run/containerd/containerd.sock
2929
kubeletExtraArgs:
30-
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
30+
name: eviction-hard
31+
value: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
3132
joinConfiguration:
3233
nodeRegistration:
3334
criSocket: unix:///var/run/containerd/containerd.sock
3435
kubeletExtraArgs:
35-
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
36+
name: eviction-hard
37+
value: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
3638
---
3739
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
3840
kind: DevMachineTemplate
@@ -97,7 +99,8 @@ spec:
9799
nodeRegistration:
98100
criSocket: unix:///var/run/containerd/containerd.sock
99101
kubeletExtraArgs:
100-
eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
102+
name: eviction-hard
103+
value: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%
101104
---
102105
apiVersion: cluster.x-k8s.io/v1beta2
103106
kind: ClusterClass
@@ -152,5 +155,5 @@ spec:
152155
patches:
153156
- name: test-patch
154157
external:
155-
generateExtension: generate-patches.${EXTENSION_CONFIG_NAME:-"scale"}
158+
generatePatchesExtension: generate-patches.${EXTENSION_CONFIG_NAME:-"scale"}
156159
discoverVariablesExtension: discover-variables.${EXTENSION_CONFIG_NAME:-"scale"}

test/e2e/data/infrastructure-docker/main/clusterclass-quick-start-runtimesdk.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ spec:
5656
patches:
5757
- name: test-patch
5858
external:
59-
generateExtension: generate-patches.${EXTENSION_CONFIG_NAME:-"k8s-upgrade-with-runtimesdk"}
60-
validateExtension: validate-topology.${EXTENSION_CONFIG_NAME:-"k8s-upgrade-with-runtimesdk"}
59+
generatePatchesExtension: generate-patches.${EXTENSION_CONFIG_NAME:-"k8s-upgrade-with-runtimesdk"}
60+
validateTopologyExtension: validate-topology.${EXTENSION_CONFIG_NAME:-"k8s-upgrade-with-runtimesdk"}
6161
discoverVariablesExtension: discover-variables.${EXTENSION_CONFIG_NAME:-"k8s-upgrade-with-runtimesdk"}
6262
---
6363
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
@@ -145,4 +145,3 @@ spec:
145145
template:
146146
spec:
147147
joinConfiguration:
148-
nodeRegistration: {} # node registration parameters are automatically injected by CAPD according to the kindest/node image in use.

test/e2e/data/infrastructure-docker/main/clusterclass-quick-start.yaml

Lines changed: 36 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spec:
2020
name: quick-start-control-plane
2121
machineHealthCheck:
2222
maxUnhealthy: 100%
23-
unhealthyConditions:
23+
unhealthyNodeConditions:
2424
- type: e2e.remediation.condition
2525
status: "False"
2626
timeoutSeconds: 20
@@ -50,7 +50,7 @@ spec:
5050
name: quick-start-default-worker-machinetemplate
5151
machineHealthCheck:
5252
maxUnhealthy: 100%
53-
# We are intentionally not setting the 'unhealthyConditions' here to test that the field is optional.
53+
# We are intentionally not setting the 'unhealthyNodeConditions' here to test that the field is optional.
5454
machinePools:
5555
- class: default-worker
5656
template:
@@ -324,11 +324,15 @@ spec:
324324
controlPlane: true
325325
jsonPatches:
326326
- op: add
327-
path: "/spec/template/spec/kubeadmConfigSpec/joinConfiguration/nodeRegistration/kubeletExtraArgs/cloud-provider"
328-
value: "external"
327+
path: "/spec/template/spec/kubeadmConfigSpec/joinConfiguration/nodeRegistration/kubeletExtraArgs"
328+
value:
329+
name: "cloud-provider"
330+
value: "external"
329331
- op: add
330-
path: "/spec/template/spec/kubeadmConfigSpec/initConfiguration/nodeRegistration/kubeletExtraArgs/cloud-provider"
331-
value: "external"
332+
path: "/spec/template/spec/kubeadmConfigSpec/initConfiguration/nodeRegistration/kubeletExtraArgs"
333+
value:
334+
name: "cloud-provider"
335+
value: "external"
332336
- name: machineDeploymentExternalCloudProvider
333337
enabledIf: "{{ .externalCloudProvider }}"
334338
description: "Configures kubelet to run with an external cloud provider for machineDeployment nodes."
@@ -342,8 +346,10 @@ spec:
342346
- '*-worker'
343347
jsonPatches:
344348
- op: add
345-
path: "/spec/template/spec/joinConfiguration/nodeRegistration/kubeletExtraArgs/cloud-provider"
346-
value: "external"
349+
path: "/spec/template/spec/joinConfiguration/nodeRegistration/kubeletExtraArgs"
350+
value:
351+
name: "cloud-provider"
352+
value: "external"
347353
- selector:
348354
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
349355
kind: KubeadmConfigTemplate
@@ -353,8 +359,10 @@ spec:
353359
- '*-worker'
354360
jsonPatches:
355361
- op: add
356-
path: "/spec/template/spec/joinConfiguration/nodeRegistration/kubeletExtraArgs/cloud-provider"
357-
value: "external"
362+
path: "/spec/template/spec/joinConfiguration/nodeRegistration/kubeletExtraArgs"
363+
value:
364+
name: "cloud-provider"
365+
value: "external"
358366
- name: localEndpointIPv6
359367
enabledIf: "{{ .ipv6Primary }}"
360368
description: "Configures KCP to use IPv6 for its localAPIEndpoint."
@@ -447,13 +455,17 @@ spec:
447455
controlPlane: true
448456
jsonPatches:
449457
- op: add
450-
path: "/spec/template/spec/kubeadmConfigSpec/joinConfiguration/nodeRegistration/kubeletExtraArgs/v"
451-
valueFrom:
452-
variable: kubeletLogLevel
458+
path: "/spec/template/spec/kubeadmConfigSpec/joinConfiguration/nodeRegistration/kubeletExtraArgs"
459+
value:
460+
name: v
461+
valueFrom:
462+
value: kubeletLogLevel
453463
- op: add
454-
path: "/spec/template/spec/kubeadmConfigSpec/initConfiguration/nodeRegistration/kubeletExtraArgs/v"
455-
valueFrom:
456-
variable: kubeletLogLevel
464+
path: "/spec/template/spec/kubeadmConfigSpec/initConfiguration/nodeRegistration/kubeletExtraArgs"
465+
value:
466+
name: v
467+
valueFrom:
468+
value: kubeletLogLevel
457469
- name: workerKubeletLogLevel
458470
enabledIf: "{{ if .kubeletLogLevel }}true{{end}}"
459471
description: "Configures worker kubelets to log at the level set in the variable `kubeletLogLevel`."
@@ -559,11 +571,13 @@ spec:
559571
initConfiguration:
560572
nodeRegistration: # node registration parameters are automatically injected by CAPD according to the kindest/node image in use.
561573
kubeletExtraArgs: # having a not empty kubeletExtraArgs is required for the externalCloudProvider patch to work
562-
eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'
574+
name: eviction-hard
575+
value: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'
563576
joinConfiguration:
564577
nodeRegistration: # node registration parameters are automatically injected by CAPD according to the kindest/node image in use.
565578
kubeletExtraArgs: # having a not empty kubeletExtraArgs is required for the externalCloudProvider patch to work
566-
eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'
579+
name: eviction-hard
580+
value: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'
567581
---
568582
apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
569583
kind: DockerMachineTemplate
@@ -648,7 +662,8 @@ spec:
648662
joinConfiguration:
649663
nodeRegistration: # node registration parameters are automatically injected by CAPD according to the kindest/node image in use.
650664
kubeletExtraArgs: # having a not empty kubeletExtraArgs is required for the externalCloudProvider to work
651-
eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'
665+
name: eviction-hard
666+
value: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'
652667
---
653668
apiVersion: bootstrap.cluster.x-k8s.io/v1beta2
654669
kind: KubeadmConfigTemplate
@@ -669,4 +684,5 @@ spec:
669684
joinConfiguration:
670685
nodeRegistration: # node registration parameters are automatically injected by CAPD according to the kindest/node image in use.
671686
kubeletExtraArgs: # having a not empty kubeletExtraArgs is required for the externalCloudProvider to work
672-
eviction-hard: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'
687+
name: eviction-hard
688+
value: 'nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0%'

0 commit comments

Comments
 (0)