-
Notifications
You must be signed in to change notification settings - Fork 93
🌱 Provision baremetal via --baremetal-image-url-command #1679
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
Merged
Merged
Changes from all commits
Commits
Show all changes
348 commits
Select commit
Hold shift + click to select a range
fb8ed9c
ImageName and ImageURL are both optional.
guettli fe2f070
fix typo.
guettli a2e20f1
make linter happy.
guettli 7da2aa2
make imageName really optional. Up to now min-size check failed.
guettli 5b256c0
wip.
guettli 0c7f639
wip.
guettli fede054
make linter happy.
guettli 3c81fdc
add unit tests for getSSHKeys method
Dhairya-Arora01 475ae98
fixup! add unit tests for getSSHKeys method
Dhairya-Arora01 0785fbf
fixup! fixup! add unit tests for getSSHKeys method
Dhairya-Arora01 fec5ed3
do not overwrite BootState, otherwise imageUrl does not work.
guettli 8131ae6
Still WIP, but "i am happy was reached"
guettli 24789ed
fixup! fixup! fixup! add unit tests for getSSHKeys method
Dhairya-Arora01 8ff88da
fixup! fixup! fixup! fixup! add unit tests for getSSHKeys method
Dhairya-Arora01 baf60cc
refactor to actions done.
guettli 060d7a1
fixup! fixup! fixup! fixup! fixup! add unit tests for getSSHKeys method
Dhairya-Arora01 b1a91d5
faster deploy.
guettli a165d45
adjust timing.
guettli 3b92f08
fixup! fixup! fixup! fixup! fixup! fixup! add unit tests for getSSHKe…
Dhairya-Arora01 81c121a
differentiate between preRescueOS and rescue system via hostname.
guettli 8d531b8
works, except that machine does start. Could be an cloud-init issue.
guettli a4b73b6
provide machine name to script.
guettli c084d5e
typo.
guettli 7d2b5bb
add comments.
guettli 77b008e
docs.
guettli de37d71
fixup! fixup! fixup! fixup! fixup! fixup! fixup! add unit tests for g…
Dhairya-Arora01 f34029f
fix typo.
guettli d23d320
Merge branch 'main' into update-controller-runtime
guettli 465052f
removed conditions.MarkFalse(m.Machine, clusterv1.BootstrapReadyCondi…
guettli ee29b07
do not update caph, if oidc@ is in the kubectl context.
guettli fb7cf38
update check-conditions.
guettli 0d43d71
run `make generate`
guettli b1eead4
update from tg/create-hcloud-machines-via-oci-node-image
guettli 2791f0e
make install-ccm-in-wl-cluster work.
guettli e84e1e0
patch cilium via helm values.
guettli fcc8197
less lines in `make watch` output.
guettli 601a8ac
make linter happy.
guettli 566e94d
fix yaml linter warnings.
guettli c9d7a3e
SkipNameValidation
guettli c8451ec
show timestamp in start/end logging status.
guettli ed3e6be
DumpAllResources needs KubeConfigPath.
guettli 6abc66e
log wl-cluster conditions.
guettli 6f2b247
remove useless else.
guettli 5471676
provide ClusterctlConfigPath
guettli 9c06ecd
fix: input.ClusterctlConfigPath is required for WaitForClusterDeleted
guettli 230dbd7
show IPv4 of hbmh, better visual start of logging, log less lines.
guettli 28b4810
fix typo, add comment to most usefull makefile target.
guettli 0e20076
show error message, if getting cloud-init output failed. Remove handl…
guettli e2150eb
If GetCloudInitOutput() hits "no such file or directoy", then show th…
guettli d11f21e
do not overwrite real error message with "status: error", when callin…
guettli 21bb603
avoid `&&` in bash scripts. Use strict mode.
guettli da14efc
avoid `&&` and use bash strict mode II
guettli 201e92e
more avoid &&
guettli 83a0be2
more avoid '&&'
guettli f97a954
(file was not saved)
guettli fa6717e
fix: error during envsubst: Missing env var LINENO.
guettli 6147777
skip, if `apt update` fails.
guettli 4c27291
update ccm.
guettli 6e4e132
hetzner issue with ubuntu mirror seems to be fixed.
guettli fcc3bb8
Merge remote-tracking branch 'origin/main' into tg/create-hcloud-mach…
guettli e85c4cf
revert changes to Makefile install-cilium-in-wl-cluster.sh (not needed)
guettli db6d095
revert custom capierrors package. We need to care for that, when we u…
guettli 0e0ba08
moved changes in hack dir to new PR:
guettli 8e0a711
:seedling: Deprecate (ssh) PortAfterCloudInit.
guettli 90fbfb8
do not change vscode color.
guettli 6a35625
fix tests.
guettli fb03843
differentiate between two errors.
guettli 0b97bf3
fix linter warning.
guettli ec2a9d9
revert vscode setting change.
guettli e1f8429
Merge remote-tracking branch 'origin/tg/deprecate-PortAfterCloudInit'…
guettli 7fd37fd
make linter happy.
guettli 0696478
Merge branch 'main' into tg/refactor-hcloud-provisioning
guettli 0e39c8f
fix broken test in hcloudmachine_validation_test.go
guettli 7b08ec8
more explicit comment.
guettli a70543d
comment for SetError().
guettli 6952f3e
from Branch tg/create-hcloud-machines-via-oci-node-image
guettli c389167
Merge branch 'tg/refactor-hcloud-provisioning' into tg/create-hcloud-…
guettli 21b859d
fix errors from previous merge.
guettli 61803c1
remove comment.
guettli 6c0c796
pick test changes and shorter comment from Dhairya last commit (de37d…
guettli 0a5334c
Merge remote-tracking branch 'origin/main' into tg/refactor-hcloud-pr…
guettli 5e79c2f
Merge branch 'main' into update-controller-runtime
guettli ab7315c
go mod tidy.
guettli f398114
removed BootStateMessage.
guettli 0c852d8
inline requeue constants.
guettli 62049f7
use if/else
guettli edb005b
make linter happy.
guettli 194c5ba
Merge branch 'main' into tg/refactor-hcloud-provisioning
guettli ac42995
Merge branch 'main' into update-controller-runtime
guettli 2c21024
Merge branch 'tg/refactor-hcloud-provisioning' into tg/create-hcloud-…
guettli f610486
Merge branch 'main' into update-controller-runtime
guettli f50f854
Merge branch 'main' into tg/refactor-hcloud-provisioning
guettli a9b1aad
Merge branch 'tg/refactor-hcloud-provisioning' into tg/create-hcloud-…
guettli 6485e75
add comment that a not found is fine.
guettli ac7e4fd
removed duplicate line, use Logger from Scope.
guettli 24babdf
use klog.KObj (which duplicates the namespace in the output, but it i…
guettli f52e763
Merge branch 'tg/refactor-hcloud-provisioning' into tg/create-hcloud-…
guettli cc916fd
remove constants, use durations inline.
guettli 5aa2564
fix linter typo.
guettli ec61302
added comment: // We found a server, now update the Status. We do th…
guettli c9932ef
call updateHCloudMachineStatusFromServer() again and again in each ha…
guettli d167a1d
call updateHCloudMachineStatusFromServer() in handleBootState functions.
guettli 8d7a944
use var `hm`.
guettli eb76eb6
Merge branch 'tg/refactor-hcloud-provisioning' into tg/create-hcloud-…
guettli 86a6c27
download newer hcloud cli tool.
guettli a2123e0
Merge branch 'main' into update-controller-runtime
guettli 2f9a20a
Merge branch 'main' into tg/refactor-hcloud-provisioning
guettli f2d9ecc
Merge branch 'tg/refactor-hcloud-provisioning' into tg/create-hcloud-…
guettli 81c20eb
IMAGE_INSTALL_DONE --> IMAGE_URL_DONE
guettli a4e24cf
Merge branch 'main' into update-controller-runtime
guettli 0bb1dfb
fix linter error about capierrors being deprecated.
guettli 69dc21f
Merge branch 'main' into tg/create-hcloud-machines-via-oci-node-image
guettli 96d3326
refactored states, so that we can timeout the image-url-command.
guettli aecdc31
fixed typo.
guettli 875e5c5
set warning, not info condition, when SetError gets used. Timeout of …
guettli d99e989
create conditons and events.
guettli a7da3fd
update docs (steps) of ImageURLCommand.
guettli 2180806
docs for --hcloud-image-url-command updated.
guettli 36374cf
fix typo.
guettli 80a034e
added missing error handling.
guettli 8843b38
clean up docstrings.
guettli bc58706
make linter happy.
guettli ec12eac
ensure controller-gen is in the correct version.
guettli 1b1d7d1
better comment for SkipNameValidation.
guettli 65afc91
use hbmh and update generated files.
guettli 5813112
added comments to make async api of hcloud more clear.
guettli f064636
use Logger from scope.
guettli 2e0a2ce
set condition, when RobotRescueSecretRef.Name is empty.
guettli 9f5ebbd
set condition if no IP address exists.
guettli 42f5b45
do not reboot in EnableRescueSystem().
guettli 7546360
re-generated manifests with controller-gen.
guettli 2e6828c
Merge branch 'main' into update-controller-runtime
guettli 11c0eec
fix one char typo in last merge commit.
guettli 78236eb
Merge branch 'update-controller-runtime' into tg/create-hcloud-machin…
guettli 9ace7f7
typo in boot state.
guettli 5c0a067
Merge remote-tracking branch 'origin/main' into tg/create-hcloud-mach…
guettli e78e2b2
do pre-flight check, to avoid using hcloud-api, when config for provi…
guettli 1eaa292
avoid term "hcloud" in sshClient (image-url-command will be used for …
guettli 1645895
make imageURLCommand private.
guettli ecd039f
make linter happy.
guettli 25cdb55
watch output: show ip.
guettli e85b509
fix bug, started test for new way.
guettli 06c1b89
test are fine, but not finished yet.
guettli 33a3e51
test fine, but not finished.
guettli c7edcc7
test works, but not finished.
guettli f54285e
test fine and finished.
guettli 9419a5c
fixed test.
guettli 45715ff
FIt() to It().
guettli 2582424
removed not needed code.
guettli 2d60a24
aligned docs to actual states (if imageURL)
guettli 19e98ee
typo in err msg.
guettli 531c13e
"waiting for rescue system to be enabled"
guettli 60297af
removed changes to one func, add comment to next.
guettli 34c4247
use shorter names for BootStates.
guettli edcaf4e
:seedling: Provision baremetal via --baremetal-image-url-command
guettli 7f4612d
create condition, if getting server image failed.
guettli 2f7c035
reboot to rescue started
guettli 14e63d7
remove todo.
guettli 102322d
better docu for second reboot, if first failed.
guettli c5d1a9a
this can happen if old caph gets active again.
guettli 29e3eb9
simplify error handling which should not happen anymore.
guettli 95ceaa4
check if reboot was lost.
guettli 4b5324c
reboot timeout: Use action finished timestamp to calculate timeout.
guettli f1c993e
round duration to seconds.
guettli 61534bd
reboot via ssh. Avoid hcloud api calls (rate-limit)
guettli 0af85b6
better err msg: avoid strange connection refused message.
guettli 450e237
remove typo.
guettli 5a960a2
more space.
guettli 16068da
renamed failed state
guettli f4b344c
more new lines.
guettli c41d455
added hint that this error should never happen.
guettli cef0d20
Merge branch 'tg/create-hcloud-machines-via-oci-node-image' into tg/p…
guettli 6c03dcf
one typo. two "make linter happy"
guettli 7ae6688
Merge branch 'tg/create-hcloud-machines-via-oci-node-image' into tg/p…
guettli e6abd0d
remove usage of `portAfterCloudInit` (deprecated.)
guettli 310e44a
coding done. Not tested yet.
guettli 32621b1
unit-tests work.
guettli 34f93c4
use ...Once() instead of using ...Unset().
guettli 03cd1ae
add timeout to every state.
guettli c5ff2a8
use `err` not `out.Err`, to avoid typos.
guettli 9623927
unhappy path should use logger.Error()
guettli c0be565
syscall.ECONNREFUSED should be enough.
guettli 96b85d0
use syscall.ECONNREFUSED, so that docs and LLM answers work.
guettli d8a1727
show logFile, if command timesout.
guettli 4192b75
added docs.
guettli 9b16a06
use Warn() not Warnf() if no string formatting gets done.
guettli cdc6981
boilerplate header for new python script.
guettli 05fa486
make generate.
guettli e30dd0f
Merge branch 'tg/create-hcloud-machines-via-oci-node-image' into tg/p…
guettli cfa7810
fix typo.
guettli 0470779
wait 10s in ImageURLCommandStateRunning, not 5s
guettli 8c2bf5f
removed not needed logging.
guettli 5bc698a
use actionFailed, not error.
guettli 0bf9dca
check ImageURLCommand before using it.
guettli 91b51a7
change interface to command: devices are needed ("sda sdb", if severa…
guettli a10f410
docs.
guettli 48875b5
Hostname is needed, not Name of hbmh.
guettli 40297cb
use ProvisionSucceededCondition
guettli 65427c8
avoid conflict errors by waiting for write to be synced to the local …
guettli 3d6d801
remove: retry reboot, if first has failed.
guettli 43acf0a
removed extra check, which is unlikely to happen.
guettli 1a0734d
Merge branch 'tg/create-hcloud-machines-via-oci-node-image' into tg/p…
guettli 6b47487
removed condition
guettli 94a50f4
Merge branch 'main' into tg/create-hcloud-machines-via-oci-node-image
guettli 2f63f14
add Status.ExternalIDs
guettli fe162a9
make linter happy.
guettli a4de40f
use specific reasons, not string(hm.Status.BootState)
guettli 4cdbf1e
Merge branch 'tg/create-hcloud-machines-via-oci-node-image' into tg/p…
guettli 2531479
do not use string(ProvisioningState) for Reason of condition.
guettli 19f4b03
round timeSinceReboot to seconds.
guettli 3a533a1
use TimedOut, not Timedout
guettli 254229e
changed Reason of condition.
guettli 573b28e
removed condition which usually does not happen.
guettli 38ee92e
wording.
guettli 398eabe
removed RebootViaSSH timestamp.
guettli 94eed28
Merge branch 'tg/create-hcloud-machines-via-oci-node-image' into tg/p…
guettli 7e58a04
pull down changes from bm-PR.
guettli 7c22e5d
pull down changes from bm-PR
guettli a31cd4b
adapt Mock.
guettli 2733c5a
Merge branch 'tg/create-hcloud-machines-via-oci-node-image' into tg/p…
guettli edcf7b2
removed conditions.
guettli ea0f0b4
add comment.
guettli 652a1a0
fix test: It("transitions to BootStateOperatingSystemRunning (imageURL)"
guettli 1143fe4
remove comment.
guettli 72f8508
Merge branch 'tg/create-hcloud-machines-via-oci-node-image' into tg/p…
guettli 2392f2b
avoid duplicate text in condition.
guettli c929bd3
no requeue if image-url-command is missing.
guettli 069cb32
extra handling of rate-limit exceeded.
guettli 6d830d4
reduce RequeueAfter to 1min
guettli a10817f
added comment.
guettli f2e8dd8
fail if command is empty.
guettli 054b858
shorter condition Reasons.
guettli ad01d55
added empty lines.
guettli 958ae9e
check robot ssh in pre-flight-check.
guettli 8293d4e
extracted getSSHPrivateKey(), use it in pre-flight-check.
guettli 5f141b1
move pre-flight check to "initializing"
guettli 69caa8e
add comments the hanlde funcs.
guettli f568dfc
Merge remote-tracking branch 'origin/main' into tg/create-hcloud-mach…
guettli 41ae6ac
add comment.
guettli 6cb3266
Merge branch 'main' into tg/create-hcloud-machines-via-oci-node-image
guettli 42e9a48
Merge branch 'tg/create-hcloud-machines-via-oci-node-image' into tg/p…
guettli 1ab7ff8
extraced IsLocalCacheUpToDate(), and write unit-test for it.
guettli 274ad18
TimedOut
guettli eec07ae
more fixes.
guettli 0d8cabf
added comment
guettli 4b9e88b
typo
guettli cf6b9a3
Merge branch 'main' into tg/provision-bm-via-image-url-command
guettli d394cce
revert changes to hcloud/server/server.go (from merge request)
guettli 6b4105f
fit() --> it().
guettli c0abd7d
feedback from PR review.
guettli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.