-
Notifications
You must be signed in to change notification settings - Fork 525
[GEP-28] gardenadm bootstrap
: return Machine
addresses in provider-local
#12489
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
base: master
Are you sure you want to change the base?
Conversation
Skipping CI for Draft Pull Request. |
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.
Nice, lgtm
The Gardener project currently lacks enough active contributors to adequately respond to all PRs.
You can:
/lifecycle stale |
/remove-lifecycle stale |
The Gardener project currently lacks enough active contributors to adequately respond to all PRs.
You can:
/lifecycle stale |
/remove-lifecycle stale |
b696e59
to
f965e40
Compare
gardenadm bootstrap
: Return Addresses in provider-localgardenadm bootstrap
: return Machine
addresses in provider-local
f965e40
to
e80c7ac
Compare
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.
Thanks!
/lgtm
Do you want to address the TODOs in
gardener/pkg/gardenadm/botanist/ssh.go
Lines 62 to 75 in 3bcd2bf
// For now, we expect that the Bastion can connect to the control plane machine via its hostname and that the hostname | |
// is equal to the machine's name. | |
// More cases will be supported once https://github.com/gardener/machine-controller-manager/pull/1012 gets released. | |
// TODO(timebertt): prefer Machine.status.addresses if present once mcm has been updated in gardener | |
machineHostname := machine.Name | |
// Until machine-controller-manager-provider-local reports the correct hostname/IP in Machine.status.addresses, we | |
// prefix the machine name with "machine-" because we know that this is the hostname of local machines. | |
// TODO(timebertt): drop this shortcut once https://github.com/gardener/gardener/pull/12489 has been merged. | |
if b.Shoot.GetInfo().Spec.Provider.Type == "local" { | |
machineHostname = "machine-" + machineHostname | |
} | |
return net.JoinHostPort(machineHostname, "22") |
LGTM label has been added. Git tree hash: 0bc193984ba0715c6d472e97bedf123b0767b4c9
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
3f10e97
to
4f8f68c
Compare
This comment was marked as resolved.
This comment was marked as resolved.
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.
Thanks!
/lgtm
LGTM label has been added. Git tree hash: 3f1ce3cc7a99796eef7e47a9cebdd0afd19284d2
|
How to categorize this PR?
/area ipcei
/kind enhancement
What this PR does / why we need it:
This PR builds on #12307 and demonstrates what gardener/machine-controller-manager#1012 looks like in practice. The MCM interaction with the target cluster is disabled, and therefore a new status field is returned:
The relevant changes are in the last commit: 6b3ba18
Which issue(s) this PR fixes:
Part of #2906
Special notes for your reviewer:
In draft until the following PRs are merged:
gardenadm bootstrap
: Wait forWorker
#12307Machine.status.addresses
when running without target cluster machine-controller-manager#1012Release note: