Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/providers/tinkerbell/config/template-cp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,7 @@ spec:
kind: TinkerbellMachineTemplate
name: {{.controlPlaneTemplateName}}
namespace: {{.eksaSystemNamespace}}
nodeDeletionTimeout: 30s
replicas: {{.controlPlaneReplicas}}
{{- if .upgradeRolloutStrategy }}
rolloutStrategy:
Expand Down
1 change: 1 addition & 0 deletions pkg/providers/tinkerbell/config/template-md.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ spec:
kind: KubeadmConfigTemplate
name: {{.workloadkubeadmconfigTemplateName}}
clusterName: {{.clusterName}}
nodeDeletionTimeout: 30s
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: TinkerbellMachineTemplate
Expand Down
2 changes: 2 additions & 0 deletions pkg/providers/tinkerbell/controlplane_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,7 @@ spec:
kind: TinkerbellMachineTemplate
name: test-control-plane-1
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
version: v1.21.2-eks-1-21-4`)
if err := yaml.UnmarshalStrict(b, &kcp); err != nil {
Expand Down Expand Up @@ -920,6 +921,7 @@ spec:
name: test-control-plane-1
namespace: eksa-system
metadata: {}
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
2 changes: 2 additions & 0 deletions pkg/providers/tinkerbell/reconciler/reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1321,6 +1321,7 @@ func tinkerbellCP(clusterName string, opts ...cpOpt) *tinkerbell.ControlPlane {
},
Version: "v1.19.8",
MachineTemplate: controlplanev1.KubeadmControlPlaneMachineTemplate{
NodeDeletionTimeout: &metav1.Duration{Duration: 30 * time.Second},
InfrastructureRef: corev1.ObjectReference{
Kind: "TinkerbellMachineTemplate",
Name: "workload-cluster-control-plane-1",
Expand Down Expand Up @@ -1749,6 +1750,7 @@ func tinkWorker(clusterName string, opts ...workerOpt) *tinkerbell.Workers {
APIVersion: "bootstrap.cluster.x-k8s.io/v1beta1",
},
},
NodeDeletionTimeout: &metav1.Duration{Duration: 30 * time.Second},
InfrastructureRef: corev1.ObjectReference{
Kind: "TinkerbellMachineTemplate",
Name: clusterName + "-md-0-1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ spec:
kind: TinkerbellMachineTemplate
name: <no value>
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ spec:
kind: TinkerbellMachineTemplate
name: <no value>
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
1 change: 1 addition & 0 deletions pkg/providers/tinkerbell/testdata/expected_kcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ spec:
kind: TinkerbellMachineTemplate
name: <no value>
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ spec:
kind: TinkerbellMachineTemplate
name: <no value>
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ spec:
kind: TinkerbellMachineTemplate
name: <no value>
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
1 change: 1 addition & 0 deletions pkg/providers/tinkerbell/testdata/expected_kct.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
kind: KubeadmConfigTemplate
name: test-test-1
clusterName: test
nodeDeletionTimeout: 30s
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: TinkerbellMachineTemplate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
kind: KubeadmConfigTemplate
name: test-md-0-1
clusterName: test
nodeDeletionTimeout: 30s
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: TinkerbellMachineTemplate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
kind: KubeadmConfigTemplate
name: test-md-0-1
clusterName: test
nodeDeletionTimeout: 30s
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: TinkerbellMachineTemplate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ spec:
kind: TinkerbellMachineTemplate
name: test-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
kind: KubeadmConfigTemplate
name: test-md-0-template-1234567890000
clusterName: test
nodeDeletionTimeout: 30s
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: TinkerbellMachineTemplate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ spec:
kind: TinkerbellMachineTemplate
name: test-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
kind: KubeadmConfigTemplate
name: test-md-0-template-1234567890000
clusterName: test
nodeDeletionTimeout: 30s
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: TinkerbellMachineTemplate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ spec:
kind: TinkerbellMachineTemplate
name: test-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
kind: KubeadmConfigTemplate
name: test-md-0-template-1234567890000
clusterName: test
nodeDeletionTimeout: 30s
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: TinkerbellMachineTemplate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ spec:
kind: TinkerbellMachineTemplate
name: test-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
kind: KubeadmConfigTemplate
name: test-md-0-template-1234567890000
clusterName: test
nodeDeletionTimeout: 30s
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: TinkerbellMachineTemplate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ spec:
kind: TinkerbellMachineTemplate
name: test-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ spec:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: TinkerbellMachineTemplate
name: test-md-0-1234567890000
nodeDeletionTimeout: 30s
version: v1.21.2-eks-1-21-4
---
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ spec:
kind: KubeadmConfigTemplate
name: test-md-0-template-1234567890000
clusterName: test
nodeDeletionTimeout: 30s
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: TinkerbellMachineTemplate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ spec:
kind: TinkerbellMachineTemplate
name: test-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ spec:
kind: TinkerbellMachineTemplate
name: test-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ spec:
kind: TinkerbellMachineTemplate
name: test-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
kind: KubeadmConfigTemplate
name: test-md-0-template-1234567890000
clusterName: test
nodeDeletionTimeout: 30s
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: TinkerbellMachineTemplate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
kind: KubeadmConfigTemplate
name: test-md-0-template-1234567890000
clusterName: test
nodeDeletionTimeout: 30s
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: TinkerbellMachineTemplate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
kind: KubeadmConfigTemplate
name: test-md-0-template-1234567890000
clusterName: test
nodeDeletionTimeout: 30s
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: TinkerbellMachineTemplate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ spec:
kind: TinkerbellMachineTemplate
name: test-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ spec:
kind: TinkerbellMachineTemplate
name: test-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ spec:
kind: TinkerbellMachineTemplate
name: test-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ spec:
kind: TinkerbellMachineTemplate
name: test-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,7 @@ spec:
kind: TinkerbellMachineTemplate
name: test-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ spec:
kind: TinkerbellMachineTemplate
name: test-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ spec:
kind: TinkerbellMachineTemplate
name: test-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ spec:
kind: TinkerbellMachineTemplate
name: test-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ spec:
kind: TinkerbellMachineTemplate
name: test-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ spec:
kind: TinkerbellMachineTemplate
name: test-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ spec:
kind: TinkerbellMachineTemplate
name: single-node-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ spec:
kind: TinkerbellMachineTemplate
name: single-node-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
type: InPlace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ spec:
kind: TinkerbellMachineTemplate
name: single-node-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ spec:
kind: TinkerbellMachineTemplate
name: test-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ spec:
kind: TinkerbellMachineTemplate
name: single-node-control-plane-template-1234567890000
namespace: eksa-system
nodeDeletionTimeout: 30s
replicas: 1
rolloutStrategy:
rollingUpdate:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
kind: KubeadmConfigTemplate
name: test-md-0-template-1234567890000
clusterName: test
nodeDeletionTimeout: 30s
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: TinkerbellMachineTemplate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
kind: KubeadmConfigTemplate
name: test-md-0-template-1234567890000
clusterName: test
nodeDeletionTimeout: 30s
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: TinkerbellMachineTemplate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
kind: KubeadmConfigTemplate
name: test-md-0-template-1234567890000
clusterName: test
nodeDeletionTimeout: 30s
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: TinkerbellMachineTemplate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spec:
kind: KubeadmConfigTemplate
name: test-md-0-template-1234567890000
clusterName: test
nodeDeletionTimeout: 30s
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: TinkerbellMachineTemplate
Expand Down
Loading
Loading