-
Notifications
You must be signed in to change notification settings - Fork 20
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
Conversation
5df9f02
to
828108e
Compare
828108e
to
9bb835e
Compare
cloud/scope/machine.go
Outdated
) | ||
} | ||
|
||
return b64.StdEncoding.EncodeToString(value), nil |
There was a problem hiding this comment.
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()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since youre playing with this line could you add a patch like @eljohnson92 PR earlier to cluster https://github.com/linode/cluster-api-provider-linode/pull/64/files#diff-d6148d3b8d79d76ad02a5e26b74a8bbff6541058ae664f3c10e5dd97accffd76R99-R113
There was a problem hiding this comment.
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 👍
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: