Skip to content

feat(api): remove deprecated FailureReason/FailureMessage fields#359

Draft
schegi wants to merge 4 commits intofeat/upgrade-capi-v1.10.10from
feat/remove-deprecated-failure-fields
Draft

feat(api): remove deprecated FailureReason/FailureMessage fields#359
schegi wants to merge 4 commits intofeat/upgrade-capi-v1.10.10from
feat/remove-deprecated-failure-fields

Conversation

@schegi
Copy link
Copy Markdown
Contributor

@schegi schegi commented Apr 13, 2026

Summary

  • Remove deprecated FailureReason and FailureMessage fields from IonosCloudMachineStatus
  • Remove HasFailed() method from scope/machine.go and its usage in the machine controller
  • Remove sigs.k8s.io/cluster-api/errors import (deprecated since CAPI v1.8)
  • Clean up related tests and remove SA1019 lint exclusion
  • Regenerate deepcopy and CRDs

Context

The sigs.k8s.io/cluster-api/errors package was deprecated in CAPI v1.8 and the v1.8-to-v1.9 migration guide recommends removal.

Test plan

  • make unit-test passes
  • make integration-test passes (90/90 specs)
  • make lint passes
  • make verify passes

Merge

Merge after #358 (CAPI v1.10.10 upgrade).

🤖 Generated with Claude Code

schegi and others added 4 commits April 13, 2026 07:10
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Also removes the HasFailed guard in the machine controller reconciler,
since the underlying FailureReason/FailureMessage fields no longer exist.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Also removes the SA1019 staticcheck exclusion for the now-unused
sigs.k8s.io/cluster-api/errors package from .golangci.yml.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sonarqubecloud
Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant