v0.2.7
Cluster API Provider Harvester v0.2.7
Code quality improvements for production readiness review (SURE-11421).
Changes
- Kustomize modernization: Migrate from deprecated
bases/patchesStrategicMerge/vars/commonLabelstoresources/patches/replacements/labels— eliminates all deprecation warnings from generated manifests - Finalizer naming: Rename finalizers to include path segment per Kubernetes conventions (
harvestermachine.infrastructure.cluster.x-k8s.io/finalizer), with dual-finalizer migration for seamless upgrade from v0.2.6 - Context propagation: Replace all
context.TODO()/context.Background()in production code with proper context propagation from reconciler scope, enabling correct cancellation and timeout behavior - Minor fixes: Fix typo in ippool validation, add error handling for
netip.AddrFromSlice(), document privileged container requirement
Upgrade notes
- Existing clusters will automatically migrate to the new finalizer format on next reconcile — no manual action required
- The old finalizer is removed after the new one is added, ensuring no window of unprotected deletion
Installation
apiVersion: turtles-capi.cattle.io/v1alpha1
kind: CAPIProvider
metadata:
name: harvester
namespace: caphv-system
spec:
name: harvester
type: infrastructure
version: v0.2.7
fetchConfig:
url: https://github.com/rancher-sandbox/cluster-api-provider-harvester/releases/download/v0.2.7/infrastructure-components.yaml