Skip to content

Support shoots with disabled sshAccess - #419

Merged
gardener-prow[bot] merged 2 commits into
gardener:masterfrom
MichaelEischer:fix-disabled-ssh-access
Oct 6, 2026
Merged

gardener-prow[bot] merged 2 commits into
gardener:masterfrom
MichaelEischer:fix-disabled-ssh-access

Conversation

@MichaelEischer

@MichaelEischer MichaelEischer commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

How to categorize this PR?

/area compliance
/kind bug
/platform openstack

What this PR does / why we need it:

Gardener supports disabling sshAccess for nodes. This results in Gardener deleting the ssh keypair. As a consequence the gardener-extension-provider-... and machine-controller-controller-provider-... need to work even if no keypair is present.

However, currently not setting the keypair for the mcm results in a KeyName is required error. Drop the validation as OpenStack does not actually require a keypair to be specified when creating a machine. The keypairs.CreateOptsExt{} struct from gophercloud already omits the keypair when an empty name is specified, such that no further changes beyond dropping the validation are necessary for this to work.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

gardener/gardener-extension-provider-openstack#1453 is the corresponding change for gardener-extension-provider-openstack to allow the overall feature to work.

Release note:

machine-controller-manager-provider-openstack supports creating machines without ssh key

@MichaelEischer
MichaelEischer requested review from a team as code owners October 2, 2026 11:40
@gardener-prow gardener-prow Bot added area/compliance Compliance related kind/bug Bug labels Oct 2, 2026
@gardener-prow

gardener-prow Bot commented Oct 2, 2026

Copy link
Copy Markdown

Welcome @MichaelEischer!

It looks like this is your first PR to gardener/machine-controller-manager-provider-openstack 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if gardener/machine-controller-manager-provider-openstack has its own contribution guidelines.

Thank you, and welcome to Gardener. 😃

@gardener-prow gardener-prow Bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Oct 2, 2026
@federated-github-access

Copy link
Copy Markdown
Contributor

The PR needs to be labeled with ok-to-test by a maintainer to trigger the automated validation of the change

Signed-off-by: Michael Eischer <michael.eischer@inovex.de>
Signed-off-by: Michael Eischer <michael.eischer@inovex.de>
@MichaelEischer
MichaelEischer force-pushed the fix-disabled-ssh-access branch from 6936de9 to dc8df6d Compare October 2, 2026 11:48
@federated-github-access

Copy link
Copy Markdown
Contributor

The PR needs to be labeled with ok-to-test by a maintainer to trigger the automated validation of the change

@federated-github-access

Copy link
Copy Markdown
Contributor

The PR needs to be labeled with ok-to-test by a maintainer to trigger the automated validation of the change

1 similar comment
@federated-github-access

Copy link
Copy Markdown
Contributor

The PR needs to be labeled with ok-to-test by a maintainer to trigger the automated validation of the change

@MichaelEischer

Copy link
Copy Markdown
Contributor Author

/cc @kon-angelo

Could you take a look at the PR?

@gardener-prow
gardener-prow Bot requested a review from kon-angelo October 6, 2026 12:36
@hebelsan

hebelsan commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

/lgtm

@gardener-prow gardener-prow Bot added the lgtm Indicates that a PR is ready to be merged. label Oct 6, 2026
@gardener-prow

gardener-prow Bot commented Oct 6, 2026

Copy link
Copy Markdown

LGTM label has been added.

DetailsGit tree hash: 3d4d856ae3df59420bd494a39aea55423103628e

@gardener-prow

gardener-prow Bot commented Oct 6, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: AndreasBurger

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

@gardener-prow gardener-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 6, 2026
@gardener-prow
gardener-prow Bot merged commit 73cfcf7 into gardener:master Oct 6, 2026
40 checks passed
@MichaelEischer
MichaelEischer deleted the fix-disabled-ssh-access branch October 6, 2026 15:02
@MichaelEischer

Copy link
Copy Markdown
Contributor Author

Thanks a lot. Do you have an idea when there will be a new release?

Would it be possible to also get #416 or #417 merged?

@AndreasBurger

Copy link
Copy Markdown
Member

I'm working on getting PRs merged and a new release. I can't commit to any solid ETA, but I'm trying to get a MCM-OS and provider-OS release out as soon as possible.

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/compliance Compliance related kind/bug Bug lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants