Skip to content

Commit 8a503bd

Browse files
authored
Merge branch 'v1.1.x' into tg/support-provider-id-format-of-upstream-ccm
2 parents 8ed6b58 + 52090eb commit 8a503bd

28 files changed

Lines changed: 590 additions & 251 deletions

.builder-image-version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.25
1+
1.0.26

.github/workflows/main-promote-builder-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
name: Promote Latest tag to Caph Builder Image
1111
runs-on: ubuntu-latest
1212
container:
13-
image: ghcr.io/syself/caph-builder:1.0.25
13+
image: ghcr.io/syself/caph-builder:1.0.26
1414
credentials:
1515
username: ${{ github.actor }}
1616
password: ${{ secrets.github_token }}

.github/workflows/pr-e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
if: github.event_name != 'pull_request' || !github.event.pull_request.draft
4040
runs-on: ubuntu-latest
4141
container:
42-
image: ghcr.io/syself/caph-builder:1.0.25
42+
image: ghcr.io/syself/caph-builder:1.0.26
4343
credentials:
4444
username: ${{ github.actor }}
4545
password: ${{ secrets.github_token }}

.github/workflows/pr-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
name: "Lint Pull Request"
2323
runs-on: ubuntu-latest
2424
container:
25-
image: ghcr.io/syself/caph-builder:1.0.25
25+
image: ghcr.io/syself/caph-builder:1.0.26
2626
credentials:
2727
username: ${{ github.actor }}
2828
password: ${{ secrets.github_token }}

.github/workflows/pr-verify.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
issues: write
1212
runs-on: ubuntu-latest
1313
container:
14-
image: ghcr.io/syself/caph-builder:1.0.25
14+
image: ghcr.io/syself/caph-builder:1.0.26
1515
credentials:
1616
username: ${{ github.actor }}
1717
password: ${{ secrets.github_token }}

.github/workflows/schedule-scan-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
if: github.repository == 'syself/cluster-api-provider-hetzner'
1212
container:
13-
image: ghcr.io/syself/caph-builder:1.0.25
13+
image: ghcr.io/syself/caph-builder:1.0.26
1414
credentials:
1515
username: ${{ github.actor }}
1616
password: ${{ secrets.github_token }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ test/e2e/data/infrastructure-hetzner/v1beta1/env*
3636
/tilt.d
3737
tilt_config.json
3838
baremetalhosts.yaml
39+
bm-*.yaml
3940

4041
# kubeconfigs
4142
./kind.kubeconfig

api/v1beta1/hcloudmachine_types.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,12 +120,18 @@ type HCloudMachineStatus struct {
120120
// FailureReason will be set in the event that there is a terminal problem
121121
// reconciling the Machine and will contain a succinct value suitable
122122
// for machine interpretation.
123+
//
124+
// Deprecated: This field is deprecated and is going to be removed when support for v1beta1 will be dropped. Please see https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20240916-improve-status-in-CAPI-resources.md for more details.
125+
//
123126
// +optional
124127
FailureReason *capierrors.MachineStatusError `json:"failureReason,omitempty"`
125128

126129
// FailureMessage will be set in the event that there is a terminal problem
127130
// reconciling the Machine and will contain a more verbose string suitable
128131
// for logging and human consumption.
132+
//
133+
// Deprecated: This field is deprecated and is going to be removed when support for v1beta1 will be dropped. Please see https://github.com/kubernetes-sigs/cluster-api/blob/main/docs/proposals/20240916-improve-status-in-CAPI-resources.md for more details.
134+
//
129135
// +optional
130136
FailureMessage *string `json:"failureMessage,omitempty"`
131137

api/v1beta1/hetznerbaremetalhost_types.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,11 @@ func (sts ControllerGeneratedStatus) GetIPAddress() string {
342342
return sts.IPv4
343343
}
344344

345+
// HasFatalError returns true, if the corresponding capi machine should get deleted.
346+
func (sts ControllerGeneratedStatus) HasFatalError() bool {
347+
return sts.ErrorType == FatalError || sts.ErrorType == PermanentError
348+
}
349+
345350
// GetConditions returns the observations of the operational state of the HetznerBareMetalHost resource.
346351
func (host *HetznerBareMetalHost) GetConditions() clusterv1.Conditions {
347352
return host.Spec.Status.Conditions

api/v1beta1/hetznerbaremetalmachine_types.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -363,12 +363,6 @@ func (hbmm *HetznerBareMetalMachine) SetConditions(conditions clusterv1.Conditio
363363
hbmm.Status.Conditions = conditions
364364
}
365365

366-
// SetFailure sets a failure reason and message.
367-
func (hbmm *HetznerBareMetalMachine) SetFailure(reason string, message string) {
368-
hbmm.Status.FailureReason = &reason
369-
hbmm.Status.FailureMessage = &message
370-
}
371-
372366
// GetImageSuffix tests whether the suffix is known and outputs it if yes. Otherwise it returns an error.
373367
func GetImageSuffix(url string) (string, error) {
374368
if strings.HasPrefix(url, "oci://") {

0 commit comments

Comments
 (0)