-
Notifications
You must be signed in to change notification settings - Fork 100
✨ v1.2.x with APIVersion v1beta2 #1760
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: v1.2.x-v1beta2-vendor-dir
Are you sure you want to change the base?
Conversation
8f9488b to
01420fc
Compare
This PR exists, so that the v1.2.x-v1beta2 PR does not contain the changes in the vendor directory. Otherwise the PR is so big, that it using the Github UI is almost not possible. This PR was created to keep v1.2.x-v1beta2 PR small.
456332e to
40577e6
Compare
ca33cb7 to
a276fe8
Compare
| return sts.IPv4 | ||
| } | ||
|
|
||
| // HasFatalError returns true, if the corresponding capi machine should get deleted. |
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.
TODO
| HCloudBootStateBootingToRealOS HCloudBootState = "BootingToRealOS" | ||
|
|
||
| // HCloudBootStateOperatingSystemRunning indicates that the server is successfully running. | ||
| HCloudBootStateOperatingSystemRunning HCloudBootState = "OperatingSystemRunning" |
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.
ProvisioningFailed is missing.
| event := eventList.Items[i] | ||
| if event.Reason == reason && | ||
| event.InvolvedObject.Name == involvedObjectName && | ||
| strings.Contains(event.Message, message) { |
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.
TODO
| if c != nil && c.Status == metav1.ConditionFalse { | ||
| // This hcloud machine will be removed soon. | ||
| log.Info("hcloudmachine: ProvisioningFailed. Not reconciling this machine.") | ||
| log.Info("hcloudmachine has DeleteMachineSucceededCondition. Not reconciling this machine.") |
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.
TODO
| It("should delete machine if SetErrorAndRemediate() was called", func() { | ||
| By("Creating Server") | ||
|
|
||
| By("Checking Environment") |
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.
remove
| }).Should(Succeed()) | ||
|
|
||
| By("Call SetRemediateMachineAnnotationToDeleteMachine") | ||
| By("Call SetErrorAndRemediateMachine") |
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.
todo
| return ctrl.Result{RequeueAfter: 30 * time.Second}, nil | ||
| } | ||
|
|
||
| // Mirror DeleteMachineSucceededCondition from hbmm to hbmh. |
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.
todo
| return r.reconcileDelete(ctx, machineScope) | ||
| } | ||
|
|
||
| deleteConditionOfHbmm := conditions.Get(hbmMachine, infrav1.DeleteMachineSucceededCondition) |
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.
todo
| secretManager := secretutil.NewSecretManager(clusterScope.Logger, r.Client, r.APIReader) | ||
| // Remove finalizer of secret | ||
| if err := secretManager.ReleaseSecret(ctx, clusterScope.HetznerSecret(), clusterScope.HetznerCluster); err != nil { | ||
| if apierrors.IsConflict(err) { |
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.
todo
| make kustomize | ||
| fi | ||
|
|
||
| hack/ensure-ssh-key-in-hcloud.py |
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.
todo
| @@ -1,120 +0,0 @@ | |||
| #!/usr/bin/env python3 | |||
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.
todo
| # See `crane ls ghcr.io/fluxcd/kindest/node` for available versions | ||
| K8S_VERSION=v1.33.0 | ||
|
|
||
| REPO_ROOT=$(git rev-parse --show-toplevel) |
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.
todo
| // | ||
| // Background: the hbmm/hbmh controller has no permission to delete a capi machine. That's why this | ||
| // extra step (via remediate-machine annotation) is needed. | ||
| func (m *BareMetalMachineScope) SetRemediateMachineAnnotationToDeleteMachine(ctx context.Context, message string) error { |
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.
todo
| conditions.MarkTrue(s.scope.BareMetalMachine, infrav1.HostAssociateSucceededCondition) | ||
|
|
||
| // update the machine | ||
| host, err := s.update(ctx) |
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.
todo
| return checkForRequeueError(err, "failed to update machine") | ||
| } | ||
|
|
||
| if host.Spec.Status.HasFatalError() { |
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.
todo
v1.2.x with APIVersion v1beta2
This PR will update CAPH to support beta2 of CAPI.
Previous PR: #1775
TODO
todo: The Caph Compatibility Table is duplicated:
In introduction.md (visible on syself.com)
https://syself.com/docs/caph/getting-started/introduction#compatibility-with-cluster-api-and-kubernetes-versions
source
In README.md (visible on Github)
README.md
todo: Check docs about upgrade, and table with supported versions (v1.0.x -- capi-versions, v1.1.x -- capi-versions)