Skip to content
Merged
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
10 changes: 7 additions & 3 deletions lifecycle/pkg/guest/guest.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,13 @@ func (d *Default) Apply(cluster *v2.Cluster, mounts []v2.MountImage, targetHosts
eg, ctx := errgroup.WithContext(context.Background())
for j := range targetHosts {
node := targetHosts[j]
// Standalone control-plane binaries and services are managed by
// the dedicated lifecycle. Image hooks can replace that service.
if cluster.IsStandaloneControlPlane() && isControlPlaneHost(cluster, node) {
// Standalone control-plane binaries and services are managed
// by the dedicated lifecycle, so the rootfs image hooks never
// run on those hosts. Patch images are the supported way to
// layer host-level changes and still execute everywhere; the
// patch scripts themselves decide what to do per host.
if m.IsRootFs() && cluster.IsStandaloneControlPlane() &&
isControlPlaneHost(cluster, node) {
continue
}
envs := maps.Merge(m.Env, envGetter.Getenv(node))
Expand Down
Loading