Skip to content

Commit 7c4456c

Browse files
committed
ci: bump image-builder to include MachinePool cloud-init fix
The v1.33/v1.34 CAPA AMIs were built with image-builder v0.1.48, which includes a custom cloud-init datasource (DataSourceEc2Kubernetes) that unconditionally reads from /etc/secret-userdata.txt. This file is only created by the SecretsManager boothook for individual Machine nodes (control plane, MachineDeployment), but not for MachinePool/ASG nodes where bootstrap data is passed directly as EC2 user-data. The missing file causes a FileNotFoundError, crashing cloud-init and preventing MachinePool worker nodes from joining the cluster. Pin the image-builder version to commit 990737c (post-v0.1.48) which adds a graceful fallback: when /etc/secret-userdata.txt is absent, the datasource uses the original EC2 metadata user-data instead. The affected AMIs (ubuntu v1.33.4 and v1.34.3) need to be rebuilt with this version for the fix to take effect. Ref: kubernetes-sigs/image-builder@990737c
1 parent bedb7d3 commit 7c4456c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build-ami-varsfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
image_builder_version:
77
description: "Image builder version"
88
required: true
9-
default: 'v0.1.48'
9+
default: '990737c79abb37fd56faca64f46e5a385dd1a982' # post-v0.1.48, includes fix https://github.com/kubernetes-sigs/image-builder/pull/1919
1010
target:
1111
description: "target os"
1212
required: true

.github/workflows/build-ami.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
image_builder_version:
77
description: "Image builder version"
88
required: true
9-
default: 'v0.1.48'
9+
default: '990737c79abb37fd56faca64f46e5a385dd1a982' # post-v0.1.48, includes fix https://github.com/kubernetes-sigs/image-builder/pull/1919
1010
regions:
1111
description: 'Publication regions'
1212
required: true

0 commit comments

Comments
 (0)