Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat]: Set metadata for LinodeMachines, disable swap #74

Merged
merged 4 commits into from
Feb 1, 2024

Conversation

AshleyDumaine
Copy link
Contributor

@AshleyDumaine AshleyDumaine commented Jan 31, 2024

This modifies the LinodeMachine controller to wait for bootstrap data to be ready before creating Linode instances since the cloud-config needs to be stored in the metadata field to configure the Linode properly. Additionally sets swap to be disabled since kubeadm fails with swap enabled.

Related issues:

)
}

return b64.StdEncoding.EncodeToString(value), nil
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should the b64 encoding happen by the callee incase anyone is looking for the string? this feels like a generic function and how it's used shouldn't be determined by this func

@@ -209,6 +209,9 @@ func (r *LinodeMachineReconciler) reconcile(
}
}()

// Add the finalizer if not already there
controllerutil.AddFinalizer(machineScope.LinodeMachine, infrav1.GroupVersion.String())
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, I'll get that added 👍

@AshleyDumaine AshleyDumaine changed the title [feat]: Set metadata for LinodeMachines [feat]: Set metadata for LinodeMachines, disable swap Feb 1, 2024
@eljohnson92 eljohnson92 merged commit 1a737bd into linode:main Feb 1, 2024
5 checks passed
@AshleyDumaine AshleyDumaine deleted the bootstrap-data branch February 1, 2024 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants