Skip to content

Refactor handleCloudInitNotStarted() #1669

@guettli

Description

@guettli

/kind feature

The current implementation of handleCloudInitNotStarted() does some checks to guess if cloud-init was successfully or not.

We could improve that by added a touch /root/preKubeadmCommand-success-HBMM_MACHINEUUID
and touch /root/postKubeadmCommand-success-HBMM_MACHINEUUID at the end of the pre/post Kubeadm commands.

If these files do not exist, then something went wrong.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions