Sitelet https://github.com/kubernetes/kops/pull/18694
Skip to content

refactor(linode): build SSH keys with instances - #18694

Merged
kubernetes-prow[bot] merged 1 commit into
kubernetes:masterfrom
moshevayner:linode-sshkey-to-instance-model-builder
Aug 15, 2026
Merged

kubernetes-prow[bot] merged 1 commit into
kubernetes:masterfrom
moshevayner:linode-sshkey-to-instance-model-builder

Conversation

@moshevayner

Copy link
Copy Markdown
Member

Signed-off-by: Moshe Vayner moshe@vayner.me

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):

Special notes for your reviewer:
This PR is addressing the suggested follow up item from #18622
It mainly moves the SSH Model Builder logic into Instance Model Builder.
/cc @hakman

@kubernetes-prow
kubernetes-prow Bot requested a review from hakman August 15, 2026 04:20
@kubernetes-prow kubernetes-prow Bot added area/provider/akamai area/provider/linode cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 15, 2026
Comment thread pkg/model/linodemodel/instances.go Outdated
return nil
}

func (b *InstanceModelBuilder) buildSSHKeyTasks(c *fi.CloudupModelBuilderContext) ([]*linodetasks.SSHKey, error) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This returns a slice that is always nil or length 1. Returning *linodetasks.SSHKey would be slightly simpler and more inline with other providers.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done!

Signed-off-by: Moshe Vayner <moshe@vayner.me>
@moshevayner
moshevayner force-pushed the linode-sshkey-to-instance-model-builder branch from 4ab6fd3 to 8436087 Compare August 15, 2026 06:40
@kubernetes-prow kubernetes-prow Bot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 15, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hakman

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubernetes-prow kubernetes-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 15, 2026
@kubernetes-prow
kubernetes-prow Bot merged commit 1ad5690 into kubernetes:master Aug 15, 2026
26 checks passed
@moshevayner
moshevayner deleted the linode-sshkey-to-instance-model-builder branch August 15, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. area/provider/akamai area/provider/linode cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants